# BackendType

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

*** ** * ** ***


```
class BackendType
```

<br />

*** ** * ** ***

Specifies the underlying graphics API used by the WebGPU implementation.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BackendType#D3D11() = 3` Direct3D 11 backend. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BackendType#D3D12() = 4` Direct3D 12 backend. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BackendType#Metal() = 5` Apple Metal backend. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BackendType#Null() = 1` A {@code null} backend with no-op rendering. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BackendType#OpenGL() = 7` OpenGL backend. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BackendType#OpenGLES() = 8` OpenGL ES backend. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BackendType#Undefined() = 0` Indicates that no backend type is specified. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BackendType#Vulkan() = 6` Vulkan backend. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BackendType#WebGPU() = 2` The WebGPU backend. |

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

## Constants

### D3D11

```
const val D3D11 = 3: Int
```

Direct3D 11 backend.

### D3D12

```
const val D3D12 = 4: Int
```

Direct3D 12 backend.

### Metal

```
const val Metal = 5: Int
```

Apple Metal backend.

### Null

```
const val Null = 1: Int
```

A {@code null} backend with no-op rendering.

### OpenGL

```
const val OpenGL = 7: Int
```

OpenGL backend.

### OpenGLES

```
const val OpenGLES = 8: Int
```

OpenGL ES backend.

### Undefined

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

Indicates that no backend type is specified.

### Vulkan

```
const val Vulkan = 6: Int
```

Vulkan backend.

### WebGPU

```
const val WebGPU = 2: Int
```

The WebGPU backend.

## 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
```