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

#include <vk_begin_rendering_node.hh>

Inherits blender::gpu::render_graph::VKNodeInfo< VKNodeType::BEGIN_RENDERING, VKBeginRenderingCreateInfo, VKBeginRenderingData, VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, VKResourceType::IMAGE >.

Public Member Functions

template<typename Node, typename Storage>
void set_node_data (Node &node, Storage &storage, const CreateInfo &create_info)
void build_links (VKResourceStateTracker &resources, VKRenderGraphNodeLinks &node_links, const CreateInfo &create_info) override
void build_commands (VKCommandBufferInterface &command_buffer, Data &data, VKBoundPipelines &) override
Public Member Functions inherited from blender::NonCopyable
 NonCopyable (const NonCopyable &other)=delete
NonCopyableoperator= (const NonCopyable &other)=delete
 NonCopyable ()=default
 NonCopyable (NonCopyable &&other)=default
NonCopyableoperator= (NonCopyable &&other)=default

Static Public Member Functions

static void reconfigure_for_restart (VKBeginRenderingData &begin_rendering_data)
Static Public Member Functions inherited from blender::gpu::render_graph::VKNodeInfo< VKNodeType::BEGIN_RENDERING, VKBeginRenderingCreateInfo, VKBeginRenderingData, VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, VKResourceType::IMAGE >
static void set_node_data (Node &node, Storage &storage, const CreateInfo &create_info)

Additional Inherited Members

Public Types inherited from blender::gpu::render_graph::VKNodeInfo< VKNodeType::BEGIN_RENDERING, VKBeginRenderingCreateInfo, VKBeginRenderingData, VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, VKResourceType::IMAGE >
using CreateInfo
using Data
Static Public Attributes inherited from blender::gpu::render_graph::VKNodeInfo< VKNodeType::BEGIN_RENDERING, VKBeginRenderingCreateInfo, VKBeginRenderingData, VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, VKResourceType::IMAGE >
static constexpr VKNodeType node_type
static constexpr VkPipelineStageFlags pipeline_stage
static constexpr VKResourceType resource_usages

Detailed Description

Begin rendering node

  • Contains logic to copy relevant data to the VKRenderGraphNode.
  • Determine read/write resource dependencies.
  • Add commands to a command builder.

Definition at line 39 of file vk_begin_rendering_node.hh.

Member Function Documentation

◆ build_commands()

void blender::gpu::render_graph::VKBeginRenderingNode::build_commands ( VKCommandBufferInterface & command_buffer,
Data & data,
VKBoundPipelines &  )
inlineoverridevirtual

◆ build_links()

void blender::gpu::render_graph::VKBeginRenderingNode::build_links ( VKResourceStateTracker & resources,
VKRenderGraphNodeLinks & node_links,
const CreateInfo & create_info )
inlineoverridevirtual

◆ reconfigure_for_restart()

void blender::gpu::render_graph::VKBeginRenderingNode::reconfigure_for_restart ( VKBeginRenderingData & begin_rendering_data)
inlinestatic

Reconfigure the vk_rendering_info to be restarted.

When a render scope is restarted the clear/load ops needs to load in the previous stored results.

Definition at line 114 of file vk_begin_rendering_node.hh.

References blender::gpu::render_graph::VKBeginRenderingData::color_attachments, blender::gpu::render_graph::VKBeginRenderingData::depth_attachment, ELEM, blender::gpu::render_graph::VKBeginRenderingData::stencil_attachment, and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.

◆ set_node_data()

template<typename Node, typename Storage>
void blender::gpu::render_graph::VKBeginRenderingNode::set_node_data ( Node & node,
Storage & storage,
const CreateInfo & create_info )
inline

Update the node data with the data inside create_info.

Has been implemented as a template to ensure all node specific data (VK*Data/VK*CreateInfo) types can be included in the same header file as the logic. The actual node data (VKRenderGraphNode includes all header files.)

Definition at line 53 of file vk_begin_rendering_node.hh.

References BLI_assert_msg, blender::gpu::render_graph::VKBeginRenderingData::color_attachments, blender::gpu::render_graph::VKBeginRenderingData::depth_attachment, ELEM, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, blender::gpu::render_graph::VKBeginRenderingData::stencil_attachment, and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.


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