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

Data Fields

WGPUChainedStructnextInChain
 
WGPUStringView label
 
size_t requiredFeatureCount
 
WGPUFeatureName const * requiredFeatures
 
WGPULimits const * requiredLimits
 
WGPUQueueDescriptor defaultQueue
 
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
 
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
 

Detailed Description

Default values can be set using WGPU_DEVICE_DESCRIPTOR_INIT as initializer.

Definition at line 3818 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUDeviceDescriptor::nextInChain

Definition at line 3819 of file webgpu.h.

◆ label

WGPUStringView WGPUDeviceDescriptor::label

This is a Non-Null Input String.

The INIT macro sets this to WGPU_STRING_VIEW_INIT.

Definition at line 3825 of file webgpu.h.

◆ requiredFeatureCount

size_t WGPUDeviceDescriptor::requiredFeatureCount

Array count for requiredFeatures. The INIT macro sets this to 0.

Definition at line 3829 of file webgpu.h.

◆ requiredFeatures

WGPUFeatureName const* WGPUDeviceDescriptor::requiredFeatures

The INIT macro sets this to NULL.

Definition at line 3833 of file webgpu.h.

◆ requiredLimits

WGPULimits const* WGPUDeviceDescriptor::requiredLimits

The INIT macro sets this to NULL.

Definition at line 3837 of file webgpu.h.

◆ defaultQueue

WGPUQueueDescriptor WGPUDeviceDescriptor::defaultQueue

The INIT macro sets this to WGPU_QUEUE_DESCRIPTOR_INIT.

Definition at line 3841 of file webgpu.h.

◆ deviceLostCallbackInfo

WGPUDeviceLostCallbackInfo WGPUDeviceDescriptor::deviceLostCallbackInfo

The INIT macro sets this to WGPU_DEVICE_LOST_CALLBACK_INFO_INIT.

Definition at line 3845 of file webgpu.h.

◆ uncapturedErrorCallbackInfo

WGPUUncapturedErrorCallbackInfo WGPUDeviceDescriptor::uncapturedErrorCallbackInfo

Called when there is an uncaptured error on this device, from any thread. See Error Scopes.

Important: This callback does not have a configurable WGPUCallbackMode; it may be called at any time (like WGPUCallbackMode_AllowSpontaneous). As such, calls into the webgpu.h API from this callback are unsafe. See Callback Reentrancy.

The INIT macro sets this to WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT.

Definition at line 3854 of file webgpu.h.