csharp
public readonly record struct InstanceBatchWhere one object's instance transforms are in the shared buffer.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (3)
public int FirstThe index of its first transform, which the draw passes as firstInstance.
public int CountHow many instances. Zero leaves the object's own draw alone.
public bool HasParametersWhether the batch also wrote InstanceParameters. They live at the same indices in a parallel buffer, so there is no second offset to carry.
Methods (1)
public InstanceBatch(int First, int Count, bool HasParameters = false)Where one object's instance transforms are in the shared buffer.
Used by (2)
- InstancingRenderFeatureVixen.Rendering
- SkinningAndInstancingTestsVixen.Rendering.Tests