# LoadOp

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

*** ** * ** ***


```
public final class LoadOp
```

<br />

*** ** * ** ***

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

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/LoadOp#Clear() = 2` Clears the attachment to a specified value. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/LoadOp#Load() = 1` Loads the existing contents of the attachment. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/LoadOp#Undefined() = 0` Indicates that no load 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/LoadOp#toString(kotlin.Int)(int value)` |

## Constants

### Clear

```
public static final int Clear = 2
```

Clears the attachment to a specified value.

### Load

```
public static final int Load = 1
```

Loads the existing contents of the attachment.

### Undefined

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

Indicates that no load 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)
```