# GPUBindGroupEntry

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

*** ** * ** ***


```
class GPUBindGroupEntry
```

<br />

*** ** * ** ***

Describes a single resource binding within a bind group.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupEntry#GPUBindGroupEntry(kotlin.Int,androidx.webgpu.GPUBuffer,kotlin.Long,kotlin.Long,androidx.webgpu.GPUSampler,androidx.webgpu.GPUTextureView,androidx.webgpu.GPUExternalTextureBindingEntry)( binding: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, buffer: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBuffer?, offset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, sampler: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSampler?, textureView: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureView?, externalTextureBindingEntry: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureBindingEntry? )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupEntry#binding()` The binding index corresponding to a shader resource. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBuffer?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupEntry#buffer()` The buffer to bind. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureBindingEntry?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupEntry#externalTextureBindingEntry()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupEntry#offset()` The offset in bytes from the beginning of the buffer. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSampler?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupEntry#sampler()` The sampler to bind. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupEntry#size()` The size in bytes of the buffer binding. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureView?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupEntry#textureView()` |

## Public constructors

### GPUBindGroupEntry

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

```
GPUBindGroupEntry(
    binding: Int,
    buffer: GPUBuffer? = null,
    offset: Long = 0,
    size: Long = Constants.WHOLE_SIZE,
    sampler: GPUSampler? = null,
    textureView: GPUTextureView? = null,
    externalTextureBindingEntry: GPUExternalTextureBindingEntry? = null
)
```

## Public properties

### binding

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

```
var binding: Int
```

The binding index corresponding to a shader resource.

### buffer

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

```
var buffer: GPUBuffer?
```

The buffer to bind. Must be {@code null} if `sampler` or `textureView` is set.

### externalTextureBindingEntry

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

```
var externalTextureBindingEntry: GPUExternalTextureBindingEntry?
```

### offset

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

```
var offset: Long
```

The offset in bytes from the beginning of the buffer.

### sampler

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

```
var sampler: GPUSampler?
```

The sampler to bind. Must be {@code null} if `buffer` or `textureView` is set.

### size

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

```
var size: Long
```

The size in bytes of the buffer binding.

### textureView

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

```
var textureView: GPUTextureView?
```