From cdc53c046b47e8aaef70637dfdc8dffc22b5e4ac Mon Sep 17 00:00:00 2001 From: Filoppi Date: Thu, 8 Jun 2023 03:17:20 +0300 Subject: Video: add R10B10G10A2 and R16G16B16A16F texture types (needed by PR 11850) --- Source/Core/VideoBackends/Vulkan/VKTexture.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Source/Core/VideoBackends/Vulkan/VKTexture.cpp') diff --git a/Source/Core/VideoBackends/Vulkan/VKTexture.cpp b/Source/Core/VideoBackends/Vulkan/VKTexture.cpp index 14b33d2376..201ee5f84f 100644 --- a/Source/Core/VideoBackends/Vulkan/VKTexture.cpp +++ b/Source/Core/VideoBackends/Vulkan/VKTexture.cpp @@ -189,6 +189,12 @@ VkFormat VKTexture::GetVkFormatForHostTextureFormat(AbstractTextureFormat format case AbstractTextureFormat::BGRA8: return VK_FORMAT_B8G8R8A8_UNORM; + case AbstractTextureFormat::RGB10_A2: + return VK_FORMAT_A2R10G10B10_UNORM_PACK32; + + case AbstractTextureFormat::RGBA16F: + return VK_FORMAT_R16G16B16A16_SFLOAT; + case AbstractTextureFormat::R16: return VK_FORMAT_R16_UNORM; -- cgit v1.2.3