From 81e4212d8ee82c99e393caedd8e6876d9012f303 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sun, 17 Nov 2024 16:25:26 +0100 Subject: [PATCH] VkSwapchain: Use ComponentSwizzle::IDENTITY instead of each settings --- src/vulkan/vk_swapchain.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vulkan/vk_swapchain.rs b/src/vulkan/vk_swapchain.rs index 3402796..9ec8873 100644 --- a/src/vulkan/vk_swapchain.rs +++ b/src/vulkan/vk_swapchain.rs @@ -215,10 +215,10 @@ impl VkSwapchain { .view_type(vk::ImageViewType::TYPE_2D) .format(self.surface_format.format) .components(vk::ComponentMapping { - r: vk::ComponentSwizzle::R, - g: vk::ComponentSwizzle::G, - b: vk::ComponentSwizzle::B, - a: vk::ComponentSwizzle::A, + r: vk::ComponentSwizzle::IDENTITY, + g: vk::ComponentSwizzle::IDENTITY, + b: vk::ComponentSwizzle::IDENTITY, + a: vk::ComponentSwizzle::IDENTITY, }) .subresource_range(vk::ImageSubresourceRange { aspect_mask: vk::ImageAspectFlags::COLOR,