diff options
| author | 2021-04-11 21:02:44 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:27 -0400 | |
| commit | 23b87147321d02abf47868f231f00f29b0d3b87d (patch) | |
| tree | eb5e8850d0fcf34a1cb301d431e6b591ecb9295d /src/shader_recompiler/backend | |
| parent | pipeline_helper: Simplify descriptor objects initialization (diff) | |
| download | yuzu-23b87147321d02abf47868f231f00f29b0d3b87d.tar.gz yuzu-23b87147321d02abf47868f231f00f29b0d3b87d.tar.xz yuzu-23b87147321d02abf47868f231f00f29b0d3b87d.zip | |
spirv: Define StorageImageWriteWithoutFormat capability when used
Diffstat (limited to 'src/shader_recompiler/backend')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv.cpp | 3 |
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 | |||
| 244 | if (info.uses_typeless_image_reads && profile.support_typeless_image_loads) { | 244 | if (info.uses_typeless_image_reads && profile.support_typeless_image_loads) { |
| 245 | ctx.AddCapability(spv::Capability::StorageImageReadWithoutFormat); | 245 | ctx.AddCapability(spv::Capability::StorageImageReadWithoutFormat); |
| 246 | } | 246 | } |
| 247 | if (info.uses_typeless_image_writes) { | ||
| 248 | ctx.AddCapability(spv::Capability::StorageImageWriteWithoutFormat); | ||
| 249 | } | ||
| 247 | // TODO: Track this usage | 250 | // TODO: Track this usage |
| 248 | ctx.AddCapability(spv::Capability::ImageGatherExtended); | 251 | ctx.AddCapability(spv::Capability::ImageGatherExtended); |
| 249 | ctx.AddCapability(spv::Capability::ImageQuery); | 252 | ctx.AddCapability(spv::Capability::ImageQuery); |