sokol icon indicating copy to clipboard operation
sokol copied to clipboard

sokol_gfx.h GL backend: defer shader linking to pipeline object creation?

Open floooh opened this issue 6 years ago • 0 comments

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.

floooh avatar Jun 17 '19 12:06 floooh