?/TD>
Microsoft DirectX 9.0

IDirect3DVertexShader9::GetFunction Method


Gets a pointer to the shader data.

Syntax

HRESULT GetFunction(      

    void* pData,     UINT* pSizeOfData );

Parameters

pData
[in, out] Pointer to a buffer that contains the shader data. The application needs to allocate enough room for this.
pSizeOfData
[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.