diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-22 02:14:11 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:33 +0200 |
commit | e565eb361a3518f61cc7c23cf4fbba3e0a0ea0f6 (patch) | |
tree | 5d8b69eca891b9dd1b76a4f8af9cd62af1b9c0c8 /src/shader_recompiler/backend | |
parent | glasm: Implement SampleId (diff) | |
download | yuzu-e565eb361a3518f61cc7c23cf4fbba3e0a0ea0f6.tar yuzu-e565eb361a3518f61cc7c23cf4fbba3e0a0ea0f6.tar.gz yuzu-e565eb361a3518f61cc7c23cf4fbba3e0a0ea0f6.tar.bz2 yuzu-e565eb361a3518f61cc7c23cf4fbba3e0a0ea0f6.tar.lz yuzu-e565eb361a3518f61cc7c23cf4fbba3e0a0ea0f6.tar.xz yuzu-e565eb361a3518f61cc7c23cf4fbba3e0a0ea0f6.tar.zst yuzu-e565eb361a3518f61cc7c23cf4fbba3e0a0ea0f6.zip |
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | 7 |
1 files changed, 7 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 14fdc88f6..7a7297801 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 @@ -134,6 +134,13 @@ void EmitSetAttribute(EmitContext& ctx, IR::Attribute attr, ScalarF32 value, ctx.Add("MOV.F result.clip[{}].x,{};", index, value); break; } + case IR::Attribute::Layer: + if (ctx.stage == Stage::Geometry || ctx.profile.support_viewport_index_layer_non_geometry) { + ctx.Add("MOV.F result.layer.x,{};", value); + } else { + // LOG_WARNING + } + break; case IR::Attribute::ViewportIndex: if (ctx.stage == Stage::Geometry || ctx.profile.support_viewport_index_layer_non_geometry) { ctx.Add("MOV.F result.viewport.x,{};", value); |