From 97192f3b54e1cc634529b4f456e0d3aad6c6a4ff Mon Sep 17 00:00:00 2001 From: Lilith Date: Mon, 24 Jun 2024 00:40:18 -0600 Subject: [PATCH] Use `vk::Format::R8G8B8A8_SRGB` for srgb textures in vulkan --- crates/yakui-vulkan/src/vulkan_texture.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/yakui-vulkan/src/vulkan_texture.rs b/crates/yakui-vulkan/src/vulkan_texture.rs index a1e21dfc..f009951b 100644 --- a/crates/yakui-vulkan/src/vulkan_texture.rs +++ b/crates/yakui-vulkan/src/vulkan_texture.rs @@ -168,7 +168,7 @@ impl VulkanTexture { fn get_format(yakui_format: yakui::paint::TextureFormat) -> vk::Format { match yakui_format { - yakui::paint::TextureFormat::Rgba8Srgb => vk::Format::R8G8B8A8_UNORM, + yakui::paint::TextureFormat::Rgba8Srgb => vk::Format::R8G8B8A8_SRGB, yakui::paint::TextureFormat::R8 => vk::Format::R8_UNORM, _ => panic!("Unsupported texture format: {yakui_format:?}"), }