LWJGL On Macos

Started by joecqr, December 08, 2023, 22:15:02

Previous topic - Next topic

joecqr

Hello everyone,

I'm trying to compile a shader on macos but im getting some errors, I think this has to do that macos doen't support openpl, i saw in the system settings, it actually uses metal.
Im getting this error when i try to compile the shader
Error: vertex shader compilation failed
ERROR: 0:1: '' :  version '330' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:3: 'layout' : syntax error: syntax error


i saw there is lib called bgfx, but im not sure how to use it.

Is it possible to compile shader on mac that uses metal instead of opengl?

Thanks!