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

Data Fields

WGPUChainedStruct chain
 
void * layer
 

Detailed Description

Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping a CAMetalLayer.

Default values can be set using WGPU_SURFACE_SOURCE_METAL_LAYER_INIT as initializer.

Definition at line 3297 of file webgpu.h.

Field Documentation

◆ chain

WGPUChainedStruct WGPUSurfaceSourceMetalLayer::chain

Definition at line 3298 of file webgpu.h.

◆ layer

void* WGPUSurfaceSourceMetalLayer::layer

The pointer to the CAMetalLayer that will be wrapped by the WGPUSurface.

The INIT macro sets this to NULL.

Definition at line 3304 of file webgpu.h.