# ShaderStage

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

*** ** * ** ***


```
public final class ShaderStage
```

<br />

*** ** * ** ***

A bitmask that specifies the shader stages where a resource is accessible.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/ShaderStage#Compute() = 4` The compute shader stage. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/ShaderStage#Fragment() = 2` The fragment shader stage. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/ShaderStage#None() = 0` No shader stage is specified. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/ShaderStage#Vertex() = 1` The vertex shader stage. |

| ### 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/ShaderStage#toString(kotlin.Int)(int value)` |

## Constants

### Compute

```
public static final int Compute = 4
```

The compute shader stage.

### Fragment

```
public static final int Fragment = 2
```

The fragment shader stage.

### None

```
public static final int None = 0
```

No shader stage is specified.

### Vertex

```
public static final int Vertex = 1
```

The vertex shader stage.

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