]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/texture2d_backend.h
Add an asynchronous version of Texture2D::sub_image
[libs/gl.git] / source / backends / vulkan / texture2d_backend.h
index d4b7db1d934cbcdd44a33f504857cf452857715c..7686a9e0e548645c1e9b0bd0fa42ba7c11be4b86 100644 (file)
@@ -9,6 +9,17 @@ namespace GL {
 class VulkanTexture2D: public Texture
 {
 protected:
+       class AsyncTransfer: public NonCopyable
+       {
+       protected:
+               AsyncTransfer() = default;
+               AsyncTransfer(AsyncTransfer &&) { }
+               AsyncTransfer &operator=(AsyncTransfer &&) { return *this; }
+
+               void *allocate();
+               void finalize();
+       };
+
        VulkanTexture2D();
 
        virtual void fill_image_info(void *) const;