# SDL_WGPU_DestroySurface Destroy a WebGPU surface. ## Header File Defined in [](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_wgpu.h) ## Syntax ```c void SDL_WGPU_DestroySurface(WGPUSurface surface); ``` ## Function Parameters | | | | | ----------- | ----------- | ----------------------- | | WGPUSurface | **surface** | the surface to destroy. | ## Version This is part of SDL PR #16020, and is therefore not available in regular SDL. ## See Also - [SDL_WGPU_CreateSurface](SDL_WGPU_CreateSurface) ---- [CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryWgpu](CategoryWgpu)