diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-03-02 22:34:11 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-03-04 08:06:05 +0100 |
commit | 1f6571b3deab78d737a5737662860d6ed1ffc7b9 (patch) | |
tree | af3ba1ea126c47e053fa46a6c0e2deea0924853d /src/video_core/renderer_vulkan/vk_device.cpp | |
parent | Merge pull request #2154 from FearlessTobi/port-4647 (diff) | |
download | yuzu-1f6571b3deab78d737a5737662860d6ed1ffc7b9.tar yuzu-1f6571b3deab78d737a5737662860d6ed1ffc7b9.tar.gz yuzu-1f6571b3deab78d737a5737662860d6ed1ffc7b9.tar.bz2 yuzu-1f6571b3deab78d737a5737662860d6ed1ffc7b9.tar.lz yuzu-1f6571b3deab78d737a5737662860d6ed1ffc7b9.tar.xz yuzu-1f6571b3deab78d737a5737662860d6ed1ffc7b9.tar.zst yuzu-1f6571b3deab78d737a5737662860d6ed1ffc7b9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_device.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_device.cpp b/src/video_core/renderer_vulkan/vk_device.cpp index 78a4e5f0e..00242ecbe 100644 --- a/src/video_core/renderer_vulkan/vk_device.cpp +++ b/src/video_core/renderer_vulkan/vk_device.cpp @@ -122,8 +122,7 @@ bool VKDevice::IsFormatSupported(vk::Format wanted_format, vk::FormatFeatureFlag FormatType format_type) const { const auto it = format_properties.find(wanted_format); if (it == format_properties.end()) { - LOG_CRITICAL(Render_Vulkan, "Unimplemented format query={}", - static_cast<u32>(wanted_format)); + LOG_CRITICAL(Render_Vulkan, "Unimplemented format query={}", vk::to_string(wanted_format)); UNREACHABLE(); return true; } @@ -219,11 +218,19 @@ std::map<vk::Format, vk::FormatProperties> VKDevice::GetFormatProperties( format_properties.emplace(format, physical.getFormatProperties(format, dldi)); }; AddFormatQuery(vk::Format::eA8B8G8R8UnormPack32); - AddFormatQuery(vk::Format::eR5G6B5UnormPack16); + AddFormatQuery(vk::Format::eB5G6R5UnormPack16); + AddFormatQuery(vk::Format::eA2B10G10R10UnormPack32); + AddFormatQuery(vk::Format::eR8G8B8A8Srgb); + AddFormatQuery(vk::Format::eR8Unorm); AddFormatQuery(vk::Format::eD32Sfloat); + AddFormatQuery(vk::Format::eD16Unorm); AddFormatQuery(vk::Format::eD16UnormS8Uint); AddFormatQuery(vk::Format::eD24UnormS8Uint); AddFormatQuery(vk::Format::eD32SfloatS8Uint); + AddFormatQuery(vk::Format::eBc1RgbaUnormBlock); + AddFormatQuery(vk::Format::eBc2UnormBlock); + AddFormatQuery(vk::Format::eBc3UnormBlock); + AddFormatQuery(vk::Format::eBc4UnormBlock); return format_properties; } |