libsdl-org / SDL_shadercross

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

Expand test.c to be an offline shader cross-compiler/validator #19

Closed flibitijibibo closed 2 weeks ago

flibitijibibo commented 1 month ago

We were thinking about good tests for this, and one thing we wanted to have anyway was an offline translator, for people who don't want to do all the compilation mess online. This wouldn't be exactly the same as calling CreateGPUShader but I bet it's easy enough to split up the stages, and then we can have a validator afterward.

thatcosmonaut commented 2 weeks ago

Resolved by https://github.com/libsdl-org/SDL_gpu_shadercross/commit/62e7df2544abd30005d8eefb5a62d2edede0fe41