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

Data Fields

WGPUChainedStruct chain
 
void * connection
 
uint32_t window
 

Detailed Description

Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping an XCB xcb_window_t.

Default values can be set using WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT as initializer.

Definition at line 3390 of file webgpu.h.

Field Documentation

◆ chain

WGPUChainedStruct WGPUSurfaceSourceXCBWindow::chain

Definition at line 3391 of file webgpu.h.

◆ connection

void* WGPUSurfaceSourceXCBWindow::connection

The xcb_connection_t for the connection to the X server.

The INIT macro sets this to NULL.

Definition at line 3397 of file webgpu.h.

◆ window

uint32_t WGPUSurfaceSourceXCBWindow::window

The xcb_window_t for the window that will be wrapped by the WGPUSurface.

The INIT macro sets this to 0.

Definition at line 3403 of file webgpu.h.