summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/spirv
diff options
context:
space:
mode:
authorGravatar FernandoS272021-04-05 08:56:58 +0200
committerGravatar ameerj2021-07-22 21:51:26 -0400
commit72daa2a039d58d23b0dca035bb5f6af8b10ce97b (patch)
treec971b1e78869a84198a2856b20ac00d31a04bf47 /src/shader_recompiler/backend/spirv
parentshader: Fix splits on blocks using indirect branches (diff)
downloadyuzu-72daa2a039d58d23b0dca035bb5f6af8b10ce97b.tar.gz
yuzu-72daa2a039d58d23b0dca035bb5f6af8b10ce97b.tar.xz
yuzu-72daa2a039d58d23b0dca035bb5f6af8b10ce97b.zip
shader: Fix ShadowCube declaration type, set number of pipeline threads based on hardware
Diffstat (limited to 'src/shader_recompiler/backend/spirv')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.cpp b/src/shader_recompiler/backend/spirv/emit_context.cpp
index 5ef637fe7..002b305dc 100644
--- a/src/shader_recompiler/backend/spirv/emit_context.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_context.cpp
@@ -45,7 +45,7 @@ Id ImageType(EmitContext& ctx, const TextureDescriptor& desc) {
45 case TextureType::ShadowCube: 45 case TextureType::ShadowCube:
46 return ctx.TypeImage(type, spv::Dim::Cube, true, false, false, 1, format); 46 return ctx.TypeImage(type, spv::Dim::Cube, true, false, false, 1, format);
47 case TextureType::ShadowArrayCube: 47 case TextureType::ShadowArrayCube:
48 return ctx.TypeImage(type, spv::Dim::Cube, false, true, false, 1, format); 48 return ctx.TypeImage(type, spv::Dim::Cube, true, true, false, 1, format);
49 } 49 }
50 throw InvalidArgument("Invalid texture type {}", desc.type); 50 throw InvalidArgument("Invalid texture type {}", desc.type);
51} 51}