PFND3D10DDI_SETSHADER callback function (d3d10umddi.h)

The CsSetShader function sets the compute shader code so that all of the subsequent dispatching operations use that code.

Syntax

PFND3D10DDI_SETSHADER Pfnd3d10ddiSetshader;

void Pfnd3d10ddiSetshader(
  D3D10DDI_HDEVICE unnamedParam1,
  D3D10DDI_HSHADER unnamedParam2
)
{...}

Parameters

unnamedParam1

hDevice [in]

A handle to the display device (graphics context).

unnamedParam2

hShader [in]

A handle to the compute shader code object.

Return value

None

Remarks

The driver can use the pfnSetErrorCb callback function to set an error code.

The driver should not encounter any error, except for D3DDDIERR_DEVICEREMOVED. Therefore, if the driver passes any error, except for D3DDDIERR_DEVICEREMOVED, in a call to the pfnSetErrorCb function, the Direct3D runtime determines that the error is critical. Even if the device is removed, the driver is not required to return D3DDDIERR_DEVICEREMOVED; however, if device removal interferes with the operation ofCsSetShader (which typically should not happen), the driver can return D3DDDIERR_DEVICEREMOVED.

The DsSetShader function sets the domain shader code so that all of the subsequent drawing operations use that code.

The VsSetShader function sets the vertex shader code so that all of the subsequent drawing operations use that code.

The GsSetShader function sets the geometry shader code so that all of the subsequent drawing operations use that code.

The HsSetShader function sets the hull shader code so that all of the subsequent drawing operations use that code.

The PsSetShader function sets a pixel shader to be used in all drawing operations.

Requirements

Requirement Value
Minimum supported client CsSetShader is supported beginning with the Windows 7 operating system.
Target Platform Desktop
Header d3d10umddi.h (include D3d10umddi.h)

See also

D3D11DDI_DEVICEFUNCS

pfnSetErrorCb