mojoshader_internal.h
changeset 1291 db27fb09421a
parent 1290 2febe5ae83ad
child 1303 7a43f238f28a
--- a/mojoshader_internal.h	Mon Jul 20 16:14:43 2020 -0400
+++ b/mojoshader_internal.h	Mon Jul 20 18:53:54 2020 -0400
@@ -413,6 +413,7 @@
 
 // we need to reference these by explicit value occasionally...
 #define OPCODE_RCP 6
+#define OPCODE_RSQ 7
 #define OPCODE_RET 28
 #define OPCODE_IF 40
 #define OPCODE_IFC 41
@@ -781,7 +782,7 @@
 INSTRUCTION(MAD, "MAD", 1, DSSS, MOJOSHADER_TYPE_ANY, 0xF)
 INSTRUCTION(MUL, "MUL", 1, DSS, MOJOSHADER_TYPE_ANY, 0xF)
 INSTRUCTION_STATE(RCP, "RCP", 1, DS, MOJOSHADER_TYPE_ANY, 0xF)
-INSTRUCTION(RSQ, "RSQ", 1, DS, MOJOSHADER_TYPE_ANY, 0xF)
+INSTRUCTION_STATE(RSQ, "RSQ", 1, DS, MOJOSHADER_TYPE_ANY, 0xF)
 INSTRUCTION(DP3, "DP3", 1, DSS, MOJOSHADER_TYPE_ANY, 0xF)
 INSTRUCTION_STATE(DP4, "DP4", 1, DSS, MOJOSHADER_TYPE_ANY, 0xF)
 INSTRUCTION(MIN, "MIN", 1, DSS, MOJOSHADER_TYPE_ANY, 0xF)