Blender V5.0
blender::gpu::render_graph::VKCommandBuilder Class Reference

#include <vk_command_builder.hh>

Build nodes

void build_nodes (VKRenderGraph &render_graph, VKCommandBufferInterface &command_buffer, Span< NodeHandle > node_handles)
void record_commands (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.

Member Function Documentation

◆ build_nodes()

void blender::gpu::render_graph::VKCommandBuilder::build_nodes ( VKRenderGraph & render_graph,
VKCommandBufferInterface & command_buffer,
Span< NodeHandle > node_handles )

Build execution groups and barriers. This method should be performed when the resources are locked.

Definition at line 22 of file vk_command_builder.cc.

References blender::gpu::render_graph::VKCommandBufferInterface::use_dynamic_rendering_local_read.

Referenced by blender::gpu::VKDevice::submission_runner(), and blender::gpu::render_graph::submit().

◆ record_commands()

void blender::gpu::render_graph::VKCommandBuilder::record_commands ( VKRenderGraph & render_graph,
VKCommandBufferInterface & command_buffer,
Span< NodeHandle > node_handles )

Record commands of the nodes provided by the node_handles parameter. The commands are recorded into the given command_buffer.

build_nodes needs to be called before calling with exact the same parameters.

Definition at line 31 of file vk_command_builder.cc.

Referenced by blender::gpu::VKDevice::submission_runner(), and blender::gpu::render_graph::submit().


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