D3DXGetShaderOutputSemantics function
Get the semantics for all shader output elements.
Syntax
HRESULT D3DXGetShaderOutputSemantics(
_In_ const DWORD *pFunction,
_In_ D3DXSEMANTIC *pSemantics,
_Out_ UINT *pCount
);
Parameters
-
pFunction [in]
-
Type: const DWORD*
Pointer to the shader function DWORD stream.
-
pSemantics [in]
-
Type: D3DXSEMANTIC*
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 number of elements needed for pCount.
-
pCount [out]
-
Type: UINT*
Returns the number of elements in pSemantics.
Return value
Type: HRESULT
If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be one of the following: D3DERR_INVALIDCALL, D3DXERR_INVALIDDATA, E_OUTOFMEMORY.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also