diff options
author | Feng Chen <vonchenplus@gmail.com> | 2023-08-18 08:40:11 +0200 |
---|---|---|
committer | Feng Chen <vonchenplus@gmail.com> | 2023-08-18 08:40:11 +0200 |
commit | 1dcb0c2232719e38ec63119014ec29b847679596 (patch) | |
tree | bee334a51994be800ca6497c6a2744a91b902495 /src/video_core/vulkan_common/vulkan_device.cpp | |
parent | Merge pull request #10989 from comex/epipe (diff) | |
download | yuzu-1dcb0c2232719e38ec63119014ec29b847679596.tar yuzu-1dcb0c2232719e38ec63119014ec29b847679596.tar.gz yuzu-1dcb0c2232719e38ec63119014ec29b847679596.tar.bz2 yuzu-1dcb0c2232719e38ec63119014ec29b847679596.tar.lz yuzu-1dcb0c2232719e38ec63119014ec29b847679596.tar.xz yuzu-1dcb0c2232719e38ec63119014ec29b847679596.tar.zst yuzu-1dcb0c2232719e38ec63119014ec29b847679596.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 adde96aa5..617417040 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp @@ -71,6 +71,11 @@ constexpr std::array R8G8B8_SSCALED{ VK_FORMAT_UNDEFINED, }; +constexpr std::array VK_FORMAT_R32G32B32_SFLOAT{ + VK_FORMAT_R32G32B32A32_SFLOAT, + VK_FORMAT_UNDEFINED, +}; + } // namespace Alternatives enum class NvidiaArchitecture { @@ -103,6 +108,8 @@ constexpr const VkFormat* GetFormatAlternatives(VkFormat format) { return Alternatives::R16G16B16_SSCALED.data(); case VK_FORMAT_R8G8B8_SSCALED: return Alternatives::R8G8B8_SSCALED.data(); + case VK_FORMAT_R32G32B32_SFLOAT: + return Alternatives::VK_FORMAT_R32G32B32_SFLOAT.data(); default: return nullptr; } @@ -130,6 +137,7 @@ std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties(vk::Physica VK_FORMAT_A2B10G10R10_UINT_PACK32, VK_FORMAT_A2B10G10R10_UNORM_PACK32, VK_FORMAT_A2B10G10R10_USCALED_PACK32, + VK_FORMAT_A2R10G10B10_UNORM_PACK32, VK_FORMAT_A8B8G8R8_SINT_PACK32, VK_FORMAT_A8B8G8R8_SNORM_PACK32, VK_FORMAT_A8B8G8R8_SRGB_PACK32, |