summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-03-30 03:12:52 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:25 +0200
commit55b960a20f180a7529e15082023cb181d307110e (patch)
tree789da4ccad5ce980b78718fa5865f5fbb1d93884 /src/shader_recompiler/backend
parentshader: Add missing new lines (diff)
downloadyuzu-55b960a20f180a7529e15082023cb181d307110e.tar
yuzu-55b960a20f180a7529e15082023cb181d307110e.tar.gz
yuzu-55b960a20f180a7529e15082023cb181d307110e.tar.bz2
yuzu-55b960a20f180a7529e15082023cb181d307110e.tar.lz
yuzu-55b960a20f180a7529e15082023cb181d307110e.tar.xz
yuzu-55b960a20f180a7529e15082023cb181d307110e.tar.zst
yuzu-55b960a20f180a7529e15082023cb181d307110e.zip
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_special.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_special.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_special.cpp
index 70ae7b51e..44d2fde02 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_special.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_special.cpp
@@ -10,11 +10,11 @@ void EmitPrologue(EmitContext& ctx) {
if (ctx.stage == Stage::VertexB) {
const Id zero{ctx.Constant(ctx.F32[1], 0.0f)};
const Id one{ctx.Constant(ctx.F32[1], 1.0f)};
- const Id null_vector{ctx.ConstantComposite(ctx.F32[4], zero, zero, zero, zero)};
- ctx.OpStore(ctx.output_position, ctx.ConstantComposite(ctx.F32[4], zero, zero, zero, one));
+ const Id default_vector{ctx.ConstantComposite(ctx.F32[4], zero, zero, zero, one)};
+ ctx.OpStore(ctx.output_position, default_vector);
for (const Id generic_id : ctx.output_generics) {
if (Sirit::ValidId(generic_id)) {
- ctx.OpStore(generic_id, null_vector);
+ ctx.OpStore(generic_id, default_vector);
}
}
}