Skip to content

Struct DrawIndexedIndirectCommand

Namespace: Apogee.Graphics
Assembly: Apogee.Graphics.dll

The arguments of one indexed indirect draw, as reads them from a buffer (a compute shader can write them). Twenty bytes, the same layout in Vulkan and Metal.

public readonly record struct DrawIndexedIndirectCommand : IEquatable<DrawIndexedIndirectCommand>

Implements

IEquatable<DrawIndexedIndirectCommand>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

DrawIndexedIndirectCommand(uint, uint, uint, int, uint)

The arguments of one indexed indirect draw, as reads them from a buffer (a compute shader can write them). Twenty bytes, the same layout in Vulkan and Metal.

public DrawIndexedIndirectCommand(uint IndexCount, uint InstanceCount, uint FirstIndex, int VertexOffset, uint FirstInstance)

Parameters

IndexCount uint

InstanceCount uint

FirstIndex uint

VertexOffset int

FirstInstance uint

Fields

Size

The size of one command in a buffer, and the default stride between commands.

public const uint Size = 20

Field Value

uint

Properties

FirstIndex

public uint FirstIndex { get; init; }

Property Value

uint

FirstInstance

public uint FirstInstance { get; init; }

Property Value

uint

IndexCount

public uint IndexCount { get; init; }

Property Value

uint

InstanceCount

public uint InstanceCount { get; init; }

Property Value

uint

VertexOffset

public int VertexOffset { get; init; }

Property Value

int