summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-31 01:45:05 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:34 +0200
commitadc43297c5c06adc101f2ec2198c93cbff2654e5 (patch)
tree7116c6a8d0cdbc09ddd20ef1258fa6818e07ea56 /src/shader_recompiler/backend
parentvulkan: Conditionally use shaderInt16 (diff)
downloadyuzu-adc43297c5c06adc101f2ec2198c93cbff2654e5.tar
yuzu-adc43297c5c06adc101f2ec2198c93cbff2654e5.tar.gz
yuzu-adc43297c5c06adc101f2ec2198c93cbff2654e5.tar.bz2
yuzu-adc43297c5c06adc101f2ec2198c93cbff2654e5.tar.lz
yuzu-adc43297c5c06adc101f2ec2198c93cbff2654e5.tar.xz
yuzu-adc43297c5c06adc101f2ec2198c93cbff2654e5.tar.zst
yuzu-adc43297c5c06adc101f2ec2198c93cbff2654e5.zip
Diffstat (limited to 'src/shader_recompiler/backend')
-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 7c618125e..007b79650 100644
--- a/src/shader_recompiler/backend/spirv/emit_context.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_context.cpp
@@ -188,7 +188,7 @@ void DefineGenericOutput(EmitContext& ctx, size_t index, std::optional<u32> invo
.first_element = element,
.num_components = num_components,
};
- std::fill_n(ctx.output_generics[index].begin(), num_components, info);
+ std::fill_n(ctx.output_generics[index].begin() + element, num_components, info);
element += num_components;
}
}