57 data.resize(
data.size() + BlockSize);
86 return data.capacity();
170 template<
typename NodeInfo>
172 const typename NodeInfo::CreateInfo &create_info)
178 type = NodeInfo::node_type;
179 node_info.set_node_data(*
this,
storage, create_info);
187 template<
typename NodeInfo>
190 const typename NodeInfo::CreateInfo &create_info)
197 node_info.build_links(resources,
links, create_info);
211 template<
typename NodeInfo>
215 type = NodeInfo::node_type;
216 return NodeInfo::alloc_node_data(
storage, storage_index);
225 template<
typename NodeInfo>
229 const typename NodeInfo::CreateInfo &create_info)
234 node_info.build_links(
235 resources,
links, create_info, NodeInfo::storage_data(
storage, storage_index));
249 return VK_PIPELINE_STAGE_NONE;
300 return VK_PIPELINE_STAGE_NONE;
317#define BUILD_COMMANDS_STORAGE(NODE_TYPE, NODE_CLASS, ATTRIBUTE_NAME) \
319 NODE_CLASS node_info; \
320 node_info.build_commands(command_buffer, \
321 storage.ATTRIBUTE_NAME[storage_index], \
322 storage.push_constants, \
323 r_bound_pipelines); \
327#define BUILD_COMMANDS(NODE_TYPE, NODE_CLASS, ATTRIBUTE_NAME) \
329 NODE_CLASS node_info; \
330 node_info.build_commands( \
331 command_buffer, ATTRIBUTE_NAME, storage.push_constants, r_bound_pipelines); \
339 build_acceleration_structure)
345 clear_depth_stencil_image)
368#undef BUILD_COMMANDS_STORAGE
379#define FREE_DATA(NODE_TYPE, NODE_CLASS, ATTRIBUTE_NAME) \
381 NODE_CLASS node_info; \
382 node_info.free_data(ATTRIBUTE_NAME); \
433 "VKRenderGraphNode should be kept small. Consider moving data to the "
434 "VKRenderGraphStorage class.");
#define BLI_assert_unreachable()
static constexpr IndexRange from_begin_end(const int64_t begin, const int64_t end)
static constexpr VkPipelineStageFlags pipeline_stage
static constexpr VkPipelineStageFlags pipeline_stage
#define storage(slot, qualifiers)
@ BUILD_ACCELERATION_STRUCTURE
@ CLEAR_DEPTH_STENCIL_IMAGE
BLI_STATIC_ASSERT(sizeof(VKRenderGraphNode)<=104, "VKRenderGraphNode should be kept small. Consider moving data to the " "VKRenderGraphStorage class.")
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
unsigned __int64 uint64_t
const T & operator[](int64_t index) const
T & alloc(int64_t &r_index)
T & operator[](int64_t index)
Vector< VKRenderGraphImage > images
Vector< VKRenderGraphBuffer > buffers
VkPipelineStageFlags pipeline_stage_get() const
NodeInfo::Data & alloc_node_data(VKRenderGraphStorage &storage)
struct blender::gpu::render_graph::VKRenderGraphNode::@257247171043172251003146323044156133205032067022 links
void finalize_node(VKRenderGraphStorage &storage, VKResourceStateTracker &resources, VKRenderGraphLinks &links, const typename NodeInfo::CreateInfo &create_info)
void build_links(VKResourceStateTracker &resources, VKRenderGraphLinks &links, const typename NodeInfo::CreateInfo &create_info)
void set_node_data(VKRenderGraphStorage &storage, const typename NodeInfo::CreateInfo &create_info)
void build_commands(VKCommandBufferInterface &command_buffer, VKRenderGraphStorage &storage, VKBoundPipelines &r_bound_pipelines)
Vector< VKClearAttachmentsNode::Data, 1024 > clear_attachments
Vector< VKBlitImageNode::Data, 1024 > blit_image
VKNodeStorage< VKDrawIndirectNode::Data > draw_indirect
Vector< VKCopyImageToBufferNode::Data, 1024 > copy_image_to_buffer
Vector< VKCopyBufferToImageNode::Data, 1024 > copy_buffer_to_image
VKNodeStorage< VKDrawIndexedIndirectNode::Data > draw_indexed_indirect
Vector< VKCopyImageNode::Data, 1024 > copy_image
Vector< uint8_t > push_constants
Vector< VKBuildAccelerationStructureNode::Data, 1024 > build_acceleration_structure
VKNodeStorage< VKDrawIndexedNode::Data > draw_indexed
Vector< VKBeginRenderingNode::Data, 1024 > begin_rendering
VKBeginQueryNode::Data begin_query
VKClearDepthStencilImageNode::Data clear_depth_stencil_image
VKResetQueryPoolNode::Data reset_query_pool
VKClearColorImageNode::Data clear_color_image
VKEndRenderingNode::Data end_rendering
VKUpdateMipmapsNode::Data update_mipmaps
VKEndQueryNode::Data end_query
VKSynchronizationNode::Data synchronization
VKCopyBufferNode::Data copy_buffer
VKUpdateBufferNode::Data update_buffer
VKFillBufferNode::Data fill_buffer
VKDispatchIndirectNode::Data dispatch_indirect
VKDispatchNode::Data dispatch
#define BUILD_COMMANDS(NODE_TYPE, NODE_CLASS, ATTRIBUTE_NAME)
#define BUILD_COMMANDS_STORAGE(NODE_TYPE, NODE_CLASS, ATTRIBUTE_NAME)
#define FREE_DATA(NODE_TYPE, NODE_CLASS, ATTRIBUTE_NAME)