X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Ftexture_backend.h;h=4784ae9a9b5104d8f69f121fc204f2ed8db23869;hp=1744cdd8c93a60ea589390fd98e0bacd2e38f323;hb=a16145549dc87c3b12671f797bd77b14bcc7786b;hpb=bbdf52425b736a59d01dda215458c3a1c9bdb320 diff --git a/source/backends/vulkan/texture_backend.h b/source/backends/vulkan/texture_backend.h index 1744cdd8..4784ae9a 100644 --- a/source/backends/vulkan/texture_backend.h +++ b/source/backends/vulkan/texture_backend.h @@ -18,6 +18,7 @@ protected: Device &device; VkImage handle = 0; VkImageView view_handle = 0; + unsigned memory_id = 0; unsigned view_type; std::string debug_name; @@ -26,10 +27,13 @@ protected: ~VulkanTexture(); void allocate(); + virtual void fill_image_info(void *) const = 0; void require_swizzle() { } void generate_mipmap(); + void synchronize(int, unsigned, bool = false) const; + void set_debug_name(const std::string &); void set_vulkan_object_names() const; };