# WGSLLanguageFeatureName

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

*** ** * ** ***


```
class WGSLLanguageFeatureName
```

<br />

*** ** * ** ***

An enumeration of optional WGSL language features.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/WGSLLanguageFeatureName#BufferView() = 12` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/WGSLLanguageFeatureName#FragmentDepth() = 14` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/WGSLLanguageFeatureName#ImmediateAddressSpace() = 11` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/WGSLLanguageFeatureName#LinearIndexing() = 10` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/WGSLLanguageFeatureName#Packed4x8IntegerDotProduct() = 2` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/WGSLLanguageFeatureName#PointerCompositeAccess() = 4` Allows accessing components of composite types through pointers. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/WGSLLanguageFeatureName#ReadonlyAndReadwriteStorageTextures() = 1` Support for `readonly` and `readwrite` access qualifiers on storage textures. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/WGSLLanguageFeatureName#SubgroupId() = 6` Enables access to the subgroup identifier within a compute shader, allowing algorithms to utilize subgroup-level parallelism. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/WGSLLanguageFeatureName#SubgroupUniformity() = 8` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/WGSLLanguageFeatureName#SwizzleAssignment() = 13` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/WGSLLanguageFeatureName#TextureAndSamplerLet() = 7` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/WGSLLanguageFeatureName#TextureFormatsTier1() = 9` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/WGSLLanguageFeatureName#UniformBufferStandardLayout() = 5` Enables the use of standard memory layout definitions for uniform buffers, relaxing strict alignment requirements to support tighter data packing. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/WGSLLanguageFeatureName#UnrestrictedPointerParameters() = 3` Allows passing pointers with `storage` and `uniform` address spaces as function parameters. |

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

## Constants

### BufferView

```
const val BufferView = 12: Int
```

### FragmentDepth

```
const val FragmentDepth = 14: Int
```

### ImmediateAddressSpace

```
const val ImmediateAddressSpace = 11: Int
```

### LinearIndexing

```
const val LinearIndexing = 10: Int
```

### Packed4x8IntegerDotProduct

```
const val Packed4x8IntegerDotProduct = 2: Int
```

### PointerCompositeAccess

```
const val PointerCompositeAccess = 4: Int
```

Allows accessing components of composite types through pointers.

### ReadonlyAndReadwriteStorageTextures

```
const val ReadonlyAndReadwriteStorageTextures = 1: Int
```

Support for `readonly` and `readwrite` access qualifiers on storage textures.

### SubgroupId

```
const val SubgroupId = 6: Int
```

Enables access to the subgroup identifier within a compute shader, allowing algorithms to utilize subgroup-level parallelism.

### SubgroupUniformity

```
const val SubgroupUniformity = 8: Int
```

### SwizzleAssignment

```
const val SwizzleAssignment = 13: Int
```

### TextureAndSamplerLet

```
const val TextureAndSamplerLet = 7: Int
```

### TextureFormatsTier1

```
const val TextureFormatsTier1 = 9: Int
```

### UniformBufferStandardLayout

```
const val UniformBufferStandardLayout = 5: Int
```

Enables the use of standard memory layout definitions for uniform buffers, relaxing strict alignment requirements to support tighter data packing.

### UnrestrictedPointerParameters

```
const val UnrestrictedPointerParameters = 3: Int
```

Allows passing pointers with `storage` and `uniform` address spaces as function parameters.

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