mojoshader_metal.c
changeset 1240 ebb2b1e436f2
parent 1229 3ecd29a50d9d
child 1241 01fea3855ffb
equal deleted inserted replaced
1239:98ccda2125b1 1240:ebb2b1e436f2
    76     int internalBufferSize;
    76     int internalBufferSize;
    77     int internalOffset;
    77     int internalOffset;
    78     int currentFrame;
    78     int currentFrame;
    79     int alreadyWritten;
    79     int alreadyWritten;
    80 } MOJOSHADER_mtlUniformBuffer;
    80 } MOJOSHADER_mtlUniformBuffer;
    81 
       
    82 typedef struct MOJOSHADER_mtlShaderState
       
    83 {
       
    84     MOJOSHADER_mtlShader *vertexShader;
       
    85     MOJOSHADER_mtlShader *fragmentShader;
       
    86     void *vertexUniformBuffer; // MTLBuffer*
       
    87     void *fragmentUniformBuffer; // MTLBuffer*
       
    88     int vertexUniformOffset;
       
    89     int fragmentUniformOffset;
       
    90 } MOJOSHADER_mtlShaderState;
       
    91 
    81 
    92 /* Objective-C selector references */
    82 /* Objective-C selector references */
    93 
    83 
    94 static void *classNSString = NULL;
    84 static void *classNSString = NULL;
    95 static void *selAlloc = NULL;
    85 static void *selAlloc = NULL;