# GPUTextureBindingLayout

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

*** ** * ** ***


```
class GPUTextureBindingLayout
```

<br />

*** ** * ** ***

Describes the layout of a texture binding.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureBindingLayout#GPUTextureBindingLayout(kotlin.Int,kotlin.Int,kotlin.Boolean)( sampleType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, viewDimension: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, multisampled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureBindingLayout#multisampled()` Specifies if the texture is multisampled. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureBindingLayout#sampleType()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureBindingLayout#viewDimension()` |

## Public constructors

### GPUTextureBindingLayout

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

```
GPUTextureBindingLayout(
    sampleType: Int = TextureSampleType.Float,
    viewDimension: Int = TextureViewDimension._2D,
    multisampled: Boolean = false
)
```

## Public properties

### multisampled

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

```
var multisampled: Boolean
```

Specifies if the texture is multisampled.

### sampleType

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

```
var sampleType: Int
```

Value is one of the following:

- `0`
- `1`
- `2`
- `3`
- `4`
- `5`
- `6`

<br />

### viewDimension

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

```
var viewDimension: Int
```

Value is one of the following:

- `0`
- `1`
- `2`
- `3`
- `4`
- `5`
- `6`

<br />