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

*** ** * ** ***


```
class InstanceFeatureName
```

<br />

*** ** * ** ***

An enumeration of optional features that an instance may support.

## Summary

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

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

## Constants

### MultipleDevicesPerAdapter

```
const val MultipleDevicesPerAdapter = 3: Int
```

Allows creating multiple devices from a single adapter.

### ShaderSourceSPIRV

```
const val ShaderSourceSPIRV = 2: Int
```

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

### TimedWaitAny

```
const val TimedWaitAny = 1: Int
```

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

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