# GPUSamplerBindingLayout

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

*** ** * ** ***


```
public final class GPUSamplerBindingLayout
```

<br />

*** ** * ** ***

Describes the layout of a sampler binding.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/webgpu/GPUSamplerBindingLayout#GPUSamplerBindingLayout(kotlin.Int)(int type)` |

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPUSamplerBindingLayout#getType()()` The type of the sampler binding. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUSamplerBindingLayout#setType(kotlin.Int)(int value)` The type of the sampler binding. |

## Public constructors

### GPUSamplerBindingLayout

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

```
public GPUSamplerBindingLayout(int type)
```

## Public methods

### 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 sampler binding. Defaults to @see `https://developer.android.com/reference/androidx/webgpu/SamplerBindingType#Filtering()` if `undefined`.

### 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 sampler binding. Defaults to @see `https://developer.android.com/reference/androidx/webgpu/SamplerBindingType#Filtering()` if `undefined`.