summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-19 00:43:17 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:32 +0200
commit0fa421f82f4efbb7fe2d86a18427b4889fd8d855 (patch)
tree4ef4d81c98e616abbda2f0498448ad7c39d12b44 /src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp
parentglasm: Do not alias ConditionRef for now (diff)
downloadyuzu-0fa421f82f4efbb7fe2d86a18427b4889fd8d855.tar
yuzu-0fa421f82f4efbb7fe2d86a18427b4889fd8d855.tar.gz
yuzu-0fa421f82f4efbb7fe2d86a18427b4889fd8d855.tar.bz2
yuzu-0fa421f82f4efbb7fe2d86a18427b4889fd8d855.tar.lz
yuzu-0fa421f82f4efbb7fe2d86a18427b4889fd8d855.tar.xz
yuzu-0fa421f82f4efbb7fe2d86a18427b4889fd8d855.tar.zst
yuzu-0fa421f82f4efbb7fe2d86a18427b4889fd8d855.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.cpp8
1 files changed, 4 insertions, 4 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 ceadb3333..0b6d853eb 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
@@ -120,12 +120,12 @@ void EmitSetFragColor(EmitContext& ctx, u32 index, u32 component, ScalarF32 valu
ctx.Add("MOV.F frag_color{}.{},{};", index, "xyzw"[component], value);
}
-void EmitSetSampleMask([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] ScalarF32 value) {
- throw NotImplementedException("GLASM instruction");
+void EmitSetSampleMask(EmitContext& ctx, ScalarS32 value) {
+ ctx.Add("MOV.S result.samplemask.x,{};", value);
}
-void EmitSetFragDepth([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] ScalarF32 value) {
- throw NotImplementedException("GLASM instruction");
+void EmitSetFragDepth(EmitContext& ctx, ScalarF32 value) {
+ ctx.Add("MOV.F result.depth.z,{};", value);
}
void EmitLoadLocal(EmitContext& ctx, IR::Inst& inst, ScalarU32 word_offset) {