Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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 D3DXFindShaderComment(
_In_ const DWORD *pFunction,
_In_ DWORD FourCC,
_In_ LPCVOID *ppData,
_Out_ UINT *pSizeInBytes
);
Parameters
-
pFunction [in]
-
Type: const DWORD*
Pointer to the shader function DWORD stream.
-
FourCC [in]
-
Type: DWORD
FOURCC code that identifies the comment block. See FourCC Formats.
-
ppData [in]
-
Type: LPCVOID*
Returns a pointer to the comment data (not including the comment token and FOURCC code). This value can be NULL.
-
pSizeInBytes [out]
-
Type: UINT*
Returns the size of the comment data in bytes. This value can be NULL.
Return value
Type: HRESULT
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
| Requirement | Value |
|---|---|
| Header |
|
| Library |
|
See also