summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNguyen Dac Nam <nam.kazt.91@gmail.com>2020-02-19 06:57:22 +0100
committerGitHub <noreply@github.com>2020-02-19 06:57:22 +0100
commit88cb05e6e79e01b4bc2fb29b4d1cb2b3a1c2f6d4 (patch)
treed9887350486bf2e9ed0c50e83b7c373349fde3d3 /src
parentvk_device: setup shaderStorageImageReadWithoutFormat (diff)
downloadyuzu-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 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_shader_decompiler.cpp4
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);