summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-22 02:14:11 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:33 +0200
commite565eb361a3518f61cc7c23cf4fbba3e0a0ea0f6 (patch)
tree5d8b69eca891b9dd1b76a4f8af9cd62af1b9c0c8 /src/shader_recompiler
parentglasm: Implement SampleId (diff)
downloadyuzu-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')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp7
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);