mojoshader_internal.h
changeset 524 03eea2f0762c
parent 523 699696afd731
child 542 a56d3bfd2e36
--- a/mojoshader_internal.h	Fri Dec 19 00:05:20 2008 -0500
+++ b/mojoshader_internal.h	Sat Dec 20 05:48:38 2008 -0500
@@ -117,6 +117,12 @@
 #   define SWAP32(x) (x)
 #endif
 
+// This is the ID for a D3DXSHADER_CONSTANTTABLE in the bytecode comments.
+#define CTAB_ID 0x42415443  // 0x42415443 == 'CTAB'
+#define CTAB_SIZE 28  // sizeof (D3DXSHADER_CONSTANTTABLE).
+#define CINFO_SIZE 20  // sizeof (D3DXSHADER_CONSTANTINFO).
+#define CTYPEINFO_SIZE 16  // sizeof (D3DXSHADER_TYPEINFO).
+#define CMEMBERINFO_SIZE 8  // sizeof (D3DXSHADER_STRUCTMEMBERINFO)
 
 // we need to reference these by explicit value occasionally...
 #define OPCODE_RET 28
@@ -138,7 +144,6 @@
 static void internal_free(void *ptr, void *d) { free(ptr); }
 #endif
 
-
 // result modifiers.
 // !!! FIXME: why isn't this an enum?
 #define MOD_SATURATE 0x01