summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/spirv/emit_context.cpp
diff options
context:
space:
mode:
authorGravatar Feng Chen2021-09-03 23:52:20 +0800
committerGravatar Feng Chen2021-09-03 23:52:20 +0800
commita7bbaa489755c9847416c8c96f0eefb9e78a50a0 (patch)
tree341ab621a49becca148157877d6e57e2a31ba770 /src/shader_recompiler/backend/spirv/emit_context.cpp
parentFix create GraphicsPipelines crash (diff)
downloadyuzu-a7bbaa489755c9847416c8c96f0eefb9e78a50a0.tar.gz
yuzu-a7bbaa489755c9847416c8c96f0eefb9e78a50a0.tar.xz
yuzu-a7bbaa489755c9847416c8c96f0eefb9e78a50a0.zip
Rename parameters
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_context.cpp')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.cpp b/src/shader_recompiler/backend/spirv/emit_context.cpp
index 78ca97d91..3ec5a4570 100644
--- a/src/shader_recompiler/backend/spirv/emit_context.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_context.cpp
@@ -1209,7 +1209,7 @@ void EmitContext::DefineInputs(const IR::Program& program) {
1209 if (loads.AnyComponent(IR::Attribute::FixedFncTexture0S)) { 1209 if (loads.AnyComponent(IR::Attribute::FixedFncTexture0S)) {
1210 const Id id{DefineInput(*this, F32[4], true)}; 1210 const Id id{DefineInput(*this, F32[4], true)};
1211 Decorate(id, spv::Decoration::Location, static_cast<u32>(12)); 1211 Decorate(id, spv::Decoration::Location, static_cast<u32>(12));
1212 input_txt_coord = id; 1212 input_fixed_fnc_texture = id;
1213 } 1213 }
1214 if (loads[IR::Attribute::InstanceId]) { 1214 if (loads[IR::Attribute::InstanceId]) {
1215 if (profile.support_vertex_instance_id) { 1215 if (profile.support_vertex_instance_id) {
@@ -1332,7 +1332,7 @@ void EmitContext::DefineOutputs(const IR::Program& program) {
1332 if (info.stores.AnyComponent(IR::Attribute::FixedFncTexture0S)) { 1332 if (info.stores.AnyComponent(IR::Attribute::FixedFncTexture0S)) {
1333 const Id id{DefineOutput(*this, F32[4], invocations)}; 1333 const Id id{DefineOutput(*this, F32[4], invocations)};
1334 Decorate(id, spv::Decoration::Location, static_cast<u32>(12)); 1334 Decorate(id, spv::Decoration::Location, static_cast<u32>(12));
1335 output_txt_coord = id; 1335 output_fixed_fnc_texture = id;
1336 } 1336 }
1337 1337
1338 for (size_t index = 0; index < IR::NUM_GENERICS; ++index) { 1338 for (size_t index = 0; index < IR::NUM_GENERICS; ++index) {