mojoshader.h
changeset 475 ea119c8ce5cd
parent 470 7d84d3452125
child 489 414b70b829d7
--- a/mojoshader.h	Wed Dec 10 03:47:19 2008 -0500
+++ b/mojoshader.h	Wed Dec 10 03:48:38 2008 -0500
@@ -252,6 +252,15 @@
     const char *error;
 
     /*
+     * Position of error, if there is one. Will be -2 if there was no
+     *  error, and -1 if there was an error before processing started. If >= 0,
+     *  MOJOSHADER_parse() sets this to the byte offset (starting at zero) into
+     *  the bytecode you supplied, and MOJOSHADER_assemble() sets this to a
+     *  a line number in the source code you supplied (starting at zero).
+     */
+    int error_position;
+
+    /*
      * The name of the profile used to parse the shader. Will be NULL on error.
      */
     const char *profile;