Blender V5.3
blender::gpu::render_graph::VKDrawNodeInfo< NodeType, NodeCreateInfo, NodeData, PipelineStage, ResourceUsages > Class Template Referenceabstract

#include <vk_node_info.hh>

Inherits blender::blender::NonCopyable.

Public Types

using CreateInfo = NodeCreateInfo
using Data = NodeData

Public Member Functions

virtual void build_links (VKResourceStateTracker &resources, VKRenderGraphLinks &links, const CreateInfo &create_info, Data &data)=0
virtual void build_commands (VKCommandBufferInterface &command_buffer, Data &data, Span< uint8_t > storage_push_constants, VKBoundPipelines &r_bound_pipelines)=0
Public Member Functions inherited from blender::blender::NonCopyable
 NonCopyable (const NonCopyable &other)=delete
NonCopyable & operator= (const NonCopyable &other)=delete
 NonCopyable ()=default
 NonCopyable (NonCopyable &&other)=default
NonCopyable & operator= (NonCopyable &&other)=default

Static Public Member Functions

template<typename Storage>
static Data & alloc_node_data (Storage &storage, int64_t &r_storage_index)

Static Public Attributes

static constexpr VKNodeType node_type = NodeType
static constexpr VkPipelineStageFlags pipeline_stage = PipelineStage
static constexpr VKResourceType resource_usages = ResourceUsages

Detailed Description

template<VKNodeType NodeType, typename NodeCreateInfo, typename NodeData, VkPipelineStageFlags PipelineStage, VKResourceType ResourceUsages>
class blender::gpu::render_graph::VKDrawNodeInfo< NodeType, NodeCreateInfo, NodeData, PipelineStage, ResourceUsages >

Info class for a draw node type using the new allocation model.

Instead of copying data from CreateInfo into storage via set_node_data, nodes use alloc_node_data to get a reference to an in-place storage slot, then build_links reads directly from that already-written data.

Parameter order for build_links: resources, links, create_info, data.

Definition at line 233 of file vk_node_info.hh.

Member Typedef Documentation

◆ CreateInfo

template<VKNodeType NodeType, typename NodeCreateInfo, typename NodeData, VkPipelineStageFlags PipelineStage, VKResourceType ResourceUsages>
using blender::gpu::render_graph::VKDrawNodeInfo< NodeType, NodeCreateInfo, NodeData, PipelineStage, ResourceUsages >::CreateInfo = NodeCreateInfo

Definition at line 236 of file vk_node_info.hh.

◆ Data

template<VKNodeType NodeType, typename NodeCreateInfo, typename NodeData, VkPipelineStageFlags PipelineStage, VKResourceType ResourceUsages>
using blender::gpu::render_graph::VKDrawNodeInfo< NodeType, NodeCreateInfo, NodeData, PipelineStage, ResourceUsages >::Data = NodeData

Definition at line 237 of file vk_node_info.hh.

Member Function Documentation

◆ alloc_node_data()

template<VKNodeType NodeType, typename NodeCreateInfo, typename NodeData, VkPipelineStageFlags PipelineStage, VKResourceType ResourceUsages>
template<typename Storage>
Data & blender::gpu::render_graph::VKDrawNodeInfo< NodeType, NodeCreateInfo, NodeData, PipelineStage, ResourceUsages >::alloc_node_data ( Storage & storage,
int64_t & r_storage_index )
static

Allocate node data in the storage. Must be implemented by each node class.

References storage.

◆ build_commands()

template<VKNodeType NodeType, typename NodeCreateInfo, typename NodeData, VkPipelineStageFlags PipelineStage, VKResourceType ResourceUsages>
virtual void blender::gpu::render_graph::VKDrawNodeInfo< NodeType, NodeCreateInfo, NodeData, PipelineStage, ResourceUsages >::build_commands ( VKCommandBufferInterface & command_buffer,
Data & data,
Span< uint8_t > storage_push_constants,
VKBoundPipelines & r_bound_pipelines )
pure virtual

◆ build_links()

template<VKNodeType NodeType, typename NodeCreateInfo, typename NodeData, VkPipelineStageFlags PipelineStage, VKResourceType ResourceUsages>
virtual void blender::gpu::render_graph::VKDrawNodeInfo< NodeType, NodeCreateInfo, NodeData, PipelineStage, ResourceUsages >::build_links ( VKResourceStateTracker & resources,
VKRenderGraphLinks & links,
const CreateInfo & create_info,
Data & data )
pure virtual

Extract read/write resource dependencies from create_info and add them to node_links. Data is read directly from data (the in-place storage slot).

Implemented in blender::gpu::render_graph::VKDrawIndexedIndirectNode, blender::gpu::render_graph::VKDrawIndexedNode, blender::gpu::render_graph::VKDrawIndirectNode, and blender::gpu::render_graph::VKDrawNode.

References blender::data.

Member Data Documentation

◆ node_type

template<VKNodeType NodeType, typename NodeCreateInfo, typename NodeData, VkPipelineStageFlags PipelineStage, VKResourceType ResourceUsages>
VKNodeType blender::gpu::render_graph::VKDrawNodeInfo< NodeType, NodeCreateInfo, NodeData, PipelineStage, ResourceUsages >::node_type = NodeType
staticconstexpr

Node type of this class.

Definition at line 242 of file vk_node_info.hh.

◆ pipeline_stage

template<VKNodeType NodeType, typename NodeCreateInfo, typename NodeData, VkPipelineStageFlags PipelineStage, VKResourceType ResourceUsages>
VkPipelineStageFlags blender::gpu::render_graph::VKDrawNodeInfo< NodeType, NodeCreateInfo, NodeData, PipelineStage, ResourceUsages >::pipeline_stage = PipelineStage
staticconstexpr

Which pipeline stage does this command belongs to.

Definition at line 247 of file vk_node_info.hh.

◆ resource_usages

template<VKNodeType NodeType, typename NodeCreateInfo, typename NodeData, VkPipelineStageFlags PipelineStage, VKResourceType ResourceUsages>
VKResourceType blender::gpu::render_graph::VKDrawNodeInfo< NodeType, NodeCreateInfo, NodeData, PipelineStage, ResourceUsages >::resource_usages = ResourceUsages
staticconstexpr

Which resource types are relevant.

Definition at line 252 of file vk_node_info.hh.


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