# GPUVertexState.Builder

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.Builder) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

*** ** * ** ***


```
public final class GPUVertexState.Builder
```

<br />

*** ** * ** ***

Builder for `https://developer.android.com/reference/androidx/webgpu/GPUVertexState`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/webgpu/GPUVertexState.Builder#Builder(androidx.webgpu.GPUShaderModule)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUShaderModule module)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUVertexState` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexState.Builder#build()()` Builds the `https://developer.android.com/reference/androidx/webgpu/GPUVertexState`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUVertexState.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexState.Builder#setBuffers(kotlin.Array)(@https://developer.android.com/reference/androidx/annotation/NonNull GPUVertexBufferLayout[] buffers)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUVertexState.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexState.Builder#setConstants(kotlin.Array)(@https://developer.android.com/reference/androidx/annotation/NonNull GPUConstantEntry[] constants)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUVertexState.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexState.Builder#setEntryPoint(kotlin.String)(https://developer.android.com/reference/java/lang/String.html entryPoint)` |

## Public constructors

### Builder

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

```
public Builder(@NonNull GPUShaderModule module)
```

## Public methods

### build

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

```
public final @NonNull GPUVertexState build()
```

Builds the `https://developer.android.com/reference/androidx/webgpu/GPUVertexState`.

### setBuffers

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

```
public final @NonNull GPUVertexState.Builder setBuffers(@NonNull GPUVertexBufferLayout[] buffers)
```

### setConstants

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

```
public final @NonNull GPUVertexState.Builder setConstants(@NonNull GPUConstantEntry[] constants)
```

### setEntryPoint

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

```
public final @NonNull GPUVertexState.Builder setEntryPoint(String entryPoint)
```