Default values can be set using WGPU_REQUEST_ADAPTER_OPTIONS_INIT as initializer.
WGPUChainedStruct const* WGPURequestAdapterOptions::nextInChain |
WGPUFeatureLevel WGPURequestAdapterOptions::featureLevel |
"Feature level" for the adapter request. If an adapter is returned, it must support the features and limits in the requested feature level.
Implementations may ignore WGPUFeatureLevel_Compatibility and provide WGPUFeatureLevel_Core instead. WGPUFeatureLevel_Core is the default in the JS API, but in C, this field is required (must not be undefined).
Defaults to (WGPUFeatureLevel)0.
WGPUPowerPreference WGPURequestAdapterOptions::powerPreference |
Defaults to WGPUPowerPreference_Undefined.
WGPUBool WGPURequestAdapterOptions::forceFallbackAdapter |
WGPUBackendType WGPURequestAdapterOptions::backendType |
If set, requires the adapter to have a particular backend type. If this is not possible, the request returns null.
Defaults to WGPUBackendType_Undefined.
WGPUSurface WGPURequestAdapterOptions::compatibleSurface |