Развернуть Свернуть

D3DDDIVERTEXELEMENT structure

The D3DDDIVERTEXELEMENT structure describes an element in the array for a vertex shader declaration.

Syntax


typedef struct _D3DDDIVERTEXELEMENT {
  USHORT Stream;
  USHORT Offset;
  UCHAR  Type;
  UCHAR  Method;
  UCHAR  Usage;
  UCHAR  UsageIndex;
} D3DDDIVERTEXELEMENT;

Members

Stream

[in] The number of the stream.

Offset

[in] The offset (if any), in bytes, from the beginning of the stream to the start of the data.

Type

[in] One of several predefined data types that define the data size. For more information about these types, see the D3DDECLTYPE enumeration type in the Microsoft Windows SDK documentation.

Method

[in] The tessellator processing method. This method determines how the tessellator interprets and operates on the vertex data. For more information about these methods, see the D3DDECLMETHOD enumeration type in the Windows SDK documentation.

Usage

[in] The intended use of the vertex data. For more information about the possible uses, see the D3DDECLUSAGE enumeration type in the Windows SDK documentation.

UsageIndex

[in] A modification to the usage data that is specified in the Usage member. This modification enables multiple usage types to be specified.

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

CreateVertexShaderDecl

 

 

Send comments about this topic to Microsoft

Показ:
© 2014 Microsoft