Vixen
02b45cc4
csharp
public readonly record struct InstanceBatch

Where 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 First

    The index of its first transform, which the draw passes as firstInstance.

  • public int Count

    How many instances. Zero leaves the object's own draw alone.

  • public bool HasParameters

    Whether 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