# GPURenderBundleEncoderDescriptor

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

*** ** * ** ***


```
public final class GPURenderBundleEncoderDescriptor
```

<br />

*** ** * ** ***

Describes a render bundle encoder.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/webgpu/GPURenderBundleEncoderDescriptor.Builder` Builder for `https://developer.android.com/reference/androidx/webgpu/GPURenderBundleEncoderDescriptor`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/webgpu/GPURenderBundleEncoderDescriptor#GPURenderBundleEncoderDescriptor(kotlin.String,kotlin.IntArray,kotlin.Int,kotlin.Int,kotlin.Boolean,kotlin.Boolean)( https://developer.android.com/reference/java/lang/String.html label, @https://developer.android.com/reference/androidx/annotation/NonNull int[] colorFormats, int depthStencilFormat, int sampleCount, boolean depthReadOnly, boolean stencilReadOnly )` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull int[]` | `https://developer.android.com/reference/androidx/webgpu/GPURenderBundleEncoderDescriptor#getColorFormats()()` |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPURenderBundleEncoderDescriptor#getDepthStencilFormat()()` |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/webgpu/GPURenderBundleEncoderDescriptor#getLabel()()` A human-readable label for debugging. |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPURenderBundleEncoderDescriptor#getSampleCount()()` |
| `final boolean` | `https://developer.android.com/reference/androidx/webgpu/GPURenderBundleEncoderDescriptor#isDepthReadOnly()()` |
| `final boolean` | `https://developer.android.com/reference/androidx/webgpu/GPURenderBundleEncoderDescriptor#isStencilReadOnly()()` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderBundleEncoderDescriptor#setColorFormats(kotlin.IntArray)(@https://developer.android.com/reference/androidx/annotation/NonNull int[] value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderBundleEncoderDescriptor#setDepthReadOnly(kotlin.Boolean)(boolean value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderBundleEncoderDescriptor#setDepthStencilFormat(kotlin.Int)(int value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderBundleEncoderDescriptor#setLabel(kotlin.String)(https://developer.android.com/reference/java/lang/String.html value)` A human-readable label for debugging. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderBundleEncoderDescriptor#setSampleCount(kotlin.Int)(int value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderBundleEncoderDescriptor#setStencilReadOnly(kotlin.Boolean)(boolean value)` |

## Public constructors

### GPURenderBundleEncoderDescriptor

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

```
public GPURenderBundleEncoderDescriptor(
    String label,
    @NonNull int[] colorFormats,
    int depthStencilFormat,
    int sampleCount,
    boolean depthReadOnly,
    boolean stencilReadOnly
)
```

## Public methods

### getColorFormats

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

```
public final @NonNull int[] getColorFormats()
```

### getDepthStencilFormat

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

```
public final int getDepthStencilFormat()
```

### getLabel

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

```
public final String getLabel()
```

A human-readable label for debugging.

### getSampleCount

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

```
public final int getSampleCount()
```

### isDepthReadOnly

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

```
public final boolean isDepthReadOnly()
```

### isStencilReadOnly

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

```
public final boolean isStencilReadOnly()
```

### setColorFormats

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

```
public final void setColorFormats(@NonNull int[] value)
```

### setDepthReadOnly

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

```
public final void setDepthReadOnly(boolean value)
```

### setDepthStencilFormat

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

```
public final void setDepthStencilFormat(int value)
```

### setLabel

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

```
public final void setLabel(String value)
```

A human-readable label for debugging.

### setSampleCount

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

```
public final void setSampleCount(int value)
```

### setStencilReadOnly

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

```
public final void setStencilReadOnly(boolean value)
```