?/TD>
Microsoft DirectX 9.0

D3DXGetShaderInputSemantics Function


Get the semantics for all shader input elements.

Syntax

HRESULT WINAPI D3DXGetShaderInputSemantics(      

    CONST DWORD* pFunction,     D3DXSEMANTICS* pSemantics,     UINT* pSizeInBytes );

Parameters

pFunction
[in] Pointer to the shader function DWORD stream.
pSemantics
[in] Pointer to an array of D3DXSEMANTIC structures. The function will fill this array with the semantics for each input element referenced by the shader. This array is assumed to contain at least MAXD3DDECLLENGTH elements. However, calling D3DXGetShaderInputSemantics with pSemantics = NULL will return the size of the array needed for pSizeInBytes.
pSizeInBytes
[out] Returns the size of the shader semantics, in bytes.

Return Value

If the function succeeds, the return value is D3D_OK.

If the function fails, the return value can be one of the following values.

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
D3DXERR_INVALIDDATAThe data is invalid.
E_OUTOFMEMORYMicrosoft?Direct3D?could not allocate sufficient memory to complete the call.


Function Information

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


© 2002 Microsoft Corporation. All rights reserved.