sokol
sokol copied to clipboard
sokol_gfx.h GL backend: defer shader linking to pipeline object creation?
See here: https://www.khronos.org/registry/webgl/extensions/KHR_parallel_shader_compile/
...basically, when deferring shader linking to a later time, the underlying backend has more options to parallelize shader compilation.
The best place would probably creating the first pipeline object which uses the shader, this is still usually outside the "hot" render loop.
The latest possible time would be the first draw call with the pipeline object using a specific shader, but that's probably not such a good idea.