# GPURenderPassDescriptor

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

*** ** * ** ***


```
class GPURenderPassDescriptor
```

<br />

*** ** * ** ***

Describes a render pass.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor#GPURenderPassDescriptor(kotlin.String,kotlin.Array,androidx.webgpu.GPURenderPassDepthStencilAttachment,androidx.webgpu.GPUQuerySet,androidx.webgpu.GPUPassTimestampWrites,androidx.webgpu.GPURenderPassMaxDrawCount)( label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, colorAttachments: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment>, depthStencilAttachment: https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment?, occlusionQuerySet: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUQuerySet?, timestampWrites: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPassTimestampWrites?, renderPassMaxDrawCount: https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassMaxDrawCount? )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment>` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor#colorAttachments()` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor#depthStencilAttachment()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor#label()` A human-readable label for debugging. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUQuerySet?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor#occlusionQuerySet()` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassMaxDrawCount?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor#renderPassMaxDrawCount()` An extension for specifying the maximum draw count in a render pass. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPassTimestampWrites?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor#timestampWrites()` |

## Public constructors

### GPURenderPassDescriptor

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

```
GPURenderPassDescriptor(
    label: String? = null,
    colorAttachments: Array<GPURenderPassColorAttachment> = arrayOf(),
    depthStencilAttachment: GPURenderPassDepthStencilAttachment? = null,
    occlusionQuerySet: GPUQuerySet? = null,
    timestampWrites: GPUPassTimestampWrites? = null,
    renderPassMaxDrawCount: GPURenderPassMaxDrawCount? = null
)
```

## Public properties

### colorAttachments

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

```
var colorAttachments: Array<GPURenderPassColorAttachment>
```

### depthStencilAttachment

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

```
var depthStencilAttachment: GPURenderPassDepthStencilAttachment?
```

### label

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

```
var label: String?
```

A human-readable label for debugging.

### occlusionQuerySet

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

```
var occlusionQuerySet: GPUQuerySet?
```

### renderPassMaxDrawCount

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

```
var renderPassMaxDrawCount: GPURenderPassMaxDrawCount?
```

An extension for specifying the maximum draw count in a render pass.

### timestampWrites

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

```
var timestampWrites: GPUPassTimestampWrites?
```