switchbrew / switch-examples

Switch examples for devkitA64 and libnx.
https://devkitpro.org/viewforum.php?f=42
559 stars 99 forks source link

SPIRV Shaders #70

Closed niko1point0 closed 4 years ago

niko1point0 commented 4 years ago

Does the OpenGL Library for Nintendo Switch homebrew support SPIRV shaders? Are functions like glSpecializeShaderARB available?

niko1point0 commented 4 years ago

I tried using eglGetProcAddress to get the function. Everything compiled, but my Switch crashes when I try to the glSpecializeShaderARB function that I find with eglGetProcAddress. I'm cross-compiling on WIndows OpenGL, so I know the shader code itself should work.

fincs commented 4 years ago

Nope, GL 4.6 and SPIR-V are not supported; not even in the original nouveau. In fact, GL 4.6 is not supported by the official Nvidia driver on PC either.