D3D12_FUNCTION_DESC structure (d3d12shader.h)
Describes a function.
Syntax
typedef struct _D3D12_FUNCTION_DESC {
UINT Version;
LPCSTR Creator;
UINT Flags;
UINT ConstantBuffers;
UINT BoundResources;
UINT InstructionCount;
UINT TempRegisterCount;
UINT TempArrayCount;
UINT DefCount;
UINT DclCount;
UINT TextureNormalInstructions;
UINT TextureLoadInstructions;
UINT TextureCompInstructions;
UINT TextureBiasInstructions;
UINT TextureGradientInstructions;
UINT FloatInstructionCount;
UINT IntInstructionCount;
UINT UintInstructionCount;
UINT StaticFlowControlCount;
UINT DynamicFlowControlCount;
UINT MacroInstructionCount;
UINT ArrayInstructionCount;
UINT MovInstructionCount;
UINT MovcInstructionCount;
UINT ConversionInstructionCount;
UINT BitwiseInstructionCount;
D3D_FEATURE_LEVEL MinFeatureLevel;
UINT64 RequiredFeatureFlags;
LPCSTR Name;
INT FunctionParameterCount;
BOOL HasReturn;
BOOL Has10Level9VertexShader;
BOOL Has10Level9PixelShader;
} D3D12_FUNCTION_DESC;
Members
Version
The shader version. See also D3D12_SHADER_VERSION_TYPE.
Creator
The name of the originator of the function.
Flags
A combination of D3DCOMPILE Constants that are combined by using a bitwise OR operation. The resulting value specifies shader compilation and parsing.
ConstantBuffers
The number of constant buffers for the function.
BoundResources
The number of bound resources for the function.
InstructionCount
The number of emitted instructions for the function.
TempRegisterCount
The number of temporary registers used by the function.
TempArrayCount
The number of temporary arrays used by the function.
DefCount
The number of constant defines for the function.
DclCount
The number of declarations (input + output) for the function.
TextureNormalInstructions
The number of non-categorized texture instructions for the function.
TextureLoadInstructions
The number of texture load instructions for the function.
TextureCompInstructions
The number of texture comparison instructions for the function.
TextureBiasInstructions
The number of texture bias instructions for the function.
TextureGradientInstructions
The number of texture gradient instructions for the function.
FloatInstructionCount
The number of floating point arithmetic instructions used by the function.
IntInstructionCount
The number of signed integer arithmetic instructions used by the function.
UintInstructionCount
The number of unsigned integer arithmetic instructions used by the function.
StaticFlowControlCount
The number of static flow control instructions used by the function.
DynamicFlowControlCount
The number of dynamic flow control instructions used by the function.
MacroInstructionCount
The number of macro instructions used by the function.
ArrayInstructionCount
The number of array instructions used by the function.
MovInstructionCount
The number of mov instructions used by the function.
MovcInstructionCount
The number of movc instructions used by the function.
ConversionInstructionCount
The number of type conversion instructions used by the function.
BitwiseInstructionCount
The number of bitwise arithmetic instructions used by the function.
MinFeatureLevel
A D3D_FEATURE_LEVEL-typed value that specifies the minimum Direct3D feature level target of the function byte code.
RequiredFeatureFlags
A value that contains a combination of one or more shader requirements flags; each flag specifies a requirement of the shader. A default value of 0 means there are no requirements. For a list of values, see ID3D12ShaderReflection::GetRequiresFlags.
Name
The name of the function.
FunctionParameterCount
The number of logical parameters in the function signature, not including the return value.
HasReturn
Indicates whether the function returns a value. TRUE indicates it returns a value; otherwise, FALSE (it is a subroutine).
Has10Level9VertexShader
Indicates whether there is a Direct3D 10Level9 vertex shader blob. TRUE indicates there is a 10Level9 vertex shader blob; otherwise, FALSE.
Has10Level9PixelShader
Indicates whether there is a Direct3D 10Level9 pixel shader blob. TRUE indicates there is a 10Level9 pixel shader blob; otherwise, FALSE.
Remarks
This structure is returned by ID3D12FunctionReflection::GetDesc.
Requirements
Requirement | Value |
---|---|
Header | d3d12shader.h |