ID3D11FunctionReflection interface (d3d11shader.h)

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.

 

Methods

The ID3D11FunctionReflection interface has these methods.

 
ID3D11FunctionReflection::GetConstantBufferByIndex

The ID3D11FunctionReflection::GetConstantBufferByIndex (d3d11shader.h) method gets a constant buffer by index for a function.
ID3D11FunctionReflection::GetConstantBufferByName

Gets a constant buffer by name for a function. (ID3D11FunctionReflection.GetConstantBufferByName)
ID3D11FunctionReflection::GetDesc

Fills the function descriptor structure for the function. (ID3D11FunctionReflection.GetDesc)
ID3D11FunctionReflection::GetFunctionParameter

Gets the function parameter reflector. (ID3D11FunctionReflection.GetFunctionParameter)
ID3D11FunctionReflection::GetResourceBindingDesc

Gets a description of how a resource is bound to a function. (ID3D11FunctionReflection.GetResourceBindingDesc)
ID3D11FunctionReflection::GetResourceBindingDescByName

Gets a description of how a resource is bound to a function. (ID3D11FunctionReflection.GetResourceBindingDescByName)
ID3D11FunctionReflection::GetVariableByName

Gets a variable by name. (ID3D11FunctionReflection.GetVariableByName)

Remarks

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.
 

Requirements

Requirement Value
Target Platform Windows
Header d3d11shader.h

See also

Shader Interfaces