From de22d0aa3a3912925c6816dbd00a405fa665cb2a Mon Sep 17 00:00:00 2001 From: Bart van der Werf Date: Sun, 11 Aug 2024 02:10:41 +0200 Subject: [PATCH] Fix broken 'fake' COMPUTE shader type enum injected value, again for dx12 --- src/gpu/d3d12/SDL_gpu_d3d12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/d3d12/SDL_gpu_d3d12.c b/src/gpu/d3d12/SDL_gpu_d3d12.c index de079b593c199..c1688f0d85438 100644 --- a/src/gpu/d3d12/SDL_gpu_d3d12.c +++ b/src/gpu/d3d12/SDL_gpu_d3d12.c @@ -96,7 +96,7 @@ #define D3D12_FENCE_UNSIGNALED_VALUE 0 #define D3D12_FENCE_SIGNAL_VALUE 1 -#define SDL_GPU_SHADERSTAGE_COMPUTE (SDL_GpuShaderStage)2 +#define SDL_GPU_SHADERSTAGE_COMPUTE (SDL_GPU_SHADERSTAGE_FRAGMENT + 1) #define EXPAND_ELEMENTS_IF_NEEDED(arr, initialValue, type) \ if (arr->count == arr->capacity) { \