diff options
author | GPUCode <geoster3d@gmail.com> | 2023-09-21 14:33:44 +0200 |
---|---|---|
committer | GPUCode <geoster3d@gmail.com> | 2023-09-21 14:33:44 +0200 |
commit | 4a59dc2947e2a0ce92c0f0b1691ba18e75feb4a2 (patch) | |
tree | 42ab09576b8fa4028dfd74cc1803a173a6e4c9c9 /src/video_core/vulkan_common/vulkan_device.cpp | |
parent | Merge pull request #11542 from t895/touch-offset-fix (diff) | |
download | yuzu-4a59dc2947e2a0ce92c0f0b1691ba18e75feb4a2.tar yuzu-4a59dc2947e2a0ce92c0f0b1691ba18e75feb4a2.tar.gz yuzu-4a59dc2947e2a0ce92c0f0b1691ba18e75feb4a2.tar.bz2 yuzu-4a59dc2947e2a0ce92c0f0b1691ba18e75feb4a2.tar.lz yuzu-4a59dc2947e2a0ce92c0f0b1691ba18e75feb4a2.tar.xz yuzu-4a59dc2947e2a0ce92c0f0b1691ba18e75feb4a2.tar.zst yuzu-4a59dc2947e2a0ce92c0f0b1691ba18e75feb4a2.zip |
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.cpp')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index 617417040..a88ff5ca5 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp @@ -76,6 +76,11 @@ constexpr std::array VK_FORMAT_R32G32B32_SFLOAT{ VK_FORMAT_UNDEFINED, }; +constexpr std::array VK_FORMAT_A4B4G4R4_UNORM_PACK16{ + VK_FORMAT_R4G4B4A4_UNORM_PACK16, + VK_FORMAT_UNDEFINED, +}; + } // namespace Alternatives enum class NvidiaArchitecture { @@ -110,6 +115,8 @@ constexpr const VkFormat* GetFormatAlternatives(VkFormat format) { return Alternatives::R8G8B8_SSCALED.data(); case VK_FORMAT_R32G32B32_SFLOAT: return Alternatives::VK_FORMAT_R32G32B32_SFLOAT.data(); + case VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT: + return Alternatives::VK_FORMAT_A4B4G4R4_UNORM_PACK16.data(); default: return nullptr; } @@ -238,6 +245,7 @@ std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties(vk::Physica VK_FORMAT_R32_SINT, VK_FORMAT_R32_UINT, VK_FORMAT_R4G4B4A4_UNORM_PACK16, + VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT, VK_FORMAT_R4G4_UNORM_PACK8, VK_FORMAT_R5G5B5A1_UNORM_PACK16, VK_FORMAT_R5G6B5_UNORM_PACK16, |