--- a/mojoshader.h Mon Jun 20 15:26:34 2011 -0400
+++ b/mojoshader.h Mon Jun 20 15:47:16 2011 -0400
@@ -532,11 +532,13 @@
*/
MOJOSHADER_sampler *samplers;
+ /* !!! FIXME: this should probably be "input" and not "attribute" */
/*
* The number of elements pointed to by (attributes).
*/
int attribute_count;
+ /* !!! FIXME: this should probably be "input" and not "attribute" */
/*
* (attribute_count) elements of data that specify Attributes to be set
* for this shader. See discussion on MOJOSHADER_attribute for details.
@@ -545,10 +547,23 @@
MOJOSHADER_attribute *attributes;
/*
+ * The number of elements pointed to by (outputs).
+ */
+ int output_count;
+
+ /*
+ * (output_count) elements of data that specify outputs this shader
+ * writes to. See discussion on MOJOSHADER_attribute for details.
+ * This can be NULL on error or if (output_count) is zero.
+ */
+ MOJOSHADER_attribute *outputs;
+
+ /*
* The number of elements pointed to by (swizzles).
*/
int swizzle_count;
+ /* !!! FIXME: this should probably be "input" and not "attribute" */
/*
* (swizzle_count) elements of data that specify swizzles the shader will
* apply to incoming attributes. This is a copy of what was passed to
@@ -2996,6 +3011,8 @@
*
* Vertex attributes are not shared between contexts.
*/
+ /* !!! FIXME: this should probably be "input" and not "attribute" */
+ /* !!! FIXME: or maybe "vertex array" or something. */
void MOJOSHADER_glSetVertexAttribute(MOJOSHADER_usage usage,
int index, unsigned int size,
MOJOSHADER_attributeType type,