15 #include <vsg/core/Object.h>
16 #include <vsg/vk/Context.h>
17 #include <vsg/vk/Device.h>
27 operator VkQueryPool()
const {
return _queryPool; }
28 VkQueryPool vk()
const {
return _queryPool; }
30 VkQueryPoolCreateFlags flags = 0;
31 VkQueryType queryType = VK_QUERY_TYPE_TIMESTAMP;
32 uint32_t queryCount = 1;
33 VkQueryPipelineStatisticFlags pipelineStatistics = 0;
35 void read(
Input& input)
override;
36 void write(
Output& output)
const override;
40 VkResult getResults(std::vector<uint32_t>& results, uint32_t firstQuery = 0, VkQueryResultFlags resultsFlags = VK_QUERY_RESULT_WAIT_BIT)
const;
41 VkResult getResults(std::vector<uint64_t>& results, uint32_t firstQuery = 0, VkQueryResultFlags resultsFlags = VK_QUERY_RESULT_WAIT_BIT | VK_QUERY_RESULT_64_BIT)
const;
48 VkQueryPool _queryPool{};
QueryPool encapsulates the VkQueryPool and the VkQueryPoolCreateInfo settings used to set it up.
Definition: QueryPool.h:23