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

Data Fields

WGPUChainedStruct chain
 
void * hinstance
 
void * hwnd
 

Detailed Description

Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping a Windows HWND.

Default values can be set using WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT as initializer.

Definition at line 3356 of file webgpu.h.

Field Documentation

◆ chain

WGPUChainedStruct WGPUSurfaceSourceWindowsHWND::chain

Definition at line 3357 of file webgpu.h.

◆ hinstance

void* WGPUSurfaceSourceWindowsHWND::hinstance

The HINSTANCE for this application. Most commonly GetModuleHandle(nullptr).

The INIT macro sets this to NULL.

Definition at line 3364 of file webgpu.h.

◆ hwnd

void* WGPUSurfaceSourceWindowsHWND::hwnd

The HWND that will be wrapped by the WGPUSurface.

The INIT macro sets this to NULL.

Definition at line 3370 of file webgpu.h.