D3DXGetShaderOutputSemantics

Get the semantics for all shader output elements.

HRESULT D3DXGetShaderOutputSemantics(
  CONST DWORD* pFunction,
  D3DXSEMANTIC* pSemantics,
  UINT* pCount
);

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 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] Returns the number of elements in pSemantics.

Return Values

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

Header: Declared in D3dx9shader.h.