]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/texture2d_backend.h
Move Texture2D::AsyncLoader back to the common part
[libs/gl.git] / source / backends / vulkan / texture2d_backend.h
index d4b7db1d934cbcdd44a33f504857cf452857715c..139f8bef417bf03509425127f11668c3f0bbd8f9 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;
@@ -16,7 +27,6 @@ protected:
        virtual void fill_mipmap_blit(unsigned, void *);
 
 public:
-       virtual Resource::AsyncLoader *load(IO::Seekable &, const Resources * = 0);
        virtual std::size_t get_data_size() const;
        virtual void unload();
 };