// d3dumddi.h
PFND3DDDI_CREATEPIXELSHADER Pfnd3dddiCreatepixelshader;
HRESULT Pfnd3dddiCreatepixelshader(
[in] HANDLE hDevice,
D3DDDIARG_CREATEPIXELSHADER *unnamedParam2,
const UINT *unnamedParam3
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The CreatePixelShader function converts pixel shader code into a hardware-specific format and associates this code with a shader handle.
hDevice [in]A handle to the display device (graphics context).
unnamedParam2pCode [in]
An array of CONST UINT tokens that make up the pixel shader code.
unnamedParam3pData [in, out]
A pointer to a D3DDDIARG_CREATEPIXELSHADER structure that retrieves the shader handle that is associated with the pixel shader code that is specified by pCode.
CreatePixelShader returns S_OK or an appropriate error result if the pixel shader code object is not successfully created.
For more information about programming shader assemblers, see Processing Shader Codes.