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 3904 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUDeviceDescriptor::nextInChain

Definition at line 3905 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 3911 of file webgpu.h.

◆ requiredFeatureCount

size_t WGPUDeviceDescriptor::requiredFeatureCount

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

Definition at line 3915 of file webgpu.h.

◆ requiredFeatures

WGPUFeatureName const* WGPUDeviceDescriptor::requiredFeatures

The INIT macro sets this to NULL.

Definition at line 3919 of file webgpu.h.

◆ requiredLimits

WGPULimits const* WGPUDeviceDescriptor::requiredLimits

The INIT macro sets this to NULL.

Definition at line 3923 of file webgpu.h.

◆ defaultQueue

WGPUQueueDescriptor WGPUDeviceDescriptor::defaultQueue

The INIT macro sets this to WGPU_QUEUE_DESCRIPTOR_INIT.

Definition at line 3927 of file webgpu.h.

◆ deviceLostCallbackInfo

WGPUDeviceLostCallbackInfo WGPUDeviceDescriptor::deviceLostCallbackInfo

The INIT macro sets this to WGPU_DEVICE_LOST_CALLBACK_INFO_INIT.

Definition at line 3931 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 3940 of file webgpu.h.