# TextureSampleType

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

*** ** * ** ***


```
class TextureSampleType
```

<br />

*** ** * ** ***

Specifies the data type of a sampled texture in a bind group layout.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureSampleType#BindingNotUsed() = 0` Indicates that this binding is not used. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureSampleType#Depth() = 4` A depth texture. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureSampleType#Float() = 2` A floating-point texture. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureSampleType#Sint() = 5` A signed integer texture. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureSampleType#Uint() = 6` An unsigned integer texture. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureSampleType#Undefined() = 1` Indicates that no texture sample type is specified. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureSampleType#UnfilterableFloat() = 3` A non-filterable floating-point texture. |

| ### Public companion functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureSampleType#toString(kotlin.Int)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

## Constants

### BindingNotUsed

```
const val BindingNotUsed = 0: Int
```

Indicates that this binding is not used.

### Depth

```
const val Depth = 4: Int
```

A depth texture.

### Float

```
const val Float = 2: Int
```

A floating-point texture.

### Sint

```
const val Sint = 5: Int
```

A signed integer texture.

### Uint

```
const val Uint = 6: Int
```

An unsigned integer texture.

### Undefined

```
const val Undefined = 1: Int
```

Indicates that no texture sample type is specified.

### UnfilterableFloat

```
const val UnfilterableFloat = 3: Int
```

A non-filterable floating-point texture.

## Public companion functions

### toString

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

```
fun toString(value: Int): String
```