DarkBASIC Professional Help File

DX11 LOAD COMPUTE SHADER

Loads and compiles a compute shader.

Syntax

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

Parameters

    fileName

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

    functionName

> String
> The name of the compute 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 "cs_5_0" for compute shader model 5.0, or "cs_4_0" if in DX10 compatibility mode.

Returns

The loaded compute shader.

See also

DIRECTCOMPUTE Functions Menu
DX11 Function Categories