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

@@ -9,7 +9,9 @@ gnReturnCode openglCreateShaderModule(gnShaderModule module, gnDevice device, gn
.wordCount = shaderModuleInfo.size / 4,
.entryPoint = gnToCString(shaderModuleInfo.entryPoint),
};
module->shaderModule->compiler = glCreateCompiler(&info);
glCompiler compiler = glCreateCompiler(&info);
module->shaderModule->shader = glCompilerCompilerShader(compiler);
glDestroyCompiler(compiler);
return GN_SUCCESS;
}
void openglDestroyShaderModule(gnShaderModule module) {