summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan
diff options
context:
space:
mode:
authorFiloppi <filippotarpini@hotmail.it>2023-06-08 03:17:20 +0300
committerFiloppi <filippotarpini@hotmail.it>2023-06-08 03:17:20 +0300
commitcdc53c046b47e8aaef70637dfdc8dffc22b5e4ac (patch)
tree7da2d93aed8fe255ff13edb632599676bce590b7 /Source/Core/VideoBackends/Vulkan
parent6743ca8e098268e7a11f26d626a15a09bd342577 (diff)
Video: add R10B10G10A2 and R16G16B16A16F texture types (needed by PR 11850)
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan')
-rw-r--r--Source/Core/VideoBackends/Vulkan/VKTexture.cpp6
1 files changed, 6 insertions, 0 deletions
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;