From 1088ea55faccc2b1ae8a5884eee6b87ee1a92744 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Fri, 27 Sep 2024 23:55:02 +0300 Subject: [PATCH] SDL_gpu_d3d11.c: define D3D11_FORMAT_SUPPORT2_UAV_TYPED_LOAD for old toolchains --- src/gpu/d3d11/SDL_gpu_d3d11.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gpu/d3d11/SDL_gpu_d3d11.c b/src/gpu/d3d11/SDL_gpu_d3d11.c index 8776214410..90402ede29 100644 --- a/src/gpu/d3d11/SDL_gpu_d3d11.c +++ b/src/gpu/d3d11/SDL_gpu_d3d11.c @@ -5836,6 +5836,7 @@ static bool D3D11_SupportsTextureFormat( // TYPED_UNORDERED_ACCESS_VIEW implies support for typed UAV stores return false; } + #define D3D11_FORMAT_SUPPORT2_UAV_TYPED_LOAD 0x40 /* for old toolchains */ if ((usage & (SDL_GPU_TEXTUREUSAGE_COMPUTE_STORAGE_SIMULTANEOUS_READ_WRITE) && !(formatSupport2.OutFormatSupport2 & D3D11_FORMAT_SUPPORT2_UAV_TYPED_LOAD))) { return false; }