WebGPU Headers: WGPURequestAdapterOptions Struct Reference

Data Fields

WGPUChainedStructnextInChain
 
WGPUFeatureLevel featureLevel
 
WGPUPowerPreference powerPreference
 
WGPUBool forceFallbackAdapter
 
WGPUBackendType backendType
 
WGPUSurface compatibleSurface
 

Default values can be set using WGPU_REQUEST_ADAPTER_OPTIONS_INIT as initializer.

Definition at line 4138 of file webgpu.h.

◆ nextInChain

◆ featureLevel

◆ powerPreference

◆ forceFallbackAdapter

WGPUBool WGPURequestAdapterOptions::forceFallbackAdapter

If true, requires the adapter to be a "fallback" adapter as defined by the JS spec. If this is not possible, the request returns null.

The INIT macro sets this to WGPU_FALSE.

Definition at line 4161 of file webgpu.h.

◆ backendType

If set, requires the adapter to have a particular backend type. If this is not possible, the request returns null.

The INIT macro sets this to WGPUBackendType_Undefined.

Definition at line 4168 of file webgpu.h.

◆ compatibleSurface

WGPUSurface WGPURequestAdapterOptions::compatibleSurface

If set, requires the adapter to be able to output to a particular surface. If this is not possible, the request returns null.

The INIT macro sets this to NULL.

Definition at line 4175 of file webgpu.h.