Skip to content

ludus::graphics::rhi::IndexedIndirectArguments

Ludus Wiki · API overview · Browse API

Struct

Indexed indirect command ABI shared by Vulkan, Metal and WebGPU: twenty bytes. The producing kernel must keep counts within the associated RasterDraw bounds and write zero FirstIndex, BaseVertex and FirstInstance. IndexOffset in the packet selects the mesh. Violating this contract is a kernel correctness bug.

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute.h

#include <ludus/graphics/rhi/compute.h>
struct ludus::graphics::rhi::IndexedIndirectArguments final

Fields

IndexCount

ludus::foundation::uint32 ludus::graphics::rhi::IndexedIndirectArguments::IndexCount = 0
Number of mesh indices, at most RasterDraw::IndexCount.

Related types: ludus::foundation::uint32

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute.h

InstanceCount

ludus::foundation::uint32 ludus::graphics::rhi::IndexedIndirectArguments::InstanceCount = 0
Number of instances, at most RasterDraw::InstanceCount; zero culls the draw.

Related types: ludus::foundation::uint32

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute.h

FirstIndex

ludus::foundation::uint32 ludus::graphics::rhi::IndexedIndirectArguments::FirstIndex = 0
Must be zero in this bounded profile.

Related types: ludus::foundation::uint32

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute.h

BaseVertex

ludus::foundation::int32 ludus::graphics::rhi::IndexedIndirectArguments::BaseVertex = 0
Must be zero in this bounded profile.

Related types: ludus::foundation::int32

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute.h

FirstInstance

ludus::foundation::uint32 ludus::graphics::rhi::IndexedIndirectArguments::FirstInstance = 0
Must be zero in this bounded profile.

Related types: ludus::foundation::uint32

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute.h