BaseMesh.GetAttributeTable() Method (Microsoft.DirectX.Direct3D)

Retrieves an attribute table for a mesh.


Visual Basic Public Function GetAttributeTable() As AttributeRange()
C# public AttributeRange[] GetAttributeTable();
C++ public:
array<AttributeRange>^ GetAttributeTable();
JScript public function GetAttributeTable() : AttributeRange[];

Return Value

Array of AttributeRange structures, which represent each entry in the attribute table.


An attribute table is created by calling Mesh.Optimize and passing OptimizeAttrSort for the param_MeshFlags_flags parameter.

An attribute table is used to identify areas of the mesh that need to be drawn with different textures, render states and materials. The application can use the attribute table to hide portions of a mesh by leaving out a given attribute identifier (attributeID) when drawing the frame. Attribute tables can also be used for application defined purposes.


ArgumentExceptionLeave Site

There is no attribute table.


The method call is invalid. For example, a method's parameter might contain an invalid value.

Applies To

Mesh, ProgressiveMesh