D3DXPARAMETER_DESC structure
Describes a parameter used for an effect object.
Syntax
typedef struct D3DXPARAMETER_DESC {
LPCSTR Name;
LPCSTR Semantic;
D3DXPARAMETER_CLASS Class;
D3DXPARAMETER_TYPE Type;
UINT Rows;
UINT Columns;
UINT Elements;
UINT Annotations;
UINT StructMembers;
DWORD Flags;
UINT Bytes;
} D3DXPARAMETER_DESC, *LPD3DXPARAMETER_DESC;
Members
-
Name
-
Type: LPCSTR
-
Name of the parameter.
-
Semantic
-
Type: LPCSTR
-
Semantic meaning, also called the usage.
-
Class
-
Type: D3DXPARAMETER_CLASS
-
Parameter class. Set this to one of the values in D3DXPARAMETER_CLASS.
-
Type
-
Type: D3DXPARAMETER_TYPE
-
Parameter type. Set this to one of the values in D3DXPARAMETER_TYPE.
-
Rows
-
Type: UINT
-
Number of rows in the array.
-
Columns
-
Type: UINT
-
Number of columns in the array.
-
Elements
-
Type: UINT
-
Number of elements in the array.
-
Annotations
-
Type: UINT
-
Number of annotations.
-
StructMembers
-
Type: UINT
-
Number of structure members.
-
Flags
-
Type: DWORD
-
Parameter attributes. See Effect Constants.
-
Bytes
-
Type: UINT
-
The size of the parameter, in bytes.
Requirements
Requirement | Value |
---|---|
Header |
|
See also