Blender V4.3
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
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> void set_node_data(Node &node, const CreateInfo &create_info)
41 {
42 node.end_rendering = create_info;
43 }
44
48 void build_links(VKResourceStateTracker & /*resources*/,
49 VKRenderGraphNodeLinks & /*node_links*/,
50 const CreateInfo & /*create_info*/) override
51 {
52 }
53
58 Data & /*data*/,
59 VKBoundPipelines & /*r_bound_pipelines*/) override
60 {
61 command_buffer.end_rendering();
62 }
63};
64} // namespace blender::gpu::render_graph
void build_links(VKResourceStateTracker &, VKRenderGraphNodeLinks &, const CreateInfo &) override
void set_node_data(Node &node, const CreateInfo &create_info)
void build_commands(VKCommandBufferInterface &command_buffer, Data &, VKBoundPipelines &) override