# FeatureLevel

Artifact: [androidx.webgpu:webgpu](https://developer.android.com/jetpack/androidx/releases/webgpu) [View Source](https://cs.android.com/search?q=file:androidx/webgpu/FeatureLevel.kt+class:androidx.webgpu.FeatureLevel) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

*** ** * ** ***


```
class FeatureLevel
```

<br />

*** ** * ** ***

Specifies a feature level for adapter requests. @see RequestAdapterOptions.featureLevel.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/FeatureLevel#Compatibility() = 1` `Compatibility` profile, supportable on older APIs like OpenGL ES 3.1 and Direct3D 11. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/FeatureLevel#Core() = 2` `Core` profile, requiring modern APIs like Vulkan, Metal, or Direct3D 12. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/FeatureLevel#Undefined() = 0` Indicates no specific feature level is requested. |

| ### Public companion functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/FeatureLevel#toString(kotlin.Int)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

## Constants

### Compatibility

```
const val Compatibility = 1: Int
```

`Compatibility` profile, supportable on older APIs like OpenGL ES 3.1 and Direct3D 11.

### Core

```
const val Core = 2: Int
```

`Core` profile, requiring modern APIs like Vulkan, Metal, or Direct3D 12.

### Undefined

```
const val Undefined = 0: Int
```

Indicates no specific feature level is requested.

## Public companion functions

### toString

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
fun toString(value: Int): String
```