]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/synchronizer.h
Add a wrapper class for recording Vulkan commands
[libs/gl.git] / source / backends / vulkan / synchronizer.h
index 077274f8200a0fd1fad5417dcde7d92ba9995b4e..32a4d9793e303125a76e841aff368276ab791541 100644 (file)
@@ -8,6 +8,8 @@
 namespace Msp {
 namespace GL {
 
+class VulkanCommandRecorder;
+
 class Synchronizer
 {
 private:
@@ -40,7 +42,7 @@ public:
        void split_image_mipmap(VkImage, unsigned, unsigned);
        void change_image_layout(VkImage, unsigned, int, unsigned, bool);
        void reset();
-       void barrier(VkCommandBuffer);
+       void barrier(const VulkanCommandRecorder &);
 
 private:
        bool is_write_layout(unsigned);