finish cross compiliation to GLSL

This commit is contained in:
Gregory Wells
2025-08-12 22:40:06 -04:00
parent 23f46385fe
commit 3f7b0737d7
5 changed files with 46 additions and 13 deletions

View File

@@ -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);