Microsoft DirectX 9.0

IDirect3DDevice9::CreatePixelShader Method

Creates a pixel shader.


HRESULT CreatePixelShader(      

    CONST DWORD *pFunction,     IDirect3DPixelShader9** ppShader );


[in] Pointer to the pixel shader function token array, specifying the blending operations. This value cannot be NULL.
[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_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
D3DERR_OUTOFVIDEOMEMORYMicrosoft?Direct3D?does not have enough display memory to perform the operation.
E_OUTOFMEMORYDirect3D could not allocate sufficient memory to complete the call.

See Also

D3DXAssembleShader, D3DXAssembleShaderFromFile

© 2002 Microsoft Corporation. All rights reserved.