?/TD> |
Microsoft DirectX 9.0 |
Get the semantics for all shader output elements.
Syntax
HRESULT WINAPI D3DXGetShaderOutputSemantics(
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 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.
- 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_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value. D3DXERR_INVALIDDATA The data is invalid. E_OUTOFMEMORY Microsoft?Direct3D?could not allocate sufficient memory to complete the call.
Function Information
Header d3dx9shader.h Import library d3dx9.lib Minimum operating systems Windows 98