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

Data Fields

WGPUChainedStruct chain
 
void * display
 
uint64_t window
 

Detailed Description

Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping an Xlib Window.

Default values can be set using WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT as initializer.

Definition at line 3423 of file webgpu.h.

Field Documentation

◆ chain

WGPUChainedStruct WGPUSurfaceSourceXlibWindow::chain

Definition at line 3424 of file webgpu.h.

◆ display

void* WGPUSurfaceSourceXlibWindow::display

A pointer to the Display connected to the X server.

The INIT macro sets this to NULL.

Definition at line 3430 of file webgpu.h.

◆ window

uint64_t WGPUSurfaceSourceXlibWindow::window

The Window that will be wrapped by the WGPUSurface.

The INIT macro sets this to 0.

Definition at line 3436 of file webgpu.h.