# GPUBufferBindingLayout

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

*** ** * ** ***


```
class GPUBufferBindingLayout
```

<br />

*** ** * ** ***

Describes the layout of a buffer binding.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferBindingLayout#GPUBufferBindingLayout(kotlin.Int,kotlin.Boolean,kotlin.Long)( type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, hasDynamicOffset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, minBindingSize: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferBindingLayout#hasDynamicOffset()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferBindingLayout#minBindingSize()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferBindingLayout#type()` The type of the buffer binding. |

## Public constructors

### GPUBufferBindingLayout

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

```
GPUBufferBindingLayout(
    type: Int = BufferBindingType.Uniform,
    hasDynamicOffset: Boolean = false,
    minBindingSize: Long = 0
)
```

## Public properties

### hasDynamicOffset

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

```
var hasDynamicOffset: Boolean
```

### minBindingSize

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

```
var minBindingSize: Long
```

### type

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

```
var type: Int
```

The type of the buffer binding. Defaults to @see `https://developer.android.com/reference/kotlin/androidx/webgpu/BufferBindingType#Uniform()` if `undefined`.

Value is one of the following:

- `0`
- `1`
- `2`
- `3`
- `4`

<br />