Blt
Expand Minimize

CreatePixelShader routine

The CreatePixelShader function converts pixel shader code into a hardware-specific format and associates this code with a shader handle.

Syntax


PFND3DDDI_CREATEPIXELSHADER CreatePixelShader;

__checkReturn HRESULT APIENTRY CreatePixelShader(
  _In_     HANDLE hDevice,
  _Inout_  D3DDDIARG_CREATEPIXELSHADER *pData,
  _In_     const UINT *pCode
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

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.

pCode [in]

An array of CONST UINT tokens that make up the pixel shader code.

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

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_CREATEPIXELSHADER
D3DDDI_DEVICEFUNCS

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft