|Microsoft DirectX 9.0|
Searches through a shader for a particular comment. The comment is identified by a four-character code (FOURCC) in the first DWORD of the comment.
HRESULT WINAPI D3DXFindShaderComment(
CONST DWORD* pFunction, DWORD FourCC, LPCVOID* ppData, UINT* pSizeInBytes );
- [in] Pointer to the shader function DWORD stream.
- [in] FOURCC code that identifies the comment block.
- [in] Returns a pointer to the comment data (not including the comment token and FOURCC code). This value can be NULL.
- [out] Returns the size of the comment data in bytes. This value can be NULL.
If the function succeeds, the return value is D3D_OK.
If the comment is not found, and no other error has occurred, S_FALSE is returned.
Header d3dx9shader.h Import library d3dx9.lib Minimum operating systems Windows 98