Added Dawn WebGPU support.

Added support for Google's Dawn WebGPU implementation.
You control which one's used via the option "SDL_WGPU_LIB" where it's
either "wgpu-native" or "dawn".
This commit is contained in:
The Stickmahn 2026-05-31 16:37:54 +02:00
parent 1629c545f1
commit ea6a51fed7
13 changed files with 227 additions and 22 deletions

View file

@ -490,6 +490,8 @@
/* Enable experimental WGPU support */
#cmakedefine SDL_VIDEO_WGPU 1
#cmakedefine WGPU_STATIC 1
#cmakedefine WGPU_NATIVE 1
#cmakedefine WGPU_DAWN 1
/* Enable GPU support */
#cmakedefine SDL_GPU_D3D11 1