Added SDL_HINT_RENDER_DIRECT3D11_WARP

Fixes https://github.com/libsdl-org/SDL/issues/13002
This commit is contained in:
Sam Lantinga
2025-09-07 11:00:59 -07:00
parent 466f93aee1
commit ec33da05b3
2 changed files with 34 additions and 9 deletions

View File

@@ -2964,6 +2964,23 @@ extern "C" {
*/
#define SDL_HINT_RENDER_DIRECT3D11_DEBUG "SDL_RENDER_DIRECT3D11_DEBUG"
/**
* A variable controlling whether to use the Direct3D 11 WARP software rasterizer.
*
* For more information, see:
* https://learn.microsoft.com/en-us/windows/win32/direct3darticles/directx-warp
*
* The variable can be set to the following values:
*
* - "0": Disable WARP rasterizer. (default)
* - "1": Enable WARP rasterizer.
*
* This hint should be set before creating a renderer.
*
* \since This hint is available since SDL 3.4.0.
*/
#define SDL_HINT_RENDER_DIRECT3D11_WARP "SDL_RENDER_DIRECT3D11_WARP"
/**
* A variable controlling whether to enable Vulkan Validation Layers.
*