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

*** ** * ** ***


```
public final class GPUVertexState
```

<br />

*** ** * ** ***

Describes the vertex shader stage of a render pipeline.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/webgpu/GPUVertexState#GPUVertexState(androidx.webgpu.GPUShaderModule,kotlin.String,kotlin.Array,kotlin.Array)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUShaderModule module, https://developer.android.com/reference/java/lang/String.html entryPoint, @https://developer.android.com/reference/androidx/annotation/NonNull GPUConstantEntry[] constants, @https://developer.android.com/reference/androidx/annotation/NonNull GPUVertexBufferLayout[] buffers )` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull GPUVertexBufferLayout[]` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexState#getBuffers()()` An array of vertex buffer layouts. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull GPUConstantEntry[]` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexState#getConstants()()` An array of pipeline-overridable constants. |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexState#getEntryPoint()()` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUShaderModule` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexState#getModule()()` The shader module containing the vertex shader. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexState#setBuffers(kotlin.Array)(@https://developer.android.com/reference/androidx/annotation/NonNull GPUVertexBufferLayout[] value)` An array of vertex buffer layouts. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexState#setConstants(kotlin.Array)(@https://developer.android.com/reference/androidx/annotation/NonNull GPUConstantEntry[] value)` An array of pipeline-overridable constants. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexState#setEntryPoint(kotlin.String)(https://developer.android.com/reference/java/lang/String.html value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexState#setModule(androidx.webgpu.GPUShaderModule)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUShaderModule value)` 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)

```
public GPUVertexState(
    @NonNull GPUShaderModule module,
    String entryPoint,
    @NonNull GPUConstantEntry[] constants,
    @NonNull GPUVertexBufferLayout[] buffers
)
```

## Public methods

### getBuffers

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

```
public final @NonNull GPUVertexBufferLayout[] getBuffers()
```

An array of vertex buffer layouts.

### getConstants

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

```
public final @NonNull GPUConstantEntry[] getConstants()
```

An array of pipeline-overridable constants.

### getEntryPoint

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

```
public final String getEntryPoint()
```

### getModule

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

```
public final @NonNull GPUShaderModule getModule()
```

The shader module containing the vertex shader.

### setBuffers

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

```
public final void setBuffers(@NonNull GPUVertexBufferLayout[] value)
```

An array of vertex buffer layouts.

### setConstants

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

```
public final void setConstants(@NonNull GPUConstantEntry[] value)
```

An array of pipeline-overridable constants.

### setEntryPoint

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

```
public final void setEntryPoint(String value)
```

### setModule

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

```
public final void setModule(@NonNull GPUShaderModule value)
```

The shader module containing the vertex shader.