Skip to content

Commit

Permalink
Use vk::Format::R8G8B8A8_SRGB for srgb textures in vulkan
Browse files Browse the repository at this point in the history
  • Loading branch information
HexyWitch committed Jun 24, 2024
1 parent a91e91d commit 97192f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/yakui-vulkan/src/vulkan_texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:?}"),
}
Expand Down

0 comments on commit 97192f3

Please sign in to comment.