Create a new WebGPU surface.
Defined in <SDL3/SDL_wgpu.h>
bool SDL_WGPU_CreateSurface(SDL_Window *window, WGPUInstance instance, WGPUSurface *surface);| SDL_Window * | window | the window which the surface will attach itself to. |
| WGPUInstance | instance | a WebGPU instance. |
| WGPUSurface * | surface | a pointer to a WGPUSurface handle to output the newly created WebGPU surface. |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
This will not configure the surface.
This is part of SDL PR #16020, and is therefore not available in regular SDL.