X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Ftexture_backend.h;h=123c6e4b278efd1d9f3325c351737241800f9d49;hb=6ef956d2f41512081e6c19d41a1230e177547dde;hp=1744cdd8c93a60ea589390fd98e0bacd2e38f323;hpb=99ca354f18119f82f1adeca100cd665a8f640317;p=libs%2Fgl.git diff --git a/source/backends/vulkan/texture_backend.h b/source/backends/vulkan/texture_backend.h index 1744cdd8..123c6e4b 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 change_layout(unsigned, int, unsigned, bool) const; + void set_debug_name(const std::string &); void set_vulkan_object_names() const; };