# GPUShaderModuleDescriptor

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

*** ** * ** ***


```
class GPUShaderModuleDescriptor
```

<br />

*** ** * ** ***

Describes a shader module.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderModuleDescriptor#GPUShaderModuleDescriptor(kotlin.String,androidx.webgpu.GPUShaderSourceSPIRV,androidx.webgpu.GPUShaderSourceWGSL)( label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, shaderSourceSPIRV: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderSourceSPIRV?, shaderSourceWGSL: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderSourceWGSL? )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderModuleDescriptor#label()` A human-readable label for debugging. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderSourceSPIRV?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderModuleDescriptor#shaderSourceSPIRV()` Extension for providing SPIR-V shader source code. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderSourceWGSL?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderModuleDescriptor#shaderSourceWGSL()` Extension for providing WGSL shader source code. |

## Public constructors

### GPUShaderModuleDescriptor

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

```
GPUShaderModuleDescriptor(
    label: String? = null,
    shaderSourceSPIRV: GPUShaderSourceSPIRV? = null,
    shaderSourceWGSL: GPUShaderSourceWGSL? = null
)
```

## Public properties

### label

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

```
var label: String?
```

A human-readable label for debugging.

### shaderSourceSPIRV

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

```
var shaderSourceSPIRV: GPUShaderSourceSPIRV?
```

Extension for providing SPIR-V shader source code.

### shaderSourceWGSL

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

```
var shaderSourceWGSL: GPUShaderSourceWGSL?
```

Extension for providing WGSL shader source code.