SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]

SDL_WGPU_CreateSurface

Create a new WebGPU surface.

Header File

Defined in <SDL3/SDL_wgpu.h>

Syntax

bool SDL_WGPU_CreateSurface(SDL_Window *window, WGPUInstance instance, WGPUSurface *surface);

Function Parameters

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.

Return Value

(bool) Returns true on success or false on failure; call SDL_GetError() for more information.

Remarks

This will not configure the surface.

Version

This is part of SDL PR #16020, and is therefore not available in regular SDL.

See Also


CategoryAPI, CategoryAPIFunction, CategoryWgpu


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.