| ?/TD> | 
| Microsoft DirectX 9.0 | 
Creates a pixel shader.
Syntax
HRESULT CreatePixelShader(
CONST DWORD *pFunction, IDirect3DPixelShader9** ppShader );
Parameters
- pFunction
 - [in] Pointer to the pixel shader function token array, specifying the blending operations. This value cannot be NULL.
 - ppShader
 - [out, retval] Pointer to the returned pixel shader interface. See IDirect3DPixelShader9.
 
Return Value
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value can be one of the following values.
D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value. D3DERR_OUTOFVIDEOMEMORY Microsoft?Direct3D?does not have enough display memory to perform the operation. E_OUTOFMEMORY Direct3D could not allocate sufficient memory to complete the call. 
See Also
D3DXAssembleShader, D3DXAssembleShaderFromFile