Default values can be set using WGPU_DEVICE_DESCRIPTOR_INIT as initializer.
WGPUChainedStruct* WGPUDeviceDescriptor::nextInChain |
WGPUStringView WGPUDeviceDescriptor::label |
This is a Non-Null Input String.
The INIT
macro sets this to WGPU_STRING_VIEW_INIT.
size_t WGPUDeviceDescriptor::requiredFeatureCount |
WGPUFeatureName const* WGPUDeviceDescriptor::requiredFeatures |
WGPULimits const* WGPUDeviceDescriptor::requiredLimits |
WGPUQueueDescriptor WGPUDeviceDescriptor::defaultQueue |
The INIT
macro sets this to WGPU_QUEUE_DESCRIPTOR_INIT.
WGPUDeviceLostCallbackInfo WGPUDeviceDescriptor::deviceLostCallbackInfo |
The INIT
macro sets this to WGPU_DEVICE_LOST_CALLBACK_INFO_INIT.
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.