Struct DrawGroup
A draw group is a part of the model that is rendered with the same material.
public readonly record struct DrawGroup : IEquatable<DrawGroup>
- Implements
- Inherited Members
Constructors
DrawGroup(PrimitiveAlgorithm, int, int, int, int, ElementSource)
A draw group is a part of the model that is rendered with the same material.
public DrawGroup(PrimitiveAlgorithm Algorithm, int Start, int Count, int Restart = -1, int BaseVertex = 0, ElementSource ElementSource = ElementSource.Counter)
Parameters
Algorithm
PrimitiveAlgorithmStart
intCount
intRestart
intBaseVertex
intElementSource
ElementSource
Properties
Algorithm
public PrimitiveAlgorithm Algorithm { get; init; }
Property Value
BaseVertex
public int BaseVertex { get; init; }
Property Value
Count
public int Count { get; init; }
Property Value
ElementSource
public ElementSource ElementSource { get; init; }
Property Value
End
public int End { get; }
Property Value
Restart
public int Restart { get; init; }
Property Value
Start
public int Start { get; init; }
Property Value
VertexArray
The vertex array for this draw group. Overrides the model's default vertex array if present.
public VertexArrayEx? VertexArray { get; init; }