From b4a30c310349eb543c1efbf79ecb20ed068dd4df Mon Sep 17 00:00:00 2001 From: Grant Horner Date: Fri, 21 Mar 2025 16:24:20 -0400 Subject: [PATCH] Fix invalid GPU device error --- backend_test/example_sdlgpu3_fetchcontent/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend_test/example_sdlgpu3_fetchcontent/main.c b/backend_test/example_sdlgpu3_fetchcontent/main.c index f60bdaf..b7c0bd7 100644 --- a/backend_test/example_sdlgpu3_fetchcontent/main.c +++ b/backend_test/example_sdlgpu3_fetchcontent/main.c @@ -1,4 +1,3 @@ -#include "SDL3/SDL_pixels.h" #include #include #include @@ -35,7 +34,9 @@ int main() { assert(window); SDL_GPUDevice *device = - SDL_CreateGPUDevice(SDL_GPU_SHADERFORMAT_MSL, true, NULL); + SDL_CreateGPUDevice(SDL_GPU_SHADERFORMAT_MSL | SDL_GPU_SHADERFORMAT_DXIL | + SDL_GPU_SHADERFORMAT_SPIRV, + true, NULL); assert(device); const char *device_driver = SDL_GetGPUDeviceDriver(device);