Closed TheSpydog closed 2 months ago
Looks okay to me - they might not like the use_gpu bool but that might be a good conversation starter for getting rid of those window flags to begin with, since they don't really do anything anymore...
Get the selected backend from SDLTest_CommonInit so we can pick the right shaders
We can use SDL_GpuGetBackend to avoid digging into CommonInit. (Someone remind me to try and get the Metal and Vulkan window flags removed so we don't need SelectBackend anymore...)
This PR adds a
gltest
-like test program for SDL_GPU, copied mostly from Ryan's equivalent test on his GPU branch, but adjusted for our API.The only remaining task is to get the prebuilt Metal shaders generated.