Microsoft DirectX 9.0

IDirect3DPixelShader9::GetFunction Method

Gets a pointer to the shader data.


HRESULT GetFunction(      

    void* pData,     UINT* pSizeOfData );


[in, out] Pointer to a buffer that contains the shader data. The application needs to allocate enough room for this.
[in, out] Size of the data, in bytes. To get the buffer size that is needed to retrieve the data, set pData = NULL when calling GetFunction. Then call GetFunction with the returned size, to get the buffer data.

Return Value

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be:

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.

© 2002 Microsoft Corporation. All rights reserved.