diff options
author | FengChen <vonchenplus@gmail.com> | 2022-11-10 17:25:03 +0100 |
---|---|---|
committer | FengChen <vonchenplus@gmail.com> | 2022-11-17 15:45:14 +0100 |
commit | 60e0d4a177803891720af4c5978bbf2604bed276 (patch) | |
tree | a020a61ec430e3f2c3aff69b267b979a43f9eb9b /src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | |
parent | Merge pull request #9199 from liamwhite/service-oops (diff) | |
download | yuzu-60e0d4a177803891720af4c5978bbf2604bed276.tar yuzu-60e0d4a177803891720af4c5978bbf2604bed276.tar.gz yuzu-60e0d4a177803891720af4c5978bbf2604bed276.tar.bz2 yuzu-60e0d4a177803891720af4c5978bbf2604bed276.tar.lz yuzu-60e0d4a177803891720af4c5978bbf2604bed276.tar.xz yuzu-60e0d4a177803891720af4c5978bbf2604bed276.tar.zst yuzu-60e0d4a177803891720af4c5978bbf2604bed276.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp')
-rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp index 0a7d42dda..9dbf9888d 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp @@ -104,6 +104,9 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr, Scal case IR::Attribute::PrimitiveId: ctx.Add("MOV.F {}.x,primitive.id;", inst); break; + case IR::Attribute::Layer: + ctx.Add("MOV.F {}.x,fragment.layer;", inst); + break; case IR::Attribute::PositionX: case IR::Attribute::PositionY: case IR::Attribute::PositionZ: |