WebGPU Headers: WGPURequestAdapterOptions Struct Reference
Data Fields | |
| WGPUChainedStruct * | nextInChain |
| WGPUFeatureLevel | featureLevel |
| WGPUPowerPreference | powerPreference |
| WGPUBool | forceFallbackAdapter |
| WGPUBackendType | backendType |
| WGPUSurface | compatibleSurface |
Default values can be set using WGPU_REQUEST_ADAPTER_OPTIONS_INIT as initializer.
◆ nextInChain
◆ featureLevel
◆ powerPreference
◆ forceFallbackAdapter
WGPUBool WGPURequestAdapterOptions::forceFallbackAdapter
◆ 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.
◆ compatibleSurface
WGPUSurface WGPURequestAdapterOptions::compatibleSurface