Skip to content

LiteFX::Rendering::Backends::DirectX12CommandBuffer::drawIndirect

Executes a set of indirect non-indexed draw calls.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] virtual void drawIndirect(
    IDirectX12Buffer const& batchBuffer,
    IDirectX12Buffer const& countBuffer,
    UInt64 offset = 0,
    UInt64 countOffset = 0,
    UInt32 maxBatches = std::numeric_limits<UInt32>::max()) const noexcept override;

Parameters

NameDescription
batchBufferThe buffer that contains the batches.
countBufferThe buffer that contains the number of batches to execute.
offsetThe offset (in bytes) to the first batch in the batchBuffer.
countOffsetThe offset (in bytes) to the number of batches in the countBuffer.
maxBatchesThe maximum number of batches executed, even if there are more batches in countBuffer.

See Also

draw