diff options
author | Nguyen Dac Nam <nam.kazt.91@gmail.com> | 2020-02-19 06:57:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 06:57:22 +0100 |
commit | 88cb05e6e79e01b4bc2fb29b4d1cb2b3a1c2f6d4 (patch) | |
tree | d9887350486bf2e9ed0c50e83b7c373349fde3d3 /src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | |
parent | vk_device: setup shaderStorageImageReadWithoutFormat (diff) | |
download | yuzu-88cb05e6e79e01b4bc2fb29b4d1cb2b3a1c2f6d4.tar yuzu-88cb05e6e79e01b4bc2fb29b4d1cb2b3a1c2f6d4.tar.gz yuzu-88cb05e6e79e01b4bc2fb29b4d1cb2b3a1c2f6d4.tar.bz2 yuzu-88cb05e6e79e01b4bc2fb29b4d1cb2b3a1c2f6d4.tar.lz yuzu-88cb05e6e79e01b4bc2fb29b4d1cb2b3a1c2f6d4.tar.xz yuzu-88cb05e6e79e01b4bc2fb29b4d1cb2b3a1c2f6d4.tar.zst yuzu-88cb05e6e79e01b4bc2fb29b4d1cb2b3a1c2f6d4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index 925d068ee..c02306d69 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp @@ -1749,6 +1749,10 @@ private: } Expression ImageLoad(Operation operation) { + if (!device.IsShaderStorageImageReadWithoutFormatSupported()) { + return {v_float_zero, Type::Float}; + } + const auto& meta{std::get<MetaImage>(operation.GetMeta())}; const Id coords = GetCoordinates(operation, Type::Int); |