# StoreOp

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

*** ** * ** ***


```
public final class StoreOp
```

<br />

*** ** * ** ***

Defines the operation to perform on a render attachment at the end of a pass.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/StoreOp#Discard() = 2` Discards the contents of the attachment. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/StoreOp#Store() = 1` Stores the contents of the attachment. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/StoreOp#Undefined() = 0` Indicates that no store operation is specified. |

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

## Constants

### Discard

```
public static final int Discard = 2
```

Discards the contents of the attachment.

### Store

```
public static final int Store = 1
```

Stores the contents of the attachment.

### Undefined

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

Indicates that no store operation is specified.

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