finish cross compiliation to GLSL
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
#include "glad/glad.h"
|
||||
#include "utils/gryphn_cpp_function.h"
|
||||
|
||||
#define MAX_OPENGL_SETS 32
|
||||
#define MAX_OPENGL_BINDINGS 16
|
||||
#define MAX_OPENGL_SETS 16
|
||||
#define MAX_OPENGL_BINDINGS 32
|
||||
|
||||
typedef enum glShaderModuleStage {
|
||||
glVertex = GL_VERTEX_SHADER,
|
||||
@@ -22,10 +22,11 @@ typedef struct glCompilerInfo {
|
||||
typedef struct glSet { uint32_t bindings[MAX_OPENGL_BINDINGS]; } glSet;
|
||||
|
||||
typedef struct glShader {
|
||||
const char* source;
|
||||
char* source;
|
||||
glSet sets[MAX_OPENGL_SETS];
|
||||
} glShader;
|
||||
|
||||
typedef struct glCompiler_t* glCompiler;
|
||||
GN_CPP_FUNCTION glCompiler glCreateCompiler(glCompilerInfo* info);
|
||||
GN_CPP_FUNCTION const char* glCompilerCompilerShader(glCompiler compiler);
|
||||
GN_CPP_FUNCTION glShader glCompilerCompilerShader(glCompiler compiler);
|
||||
GN_CPP_FUNCTION void glDestroyCompiler(glCompiler compiler);
|
||||
|
||||
Reference in New Issue
Block a user