mojoshader.h
changeset 1180 8abc040525ed
parent 1171 9f27482a2f58
child 1209 2e37299b13d8
--- a/mojoshader.h	Sat Jul 09 01:44:57 2016 -0400
+++ b/mojoshader.h	Thu Oct 12 16:35:50 2017 -0400
@@ -241,7 +241,7 @@
     MOJOSHADER_USAGE_FOG,
     MOJOSHADER_USAGE_DEPTH,
     MOJOSHADER_USAGE_SAMPLE,
-    MOJOSHADER_USAGE_TOTAL,  /* housekeeping value; never returned. */
+    MOJOSHADER_USAGE_TOTAL   /* housekeeping value; never returned. */
 } MOJOSHADER_usage;
 
 /*
@@ -286,25 +286,27 @@
 
 typedef enum
 {
-    MOJOSHADER_SYMREGSET_BOOL,
+    MOJOSHADER_SYMREGSET_BOOL=0,
     MOJOSHADER_SYMREGSET_INT4,
     MOJOSHADER_SYMREGSET_FLOAT4,
     MOJOSHADER_SYMREGSET_SAMPLER,
+    MOJOSHADER_SYMREGSET_TOTAL    /* housekeeping value; never returned. */
 } MOJOSHADER_symbolRegisterSet;
 
 typedef enum
 {
-    MOJOSHADER_SYMCLASS_SCALAR,
+    MOJOSHADER_SYMCLASS_SCALAR=0,
     MOJOSHADER_SYMCLASS_VECTOR,
     MOJOSHADER_SYMCLASS_MATRIX_ROWS,
     MOJOSHADER_SYMCLASS_MATRIX_COLUMNS,
     MOJOSHADER_SYMCLASS_OBJECT,
     MOJOSHADER_SYMCLASS_STRUCT,
+    MOJOSHADER_SYMCLASS_TOTAL    /* housekeeping value; never returned. */
 } MOJOSHADER_symbolClass;
 
 typedef enum
 {
-    MOJOSHADER_SYMTYPE_VOID,
+    MOJOSHADER_SYMTYPE_VOID=0,
     MOJOSHADER_SYMTYPE_BOOL,
     MOJOSHADER_SYMTYPE_INT,
     MOJOSHADER_SYMTYPE_FLOAT,
@@ -324,6 +326,7 @@
     MOJOSHADER_SYMTYPE_PIXELFRAGMENT,
     MOJOSHADER_SYMTYPE_VERTEXFRAGMENT,
     MOJOSHADER_SYMTYPE_UNSUPPORTED,
+    MOJOSHADER_SYMTYPE_TOTAL    /* housekeeping value; never returned. */
 } MOJOSHADER_symbolType;
 
 typedef struct MOJOSHADER_symbolStructMember MOJOSHADER_symbolStructMember;