DarkBASIC Professional Help File

DX11 LOAD VERTEX SHADER

Loads and compiles a vertex shader.
Note that it is vital that the input struct of your vertex shader corresponds to the
vertex layout used by the meshes you render using this shader; the shader input struct may
contain less elements than the vertex layout, but not more or rendering using it will fail.

Syntax

    Return Dword = DX11 LOAD VERTEX SHADER(fileName, functionName, profile)

Parameters

    fileName

> String
> The name of the file to load the shader from.

    functionName

> String
> The name of the vertex shader function to compile from the shader file.

    profile

> String
> The profile name defines the shader version to compile the HLSL code as. Defaults to "vs_5_0" for pixel shader model 5.0, or "vs_4_0" if in DX10 compatibility mode.

Returns

The loaded vertex shader.

See also

VERTEXSHADER Functions Menu
DX11 Function Categories