DarkBASIC Professional Help File

DX11 LOAD PIXEL SHADER

Loads and compiles a pixel shader.

Syntax

    Return Dword = DX11 LOAD PIXEL SHADER(fileName, functionName, [profile])

Parameters

    fileName

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

    functionName

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

    [Optional] profile

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

Returns

The loaded pixel shader.

See also

PIXELSHADER Functions Menu
DX11 Function Categories