--- a/mojoshader.h Sun May 29 00:21:34 2016 -0400
+++ b/mojoshader.h Sun May 29 00:26:44 2016 -0400
@@ -538,9 +538,11 @@
int minor_ver;
/*
- * This is the main function name of the shader. On profiles that need
- * the caller to supply this, this will be the caller-supplied string.
- * Otherwise, it'll be the name chosen by the profile ("main") or
+ * This is the main function name of the shader. This will be the
+ * caller-supplied string even if a given profile ignores it (GLSL,
+ * for example, always uses "main" in the shader output out of necessity,
+ * and Direct3D assembly has no concept of a "main function", etc).
+ * Otherwise, it'll be a default name chosen by the profile ("main") or
* whatnot.
*/
const char *mainfn;