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

Data Fields

WGPUChainedStruct * 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 4226 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUSurfaceDescriptor::nextInChain

Definition at line 4227 of file webgpu.h.

◆ label

WGPUStringView WGPUSurfaceDescriptor::label

Label used to refer to the object.

This is a Non-Null Input String.

The INIT macro sets this to WGPU_STRING_VIEW_INIT.

Definition at line 4235 of file webgpu.h.