summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/spirv/emit_spirv.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-04-12 02:02:44 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:27 +0200
commit23b87147321d02abf47868f231f00f29b0d3b87d (patch)
treeeb5e8850d0fcf34a1cb301d431e6b591ecb9295d /src/shader_recompiler/backend/spirv/emit_spirv.cpp
parentpipeline_helper: Simplify descriptor objects initialization (diff)
downloadyuzu-23b87147321d02abf47868f231f00f29b0d3b87d.tar
yuzu-23b87147321d02abf47868f231f00f29b0d3b87d.tar.gz
yuzu-23b87147321d02abf47868f231f00f29b0d3b87d.tar.bz2
yuzu-23b87147321d02abf47868f231f00f29b0d3b87d.tar.lz
yuzu-23b87147321d02abf47868f231f00f29b0d3b87d.tar.xz
yuzu-23b87147321d02abf47868f231f00f29b0d3b87d.tar.zst
yuzu-23b87147321d02abf47868f231f00f29b0d3b87d.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.cpp b/src/shader_recompiler/backend/spirv/emit_spirv.cpp
index 9248bd78b..3258b0cf8 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv.cpp
@@ -244,6 +244,9 @@ void SetupCapabilities(const Profile& profile, const Info& info, EmitContext& ct
if (info.uses_typeless_image_reads && profile.support_typeless_image_loads) {
ctx.AddCapability(spv::Capability::StorageImageReadWithoutFormat);
}
+ if (info.uses_typeless_image_writes) {
+ ctx.AddCapability(spv::Capability::StorageImageWriteWithoutFormat);
+ }
// TODO: Track this usage
ctx.AddCapability(spv::Capability::ImageGatherExtended);
ctx.AddCapability(spv::Capability::ImageQuery);