D3DX11_EFFECT_TYPE_DESC structure

Describes an effect-variable type.

Syntax

typedef struct _D3DX11_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;
} D3DX11_EFFECT_TYPE_DESC;

Members

TypeName

Type: LPCSTR

Name of the type, for example "float4" or "MyStruct".

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

Number of elements in this type (0 if not an array).

Members

Type: UINT

Number of members (0 if not a structure).

Rows

Type: UINT

Number of rows in this type (0 if not a numeric primitive).

Columns

Type: UINT

Number of columns in this type (0 if not a numeric primitive).

PackedSize

Type: UINT

Number of bytes required to represent this data type, when tightly packed.

UnpackedSize

Type: UINT

Number of bytes occupied by this data type, when laid out in a constant buffer.

Stride

Type: UINT

Number of bytes to seek between elements, when laid out in a constant buffer.

Remarks

D3DX11_EFFECT_TYPE_DESC is used with ID3DX11EffectType::GetDesc

Requirements

Requirement Value
Header
D3dx11effect.h

See also

Effects 11 Structures