Microsoft DirectX 9.0

D3DXGetShaderOutputSemantics Function

Get the semantics for all shader output elements.


HRESULT WINAPI D3DXGetShaderOutputSemantics(      

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


[in] Pointer to the shader function DWORD stream.
[in] Pointer to an array of D3DXSEMANTIC structures. The function will fill this array with the semantics for each output element referenced by the shader. This array is assumed to contain at least MAXD3DDECLLENGTH elements. However, calling D3DXGetShaderOutputSemantics with pSemantics = NULL will return the size of the array needed for 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

Import libraryd3dx9.lib
Minimum operating systems Windows 98

© 2002 Microsoft Corporation. All rights reserved.