Elias Naur
3043c4243a
gpu/backend: add support for GLSL 1.50
...
Apple's OpenGL 3.2 Core implementation doesn't accept 1.30.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-02-27 21:22:59 +01:00
Elias Naur
dd6a247326
gpu/backend: add support for desktop OpenGL 3
...
In particular, add the GLSL 1.30 shader variant. Sigh.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-02-27 21:22:59 +01:00
Elias Naur
29d36e11ee
gpu/shaders: use correct type for integer vector
...
OpenGL supports casting from int to float during vertex array
reading. Direct3D doesn't. Since we're transpiling from GLSL, we can't
directly use the Direct3D builtin "asint". So that leaves using
"ivec2" instead of vec2.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-02-27 21:22:59 +01:00
Elias Naur
0d266c413d
gpu,gpu/backend: implement GLSL 300 es shader variants
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-02-27 20:34:58 +01:00
Elias Naur
5cd5d49108
gpu/backend: move backend interface types to a separate package
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-02-27 20:34:22 +01:00