PFND3D10DDI_SETSHADER - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3d10umddi.h

PFND3D10DDI_SETSHADER Pfnd3d10ddiSetshader;

VOID Pfnd3d10ddiSetshader(
  D3D10DDI_HDEVICE unnamedParam1,
  D3D10DDI_HSHADER unnamedParam2
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3d10umddi-pfnd3d10ddi_setshader)

PFND3D10DDI_SETSHADER callback function

Description

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

Parameters

unnamedParam1

hDevice [in]

A handle to the display device (graphics context).

unnamedParam2

hShader [in]

A handle to the compute shader code object.

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.

See also

D3D11DDI_DEVICEFUNCS

pfnSetErrorCb