mojoshader_effects.h
changeset 1240 ebb2b1e436f2
parent 1235 8fd6c5efe453
child 1245 ad9a16c8b023
--- a/mojoshader_effects.h	Thu Apr 02 15:06:14 2020 -0400
+++ b/mojoshader_effects.h	Fri Apr 03 12:40:20 2020 -0400
@@ -804,7 +804,15 @@
 /* Metal effect interface... */
 
 typedef struct MOJOSHADER_mtlEffect MOJOSHADER_mtlEffect;
-typedef struct MOJOSHADER_mtlShaderState MOJOSHADER_mtlShaderState;
+typedef struct MOJOSHADER_mtlShaderState
+{
+    MOJOSHADER_mtlShader *vertexShader;
+    MOJOSHADER_mtlShader *fragmentShader;
+    void *vertexUniformBuffer; // MTLBuffer*
+    void *fragmentUniformBuffer; // MTLBuffer*
+    int vertexUniformOffset;
+    int fragmentUniformOffset;
+} MOJOSHADER_mtlShaderState;
 
 /* Fully compile/link the shaders found within the effect.
  *