WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
WGPUSurfaceDescriptor Struct Reference

Data Fields

WGPUChainedStruct const * nextInChain
 
WGPUStringView label
 

Detailed Description

The root descriptor for the creation of an WGPUSurface with wgpuInstanceCreateSurface. It isn't sufficient by itself and must have one of the WGPUSurfaceSource* in its chain. See Surface Creation for more details.

Default values can be set using WGPU_SURFACE_DESCRIPTOR_INIT as initializer.

Definition at line 2965 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct const* WGPUSurfaceDescriptor::nextInChain

Definition at line 2966 of file webgpu.h.

◆ label

WGPUStringView WGPUSurfaceDescriptor::label

Label used to refer to the object.

This is a Non-Null Input String.

Defaults to WGPU_STRING_VIEW_INIT.

Definition at line 2974 of file webgpu.h.