GPUFeatureLevel¶
=== "common"
Selects the minimum capabilities and the default feature level of devices requested from an adapter.
=== "commonNative"
Selects the minimum capabilities and the default feature level of devices requested from an adapter.
=== "web"
Selects the minimum capabilities and the default feature level of devices requested from an adapter.
expect enum GPUFeatureLevel : Enum<GPUFeatureLevel>
actual enum GPUFeatureLevel : Enum<GPUFeatureLevel>
actual enum GPUFeatureLevel : Enum<GPUFeatureLevel>
Entries¶
Compatibility¶
=== "common"
Requests compatibility-mode limits and validation. Implementations unable to enforce these restrictions may default to Core instead.
=== "commonNative"
Requests compatibility-mode limits and validation. Implementations unable to enforce these restrictions may default to Core instead.
=== "web"
Requests compatibility-mode limits and validation. Implementations unable to enforce these restrictions may default to Core instead.
Core¶
=== "common"
Requests core limits and enables CoreFeaturesAndLimits by default on devices.
=== "commonNative"
Requests core limits and enables CoreFeaturesAndLimits by default on devices.
=== "web"
Requests core limits and enables CoreFeaturesAndLimits by default on devices.
Types¶
Companion¶
object Companion
object Companion
Properties¶
entries¶
expect val entries: EnumEntries<GPUFeatureLevel>
Returns a representation of an immutable list of all enum entries, in the order they're declared.
This method may be used to iterate over the enum entries.
name¶
ordinal¶
value¶
Functions¶
valueOf¶
expect fun valueOf(value: String): GPUFeatureLevel
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
**Throws**
[`kotlin.IllegalArgumentException`](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html)
: if this enum type has no constant with the specified name
values¶
expect fun values(): Array<GPUFeatureLevel>
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.