|
Blender V5.3
|
#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 |
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.
| using blender::gpu::render_graph::VKDrawNodeInfo< NodeType, NodeCreateInfo, NodeData, PipelineStage, ResourceUsages >::CreateInfo = NodeCreateInfo |
Definition at line 236 of file vk_node_info.hh.
| using blender::gpu::render_graph::VKDrawNodeInfo< NodeType, NodeCreateInfo, NodeData, PipelineStage, ResourceUsages >::Data = NodeData |
Definition at line 237 of file vk_node_info.hh.
|
static |
Allocate node data in the storage. Must be implemented by each node class.
References storage.
|
pure virtual |
Build the commands and add them to the command_buffer.
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.
|
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.
|
staticconstexpr |
Node type of this class.
Definition at line 242 of file vk_node_info.hh.
|
staticconstexpr |
Which pipeline stage does this command belongs to.
Definition at line 247 of file vk_node_info.hh.
|
staticconstexpr |
Which resource types are relevant.
Definition at line 252 of file vk_node_info.hh.