Kohi Game Engine
vulkan_command_buffer Struct Reference

Represents a Vulkan-specific command buffer, which holds a list of commands and is submitted to a queue for execution. More...

#include <vulkan_types.h>

Data Fields

VkCommandBuffer handle
 The internal command buffer handle. More...
 
vulkan_command_buffer_state state
 Command buffer state. More...
 
b8 is_primary
 Indicates if this is a primary or secondary command buffer. More...
 
u16 secondary_count
 The number of secondary buffers that are children to this one. Primary buffer use only. More...
 
struct vulkan_command_buffersecondary_buffers
 An array of secondary buffers that are children to this one. Primary buffer use only. More...
 
u16 secondary_buffer_index
 The currently selected secondary buffer index. More...
 
b8 in_secondary
 Indicates if a secondary command buffer is currently being recorded to. More...
 
struct vulkan_command_bufferparent
 

Detailed Description

Represents a Vulkan-specific command buffer, which holds a list of commands and is submitted to a queue for execution.

Field Documentation

◆ handle

VkCommandBuffer handle

The internal command buffer handle.

◆ in_secondary

b8 in_secondary

Indicates if a secondary command buffer is currently being recorded to.

◆ is_primary

b8 is_primary

Indicates if this is a primary or secondary command buffer.

◆ parent

struct vulkan_command_buffer* parent

A pointer to the parent (primary) command buffer, if there is one. Only applies to secondary buffers.

◆ secondary_buffer_index

u16 secondary_buffer_index

The currently selected secondary buffer index.

◆ secondary_buffers

struct vulkan_command_buffer* secondary_buffers

An array of secondary buffers that are children to this one. Primary buffer use only.

◆ secondary_count

u16 secondary_count

The number of secondary buffers that are children to this one. Primary buffer use only.

◆ state

Command buffer state.


The documentation for this struct was generated from the following file: