]> git.tdb.fi Git - libs/gl.git/blob - source/backends/vulkan/query_backend.h
Minor tweaks to MemoryAllocator
[libs/gl.git] / source / backends / vulkan / query_backend.h
1 #ifndef MSP_GL_QUERY_BACKEND_H_
2 #define MSP_GL_QUERY_BACKEND_H_
3
4 #include <msp/core/noncopyable.h>
5 #include <vector>
6
7 namespace Msp {
8 namespace GL {
9
10 class VulkanQueryPool: public NonCopyable
11 {
12         friend class VulkanCommands;
13
14 protected:
15         unsigned vulkan_type;
16
17         VulkanQueryPool(unsigned);
18         VulkanQueryPool(VulkanQueryPool &&);
19         ~VulkanQueryPool();
20
21         void resize();
22
23         unsigned get_result(unsigned) const;
24 };
25
26 using QueryPoolBackend = VulkanQueryPool;
27
28 unsigned get_vulkan_query_type(unsigned);
29
30 } // namespace GL
31 } // namespace Msp
32
33 #endif