Replies: 1 comment
-
Answering my own. It's not possible to use a "more recent" version of the GLSL backend to compile a SKSL shader. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to write SKSL shaders that require OpenGL 4.0+ features (random access to array).
I'm using SkiaSharp.Views.WindowsForms (3.0.0-preview.3.1), OpenTK.GL.Control 3.3.3 on a ".net 8 windows" application.
I've created the SKGLControl like this:
_glview = new SKGLControl(new GraphicsMode(new ColorFormat(8, 8, 8, 8), 24, 8), 4, 0, GraphicsContextFlags.Default);
Unfortunately, my shader doesn't compile because it looks like the 4.0 version of OpenGL was ignored, I have the shader compilation error
Errors: error: 68: index expression must be constant
Am I doing something wrong? Is it possible to use OpenGL 4 with SkiaSharp ?
Beta Was this translation helpful? Give feedback.
All reactions