# GPUVertexState

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

*** ** * ** ***


```
class GPUVertexState
```

<br />

*** ** * ** ***

Describes the vertex shader stage of a render pipeline.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexState#GPUVertexState(androidx.webgpu.GPUShaderModule,kotlin.String,kotlin.Array,kotlin.Array)( module: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderModule, entryPoint: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, constants: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/webgpu/GPUConstantEntry>, buffers: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexBufferLayout> )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexBufferLayout>` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexState#buffers()` An array of vertex buffer layouts. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/webgpu/GPUConstantEntry>` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexState#constants()` An array of pipeline-overridable constants. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexState#entryPoint()` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderModule` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexState#module()` The shader module containing the vertex shader. |

## Public constructors

### GPUVertexState

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

```
GPUVertexState(
    module: GPUShaderModule,
    entryPoint: String? = null,
    constants: Array<GPUConstantEntry> = arrayOf(),
    buffers: Array<GPUVertexBufferLayout> = arrayOf()
)
```

## Public properties

### buffers

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

```
var buffers: Array<GPUVertexBufferLayout>
```

An array of vertex buffer layouts.

### constants

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

```
var constants: Array<GPUConstantEntry>
```

An array of pipeline-overridable constants.

### entryPoint

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

```
var entryPoint: String?
```

### module

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

```
var module: GPUShaderModule
```

The shader module containing the vertex shader.