?/TD>
Microsoft DirectX 9.0

D3DXFindShaderComment Function


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.

Syntax

HRESULT WINAPI 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.
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 Value

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.



Function Information

Headerd3dx9shader.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98


© 2002 Microsoft Corporation. All rights reserved.