Blender V4.3
vk_reset_query_pool_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
23
31class VKResetQueryPoolNode : public VKNodeInfo<VKNodeType::RESET_QUERY_POOL,
32 VKResetQueryPoolData,
33 VKResetQueryPoolData,
34 VK_PIPELINE_STAGE_NONE,
35 VKResourceType::NONE> {
36 public:
44 template<typename Node> void set_node_data(Node &node, const CreateInfo &create_info)
45 {
46 node.reset_query_pool = create_info;
47 }
48
52 void build_links(VKResourceStateTracker & /*resources*/,
53 VKRenderGraphNodeLinks & /*node_links*/,
54 const CreateInfo & /*create_info*/) override
55 {
56 }
57
62 Data &data,
63 VKBoundPipelines & /*r_bound_pipelines*/) override
64 {
65 command_buffer.reset_query_pool(data.vk_query_pool, data.first_query, data.query_count);
66 }
67};
68} // namespace blender::gpu::render_graph
virtual void reset_query_pool(VkQueryPool vk_query_pool, uint32_t first_query, uint32_t query_count)=0
void build_links(VKResourceStateTracker &, VKRenderGraphNodeLinks &, const CreateInfo &) override
void build_commands(VKCommandBufferInterface &command_buffer, Data &data, VKBoundPipelines &) override
void set_node_data(Node &node, const CreateInfo &create_info)
unsigned int uint32_t
Definition stdint.h:80