ID3D12FunctionReflection interface (d3d12shader.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 12 platforms to create precompiled HLSL functions, package them into libraries, and link them into full shaders at run time.

 

Methods

The ID3D12FunctionReflection interface has these methods.

 
ID3D12FunctionReflection::GetConstantBufferByIndex

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

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

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

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

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

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

Gets a variable by name. (ID3D12FunctionReflection.GetVariableByName)

Remarks

To get a function-reflection interface, call ID3D12LibraryReflection::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  ID3D12FunctionReflection requires the D3dcompiler_47.dll or a later version of the DLL.
 

Requirements

Requirement Value
Target Platform Windows
Header d3d12shader.h

See also

Shader Interfaces