D3DXFindShaderComment

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 D3DXFindShaderComment(
  CONST DWORD* pFunction,
  DWORD FourCC,
  LPCVOID* ppData,
  UINT* pSizeInBytes
);

Parameters

pFunction
[in] Pointer to the shader function DWORD stream.
FourCC
[in] FOURCC code that identifies the comment block. See FourCC Formats.
ppData
[in] Returns a pointer to the comment data (not including the comment token and FOURCC code). This value can be NULL.
pSizeInBytes
[out] Returns the size of the comment data in bytes. This value can be NULL.

Return Values

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.

Requirements

Header: Declared in D3dx9shader.h.