Blender V5.0
vk_end_rendering_node.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "vk_node_info.hh"
12
14
19
27class VKEndRenderingNode : public VKNodeInfo<VKNodeType::END_RENDERING,
28 VKEndRenderingData,
29 VKEndRenderingData,
30 VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT,
31 VKResourceType::NONE> {
32 public:
40 template<typename Node, typename Storage>
41 void set_node_data(Node &node, Storage & /*storage*/, const CreateInfo &create_info)
42 {
43 node.end_rendering = create_info;
44 }
45
49 void build_links(VKResourceStateTracker & /*resources*/,
50 VKRenderGraphNodeLinks & /*node_links*/,
51 const CreateInfo & /*create_info*/) override
52 {
53 }
54
59 Data & /*data*/,
60 VKBoundPipelines & /*r_bound_pipelines*/) override
61 {
62 command_buffer.end_rendering();
63 }
64};
65} // namespace blender::gpu::render_graph
void build_links(VKResourceStateTracker &, VKRenderGraphNodeLinks &, const CreateInfo &) override
void set_node_data(Node &node, Storage &, const CreateInfo &create_info)
void build_commands(VKCommandBufferInterface &command_buffer, Data &, VKBoundPipelines &) override