Blender V4.3
blender::gpu::render_graph::VKCommandBuilder Class Reference

#include <vk_command_builder.hh>

Public Member Functions

 VKCommandBuilder ()
 

Build nodes

void build_nodes (VKRenderGraph &render_graph, VKCommandBufferInterface &command_buffer, Span< NodeHandle > node_handles)
 

Detailed Description

Build the command buffer for sending to the device queue.

Determine which nodes needs to be scheduled, Then for each node generate the needed pipeline barriers and commands.

Definition at line 33 of file vk_command_builder.hh.

Constructor & Destructor Documentation

◆ VKCommandBuilder()

blender::gpu::render_graph::VKCommandBuilder::VKCommandBuilder ( )

Definition at line 14 of file vk_command_builder.cc.

Member Function Documentation

◆ build_nodes()

Member Data Documentation

◆ active_debug_group_id

int64_t blender::gpu::render_graph::VKCommandBuilder::active_debug_group_id = -1

Index of the active debug_group. Points to an element in VKRenderGraph.debug_.used_groups.

Definition at line 64 of file vk_command_builder.hh.

◆ active_pipelines

VKBoundPipelines blender::gpu::render_graph::VKCommandBuilder::active_pipelines

State of the bound pipelines during command building.

Definition at line 48 of file vk_command_builder.hh.

◆ debug_level

int blender::gpu::render_graph::VKCommandBuilder::debug_level = 0

Current level of debug groups. (number of nested debug groups).

Definition at line 66 of file vk_command_builder.hh.

◆ dst_stage_mask

VkPipelineStageFlags blender::gpu::render_graph::VKCommandBuilder::dst_stage_mask = VK_PIPELINE_STAGE_NONE

Definition at line 58 of file vk_command_builder.hh.

◆ layered_attachments

Set<VkImage> blender::gpu::render_graph::VKCommandBuilder::layered_attachments

All layered attachments of the last rendering scope (VKNodeType::BEGIN_RENDERING).

when binding layer from these images we expect that they aren't used as attachment and can be transitioned into a different image layout. These image layouts are stored in layered_bindings.

Definition at line 75 of file vk_command_builder.hh.

◆ layered_bindings

Vector<LayeredImageBinding> blender::gpu::render_graph::VKCommandBuilder::layered_bindings

Definition at line 77 of file vk_command_builder.hh.

◆ src_stage_mask

VkPipelineStageFlags blender::gpu::render_graph::VKCommandBuilder::src_stage_mask = VK_PIPELINE_STAGE_NONE

When building memory barriers we need to track the src_stage_mask and dst_stage_mask and pass them to https://docs.vulkan.org/spec/latest/chapters/synchronization.html#vkCmdPipelineBarrier

NOTE: Only valid between reset_barriers and send_pipeline_barriers.

Definition at line 57 of file vk_command_builder.hh.


The documentation for this class was generated from the following files: