Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

shader: Implement ISCADD (imm)

ReinUsesLisp2b8d3555f156
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_scaled_add.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_scaled_add.cpp
index f06046d4da..5469e445ae 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_scaled_add.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_scaled_add.cpp
@@ -57,8 +57,8 @@ void TranslatorVisitor::ISCADD_cbuf(u64) {
throw NotImplementedException("ISCADD (cbuf)");
}
-void TranslatorVisitor::ISCADD_imm(u64) {
- throw NotImplementedException("ISCADD (imm)");
+void TranslatorVisitor::ISCADD_imm(u64 insn) {
+ ISCADD(*this, insn, GetImm20(insn));
}
void TranslatorVisitor::ISCADD32I(u64) {