diff options
| author | 2022-11-11 00:25:03 +0800 | |
|---|---|---|
| committer | 2022-11-17 22:45:14 +0800 | |
| commit | 60e0d4a177803891720af4c5978bbf2604bed276 (patch) | |
| tree | a020a61ec430e3f2c3aff69b267b979a43f9eb9b /src/shader_recompiler/backend/glsl | |
| parent | Merge pull request #9199 from liamwhite/service-oops (diff) | |
| download | yuzu-60e0d4a177803891720af4c5978bbf2604bed276.tar.gz yuzu-60e0d4a177803891720af4c5978bbf2604bed276.tar.xz yuzu-60e0d4a177803891720af4c5978bbf2604bed276.zip | |
shader: Implement miss attribute layer
Diffstat (limited to 'src/shader_recompiler/backend/glsl')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp index d7c845469..02b84cbe6 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp | |||
| @@ -205,6 +205,9 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr, | |||
| 205 | case IR::Attribute::PrimitiveId: | 205 | case IR::Attribute::PrimitiveId: |
| 206 | ctx.AddF32("{}=itof(gl_PrimitiveID);", inst); | 206 | ctx.AddF32("{}=itof(gl_PrimitiveID);", inst); |
| 207 | break; | 207 | break; |
| 208 | case IR::Attribute::Layer: | ||
| 209 | ctx.AddF32("{}=itof(gl_Layer);", inst); | ||
| 210 | break; | ||
| 208 | case IR::Attribute::PositionX: | 211 | case IR::Attribute::PositionX: |
| 209 | case IR::Attribute::PositionY: | 212 | case IR::Attribute::PositionY: |
| 210 | case IR::Attribute::PositionZ: | 213 | case IR::Attribute::PositionZ: |