X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fquery_backend.h;fp=source%2Fbackends%2Fvulkan%2Fquery_backend.h;h=25c44dcff8a9480f0b636eac0173a7278763ed4a;hb=99ca354f18119f82f1adeca100cd665a8f640317;hp=0000000000000000000000000000000000000000;hpb=4cd245dafe6a7ee5c93edca5aee2d146f1155309;p=libs%2Fgl.git diff --git a/source/backends/vulkan/query_backend.h b/source/backends/vulkan/query_backend.h new file mode 100644 index 00000000..25c44dcf --- /dev/null +++ b/source/backends/vulkan/query_backend.h @@ -0,0 +1,33 @@ +#ifndef MSP_GL_QUERY_BACKEND_H_ +#define MSP_GL_QUERY_BACKEND_H_ + +#include +#include + +namespace Msp { +namespace GL { + +class VulkanQueryPool: public NonCopyable +{ + friend class VulkanCommands; + +protected: + unsigned vulkan_type; + + VulkanQueryPool(unsigned); + VulkanQueryPool(VulkanQueryPool &&); + ~VulkanQueryPool(); + + void resize(); + + unsigned get_result(unsigned) const; +}; + +using QueryPoolBackend = VulkanQueryPool; + +unsigned get_vulkan_query_type(unsigned); + +} // namespace GL +} // namespace Msp + +#endif