D3D11_PARAMETER_DESC structure (d3d11shader.h)
Describes a function parameter.
Syntax
typedef struct _D3D11_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;
} D3D11_PARAMETER_DESC;
Members
Name
Type: LPCSTR
The name of the function parameter.
SemanticName
Type: LPCSTR
The HLSL semantic that is associated with this function parameter. This name includes the index, for example, SV_Target[n].
Type
Type: D3D_SHADER_VARIABLE_TYPE
A D3D_SHADER_VARIABLE_TYPE-typed value that identifies the variable type for the parameter.
Class
Type: D3D_SHADER_VARIABLE_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
Type: UINT
The number of rows for a matrix parameter.
Columns
Type: UINT
The number of columns for a matrix parameter.
InterpolationMode
Type: D3D_INTERPOLATION_MODE
A D3D_INTERPOLATION_MODE-typed value that identifies the interpolation mode for the parameter.
Flags
Type: D3D_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
Type: UINT
The first input register for this parameter.
FirstInComponent
Type: UINT
The first input register component for this parameter.
FirstOutRegister
Type: UINT
The first output register for this parameter.
FirstOutComponent
Type: UINT
The first output register component for this parameter.
Remarks
Get a function-parameter description by calling ID3D11FunctionParameterReflection::GetDesc.
Requirements
Requirement | Value |
---|---|
Header | d3d11shader.h |