D3D12_PARAMETER_DESC structure (d3d12shader.h)
Describes a function parameter.
Syntax
typedef struct _D3D12_PARAMETER_DESC {
LPCSTR Name;
LPCSTR SemanticName;
D3D_SHADER_VARIABLE_TYPE Type;
D3D_SHADER_VARIABLE_CLASS Class;
UINT Rows;
UINT Columns;
D3D_INTERPOLATION_MODE InterpolationMode;
D3D_PARAMETER_FLAGS Flags;
UINT FirstInRegister;
UINT FirstInComponent;
UINT FirstOutRegister;
UINT FirstOutComponent;
} D3D12_PARAMETER_DESC;
Members
Name
The name of the function parameter.
SemanticName
The HLSL semantic that is associated with this function parameter. This name includes the index, for example, SV_Target[n].
Type
A D3D_SHADER_VARIABLE_TYPE-typed value that identifies the variable type for the parameter.
Class
A D3D_SHADER_VARIABLE_CLASS-typed value that identifies the variable class for the parameter as one of scalar, vector, matrix, object, and so on.
Rows
The number of rows for a matrix parameter.
Columns
The number of columns for a matrix parameter.
InterpolationMode
A D3D_INTERPOLATION_MODE-typed value that identifies the interpolation mode for the parameter.
Flags
A combination of D3D_PARAMETER_FLAGS-typed values that are combined by using a bitwise OR operation. The resulting value specifies semantic flags for the parameter.
FirstInRegister
The first input register for this parameter.
FirstInComponent
The first input register component for this parameter.
FirstOutRegister
The first output register for this parameter.
FirstOutComponent
The first output register component for this parameter.
Remarks
Get a function-parameter description by calling ID3D12FunctionParameterReflection::GetDesc.
Requirements
Requirement | Value |
---|---|
Header | d3d12shader.h |