diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-06-08 15:28:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-08 15:28:15 +0200 |
| commit | 3dbdf0472d4f0e9900c39c883034ede911c33020 (patch) | |
| tree | c5c7fd2a1d91087a9b16d74aa3a54d96a2c984f9 /Source/Core/VideoBackends/Vulkan/VKTexture.cpp | |
| parent | e4636ad0a2f04c606f995d656706cbd83a40fb1d (diff) | |
| parent | cdc53c046b47e8aaef70637dfdc8dffc22b5e4ac (diff) | |
Merge pull request #11901 from Filoppi/add_texture_types
Video: add R10B10G10A2 and R16G16B16A16F texture types
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VKTexture.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/VKTexture.cpp | 6 |
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; |
