⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

struct VertComponent

A single component of a custom vertex layout, such as a position or a UV coordinate. A vertex format is described by an array of these, in the same order the components appear in the vertex data. Data is always tightly packed, aligned to nothing, so the format fully describes the vertex layout.

This maps to a compact 4 byte native representation, the properties here disguise that byte packing.

Instance Fields and Properties

   
int Count How many format elements this component has, 1-4. A float3 position would be 3.
VertFmt Format The data format of a single element of this component.
VertSemantic Semantic What this component means, this is matched with the shader’s vertex input semantics.
int SemanticSlot Distinguishes multiple components with the same semantic, like TEXCOORD0 vs TEXCOORD1. Usually 0.

Instance Methods

   
VertComponent Describes a single vertex component.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!