Procházet zdrojové kódy

SDL_gpu_d3d11.c: define D3D11_FORMAT_SUPPORT2_UAV_TYPED_LOAD for old toolchains

Ozkan Sezer před 1 rokem
rodič
revize
1088ea55fa
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      src/gpu/d3d11/SDL_gpu_d3d11.c

+ 1 - 0
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
         // TYPED_UNORDERED_ACCESS_VIEW implies support for typed UAV stores
         return false;
         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))) {
     if ((usage & (SDL_GPU_TEXTUREUSAGE_COMPUTE_STORAGE_SIMULTANEOUS_READ_WRITE) && !(formatSupport2.OutFormatSupport2 & D3D11_FORMAT_SUPPORT2_UAV_TYPED_LOAD))) {
         return false;
         return false;
     }
     }