libsdl-org / SDL_shadercross

Shader translation library for SDL's GPU API.
zlib License
57 stars 18 forks source link

Move compiler loading to an Init function #7

Closed flibitijibibo closed 2 months ago

flibitijibibo commented 2 months ago

Benefit of this would be to allow unloading the compilers gracefully, and also allows dynamically generating the supported shader formats based on which compilers successfully start up.

Akaricchi commented 2 months ago

Also necessary for thread-safety without spinlocks everywhere.