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

*** ** * ** ***


```
public final class BackendType
```

<br />

*** ** * ** ***

Specifies the underlying graphics API used by the WebGPU implementation.

## Summary

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

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/webgpu/BackendType#toString(kotlin.Int)(int value)` |

## Constants

### D3D11

```
public static final int D3D11 = 3
```

Direct3D 11 backend.

### D3D12

```
public static final int D3D12 = 4
```

Direct3D 12 backend.

### Metal

```
public static final int Metal = 5
```

Apple Metal backend.

### Null

```
public static final int Null = 1
```

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

### OpenGL

```
public static final int OpenGL = 7
```

OpenGL backend.

### OpenGLES

```
public static final int OpenGLES = 8
```

OpenGL ES backend.

### Undefined

```
public static final int Undefined = 0
```

Indicates that no backend type is specified.

### Vulkan

```
public static final int Vulkan = 6
```

Vulkan backend.

### WebGPU

```
public static final int WebGPU = 2
```

The WebGPU backend.

## Public methods

### toString

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

```
public static final @NonNull String toString(int value)
```