]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/texture_backend.h
Convert RGB pixel data to RGBA when staging
[libs/gl.git] / source / backends / vulkan / texture_backend.h
index 4784ae9a9b5104d8f69f121fc204f2ed8db23869..dad8834b2940487d1c2b0bbc3676b5e633b26b5a 100644 (file)
@@ -30,9 +30,13 @@ protected:
        virtual void fill_image_info(void *) const = 0;
        void require_swizzle() { }
 
-       void generate_mipmap();
+       void stage_pixels(void *, const void *, size_t);
 
-       void synchronize(int, unsigned, bool = false) const;
+       virtual void generate_mipmap() = 0;
+       void generate_mipmap_levels(unsigned);
+       virtual void fill_mipmap_blit(unsigned, void *) = 0;
+
+       void change_layout(unsigned, int, unsigned, bool) const;
 
        void set_debug_name(const std::string &);
        void set_vulkan_object_names() const;