# 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)

*** ** * ** ***


```
public final class GPUBufferBindingLayout
```

<br />

*** ** * ** ***

Describes the layout of a buffer binding.

## Summary

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

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

| ### Public methods |
|---|---|
| `final long` | `https://developer.android.com/reference/androidx/webgpu/GPUBufferBindingLayout#getMinBindingSize()()` |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPUBufferBindingLayout#getType()()` The type of the buffer binding. |
| `final boolean` | `https://developer.android.com/reference/androidx/webgpu/GPUBufferBindingLayout#isHasDynamicOffset()()` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUBufferBindingLayout#setHasDynamicOffset(kotlin.Boolean)(boolean value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUBufferBindingLayout#setMinBindingSize(kotlin.Long)(long value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUBufferBindingLayout#setType(kotlin.Int)(int value)` 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)

```
public GPUBufferBindingLayout(
    int type,
    boolean hasDynamicOffset,
    long minBindingSize
)
```

## Public methods

### getMinBindingSize

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

```
public final long getMinBindingSize()
```

### getType

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

```
public final int getType()
```

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

### isHasDynamicOffset

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

```
public final boolean isHasDynamicOffset()
```

### setHasDynamicOffset

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

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

### setMinBindingSize

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

```
public final void setMinBindingSize(long value)
```

### setType

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

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

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