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.
If set to WGPUFeatureLevel_Undefined, defaults to WGPUFeatureLevel_Core. Additionally, implementations may ignore WGPUFeatureLevel_Compatibility and provide WGPUFeatureLevel_Core instead.
The INIT
macro sets this to WGPUFeatureLevel_Undefined.
WGPUPowerPreference WGPURequestAdapterOptions::powerPreference |
The INIT
macro sets this 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.
The INIT
macro sets this to WGPUBackendType_Undefined.
WGPUSurface WGPURequestAdapterOptions::compatibleSurface |