# InstanceFeatureName

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

*** ** * ** ***


```
public final class InstanceFeatureName
```

<br />

*** ** * ** ***

An enumeration of optional features that an instance may support.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/InstanceFeatureName#MultipleDevicesPerAdapter() = 3` Allows creating multiple devices from a single adapter. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/InstanceFeatureName#ShaderSourceSPIRV() = 2` Enables passing SPIR-V shaders to @see `https://developer.android.com/reference/androidx/webgpu/GPUDevice#createShaderModule(androidx.webgpu.GPUShaderModuleDescriptor)` via @see ShaderSourceSPIRV. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/InstanceFeatureName#TimedWaitAny() = 1` Enables the use of `timeoutNS > 0` with @see GPUInstance.waitAny. |

| ### 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/InstanceFeatureName#toString(kotlin.Int)(int value)` |

## Constants

### MultipleDevicesPerAdapter

```
public static final int MultipleDevicesPerAdapter = 3
```

Allows creating multiple devices from a single adapter.

### ShaderSourceSPIRV

```
public static final int ShaderSourceSPIRV = 2
```

Enables passing SPIR-V shaders to @see `https://developer.android.com/reference/androidx/webgpu/GPUDevice#createShaderModule(androidx.webgpu.GPUShaderModuleDescriptor)` via @see ShaderSourceSPIRV.

### TimedWaitAny

```
public static final int TimedWaitAny = 1
```

Enables the use of `timeoutNS > 0` with @see GPUInstance.waitAny.

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