ID3D11FunctionReflection interface

A function-reflection interface accesses function info.

Note  This interface is part of the HLSL shader linking technology that you can use on all Direct3D 11 platforms to create precompiled HLSL functions, package them into libraries, and link them into full shaders at run time.



The ID3D11FunctionReflection interface has these methods.

Method Description
ID3D11FunctionReflection::GetConstantBufferByIndex Gets a constant buffer by index for a function.
ID3D11FunctionReflection::GetConstantBufferByName Gets a constant buffer by name for a function.
ID3D11FunctionReflection::GetDesc Fills the function descriptor structure for the function.
ID3D11FunctionReflection::GetFunctionParameter Gets the function parameter reflector.
ID3D11FunctionReflection::GetResourceBindingDesc Gets a description of how a resource is bound to a function.
ID3D11FunctionReflection::GetResourceBindingDescByName Gets a description of how a resource is bound to a function.
ID3D11FunctionReflection::GetVariableByName Gets a variable by name.


To get a function-reflection interface, call ID3D11LibraryReflection::GetFunctionByIndex. This isn't a COM interface, so you don't need to worry about reference counts or releasing the interface when you're done with it.

Note  ID3D11FunctionReflection requires the D3dcompiler_47.dll or a later version of the DLL.


Target Platform Windows
Header d3d11shader.h

See also

Shader Interfaces