D3D10_EFFECT_TYPE_DESC structure (d3d10effect.h)
Describes an effect-variable type.
Syntax
typedef struct _D3D10_EFFECT_TYPE_DESC {
LPCSTR TypeName;
D3D10_SHADER_VARIABLE_CLASS Class;
D3D10_SHADER_VARIABLE_TYPE Type;
UINT Elements;
UINT Members;
UINT Rows;
UINT Columns;
UINT PackedSize;
UINT UnpackedSize;
UINT Stride;
} D3D10_EFFECT_TYPE_DESC;
Members
TypeName
Type: LPCSTR
A string that contains the variable name.
Class
Type: D3D10_SHADER_VARIABLE_CLASS
The variable class (see D3D10_SHADER_VARIABLE_CLASS).
Type
Type: D3D10_SHADER_VARIABLE_TYPE
The variable type (see D3D10_SHADER_VARIABLE_TYPE).
Elements
Type: UINT
The number of elements if the variable is an array; otherwise 0.
Members
Type: UINT
The number of members if the variable is a structure; otherwise 0.
Rows
Type: UINT
The number of rows if the variable is a matrix; otherwise 0.
Columns
Type: UINT
The number of columns if the variable is a matrix; otherwise 0.
PackedSize
Type: UINT
The number of bytes that the variable consumes when it is packed tightly by the compiler.
UnpackedSize
Type: UINT
The number of bytes that the variable consumes before it is packed by the compiler.
Stride
Type: UINT
The number of bytes between elements.
Remarks
To get an effect-variable type, call ID3D10EffectType::GetDesc.
Requirements
Requirement | Value |
---|---|
Header | d3d10effect.h (include D3D10.h) |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for