From 89b13aabc4b4b2c4e074bfee3d8d091c6952d75d Mon Sep 17 00:00:00 2001 From: Sergey Kosarevsky Date: Wed, 11 Dec 2024 00:52:20 -0800 Subject: [PATCH] Added missing `Format_RG_UI32` --- lvk/vulkan/VulkanUtils.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lvk/vulkan/VulkanUtils.cpp b/lvk/vulkan/VulkanUtils.cpp index 935ab86d56..5275c09877 100644 --- a/lvk/vulkan/VulkanUtils.cpp +++ b/lvk/vulkan/VulkanUtils.cpp @@ -140,6 +140,10 @@ VkFormat lvk::formatToVkFormat(lvk::Format format) { return VK_FORMAT_R32_UINT; case lvk::Format_RG_UN8: return VK_FORMAT_R8G8_UNORM; + case lvk::Format_RG_UI16: + return VK_FORMAT_R16G16_UINT; + case lvk::Format_RG_UI32: + return VK_FORMAT_R32G32_UINT; case lvk::Format_RG_UN16: return VK_FORMAT_R16G16_UNORM; case lvk::Format_BGRA_UN8: @@ -154,8 +158,6 @@ VkFormat lvk::formatToVkFormat(lvk::Format format) { return VK_FORMAT_R16G16_SFLOAT; case lvk::Format_RG_F32: return VK_FORMAT_R32G32_SFLOAT; - case lvk::Format_RG_UI16: - return VK_FORMAT_R16G16_UINT; case lvk::Format_R_F32: return VK_FORMAT_R32_SFLOAT; case lvk::Format_RGBA_F16: