IDirect3DPixelShader9::GetFunction

Gets a pointer to the shader data.

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 Values

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be: D3DERR_INVALIDCALL.

Requirements

Header: Declared in D3d9.h.