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

*** ** * ** ***


```
public final class WGSLLanguageFeatureName
```

<br />

*** ** * ** ***

An enumeration of optional WGSL language features.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/WGSLLanguageFeatureName#BufferView() = 12` |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/WGSLLanguageFeatureName#FragmentDepth() = 14` |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/WGSLLanguageFeatureName#ImmediateAddressSpace() = 11` |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/WGSLLanguageFeatureName#LinearIndexing() = 10` |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/WGSLLanguageFeatureName#Packed4x8IntegerDotProduct() = 2` |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/WGSLLanguageFeatureName#PointerCompositeAccess() = 4` Allows accessing components of composite types through pointers. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/WGSLLanguageFeatureName#ReadonlyAndReadwriteStorageTextures() = 1` Support for `readonly` and `readwrite` access qualifiers on storage textures. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/WGSLLanguageFeatureName#SubgroupId() = 6` Enables access to the subgroup identifier within a compute shader, allowing algorithms to utilize subgroup-level parallelism. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/WGSLLanguageFeatureName#SubgroupUniformity() = 8` |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/WGSLLanguageFeatureName#SwizzleAssignment() = 13` |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/WGSLLanguageFeatureName#TextureAndSamplerLet() = 7` |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/WGSLLanguageFeatureName#TextureFormatsTier1() = 9` |
| `static final int` | `https://developer.android.com/reference/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. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/WGSLLanguageFeatureName#UnrestrictedPointerParameters() = 3` Allows passing pointers with `storage` and `uniform` address spaces as function parameters. |

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/webgpu/WGSLLanguageFeatureName#toString(kotlin.Int)(int value)` |

## Constants

### BufferView

```
public static final int BufferView = 12
```

### FragmentDepth

```
public static final int FragmentDepth = 14
```

### ImmediateAddressSpace

```
public static final int ImmediateAddressSpace = 11
```

### LinearIndexing

```
public static final int LinearIndexing = 10
```

### Packed4x8IntegerDotProduct

```
public static final int Packed4x8IntegerDotProduct = 2
```

### PointerCompositeAccess

```
public static final int PointerCompositeAccess = 4
```

Allows accessing components of composite types through pointers.

### ReadonlyAndReadwriteStorageTextures

```
public static final int ReadonlyAndReadwriteStorageTextures = 1
```

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

### SubgroupId

```
public static final int SubgroupId = 6
```

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

### SubgroupUniformity

```
public static final int SubgroupUniformity = 8
```

### SwizzleAssignment

```
public static final int SwizzleAssignment = 13
```

### TextureAndSamplerLet

```
public static final int TextureAndSamplerLet = 7
```

### TextureFormatsTier1

```
public static final int TextureFormatsTier1 = 9
```

### UniformBufferStandardLayout

```
public static final int UniformBufferStandardLayout = 5
```

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

### UnrestrictedPointerParameters

```
public static final int UnrestrictedPointerParameters = 3
```

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

## Public methods

### toString

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

```
public static final @NonNull String toString(int value)
```