WebGPU Headers: WGPUSurface methods

Functions whose first argument has type WGPUSurface. More...

Functions

void wgpuSurfaceConfigure (WGPUSurface surface, WGPUSurfaceConfiguration const *config)
 
WGPUStatus wgpuSurfaceGetCapabilities (WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities *capabilities)
 
void wgpuSurfaceGetCurrentTexture (WGPUSurface surface, WGPUSurfaceTexture *surfaceTexture)
 
WGPUStatus wgpuSurfacePresent (WGPUSurface surface)
 
void wgpuSurfaceSetLabel (WGPUSurface surface, WGPUStringView label)
 
void wgpuSurfaceUnconfigure (WGPUSurface surface)
 
void wgpuSurfaceAddRef (WGPUSurface surface)
 
void wgpuSurfaceRelease (WGPUSurface surface)
 

Functions whose first argument has type WGPUSurface.

◆ wgpuSurfaceConfigure()

Configures parameters for rendering to surface. Produces a Device Error for all content-timeline errors defined by the WebGPU specification.

See Surface Configuration for more details.

Parameters
configThe new configuration to use.

◆ wgpuSurfaceGetCapabilities()

◆ wgpuSurfaceGetCurrentTexture()

◆ wgpuSurfacePresent()

◆ wgpuSurfaceSetLabel()

Modifies the label used to refer to surface.

Parameters

◆ wgpuSurfaceUnconfigure()

◆ wgpuSurfaceAddRef()

◆ wgpuSurfaceRelease()