jfcameron / gdk-graphics

3D Rendering using OpenGLES 2.0/WebGL1.0. Platforms: Linux, Windows, Mac, x86 64bit, arm64, wasm
MIT License
1 stars 1 forks source link

context: get_implementation #62

Open jfcameron opened 3 years ago

jfcameron commented 3 years ago

returns the enum value provided to the make_context factory. this ticket is written so that extensions that provide their own shaders can fail quickly if they do not provide e.g: shader code for the current implementation.

related to #44 (context capability detection)

should consider a unified shading language. i really see the wisdom in Vulkan's SPIRV. the api providing a language seems convenient but it makes portability across versions and apis painful.

knowing the impl still stands though. I would like to support other standards beyond webgl1/es2, and its reasonable that some extention library would only support a much more advanced implementation and be unable to provide a es2 version of whatever they accomplish