# GPUShaderSourceSPIRV

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

*** ** * ** ***


```
class GPUShaderSourceSPIRV
```

<br />

*** ** * ** ***

Extension for providing SPIR-V shader source code.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderSourceSPIRV.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderSourceSPIRV`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderSourceSPIRV#GPUShaderSourceSPIRV(kotlin.IntArray)(code: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderSourceSPIRV#code()` A pointer to the SPIR-V code. |

## Public constructors

### GPUShaderSourceSPIRV

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

```
GPUShaderSourceSPIRV(code: IntArray = intArrayOf())
```

## Public properties

### code

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

```
var code: IntArray
```

A pointer to the SPIR-V code.