Skip to content

KDGpu::DrawIndirectCommand

Parameters for GPU-driven non-indexed drawing. More...

#include <render_pass_command_recorder.h>

Public Attributes

Name
Handle< Buffer_t > buffer
Buffer containing VkDrawIndirectCommand structures.
size_t offset
Byte offset into buffer.
uint32_t drawCount
Number of draws to execute.
uint32_t stride
Byte stride between consecutive draw commands.

Detailed Description

1
struct KDGpu::DrawIndirectCommand;

Parameters for GPU-driven non-indexed drawing.

See: RenderPassCommandRecorder::drawIndirect()

Draw parameters are stored in a GPU buffer, enabling the GPU to determine draw parameters without CPU involvement. Useful for GPU culling and LOD systems.

Public Attributes Documentation

variable buffer

1
Handle< Buffer_t > buffer;

Buffer containing VkDrawIndirectCommand structures.

variable offset

1
size_t offset { 0 };

Byte offset into buffer.

variable drawCount

1
uint32_t drawCount { 0 };

Number of draws to execute.

variable stride

1
uint32_t stride { 0 };

Byte stride between consecutive draw commands.


Updated on 2026-03-31 at 00:02:06 +0000