Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The CreatePixelShader function converts pixel shader code into a hardware-specific format and associates this code with a shader handle.
Syntax
PFND3DDDI_CREATEPIXELSHADER Pfnd3dddiCreatepixelshader;
HRESULT Pfnd3dddiCreatepixelshader(
[in] HANDLE hDevice,
D3DDDIARG_CREATEPIXELSHADER *unnamedParam2,
const UINT *unnamedParam3
)
{...}
Parameters
[in] hDevice
A handle to the display device (graphics context).
unnamedParam2
pCode [in]
An array of CONST UINT tokens that make up the pixel shader code.
unnamedParam3
pData [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.
Return value
CreatePixelShader returns S_OK or an appropriate error result if the pixel shader code object is not successfully created.
Remarks
For more information about programming shader assemblers, see Processing Shader Codes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows Vista and later versions of the Windows operating systems. |
Target Platform | Desktop |
Header | d3dumddi.h (include D3dumddi.h) |