# GPUVertexBufferLayout

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

*** ** * ** ***


```
public final class GPUVertexBufferLayout
```

<br />

*** ** * ** ***

Describes the layout of a single vertex buffer.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/webgpu/GPUVertexBufferLayout#GPUVertexBufferLayout(kotlin.Long,kotlin.Int,kotlin.Array)( long arrayStride, int stepMode, @https://developer.android.com/reference/androidx/annotation/NonNull GPUVertexAttribute[] attributes )` |

| ### Public methods |
|---|---|
| `final long` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexBufferLayout#getArrayStride()()` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull GPUVertexAttribute[]` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexBufferLayout#getAttributes()()` An array of vertex attributes sourced from this buffer. |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexBufferLayout#getStepMode()()` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexBufferLayout#setArrayStride(kotlin.Long)(long value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexBufferLayout#setAttributes(kotlin.Array)(@https://developer.android.com/reference/androidx/annotation/NonNull GPUVertexAttribute[] value)` An array of vertex attributes sourced from this buffer. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUVertexBufferLayout#setStepMode(kotlin.Int)(int value)` |

## Public constructors

### GPUVertexBufferLayout

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

```
public GPUVertexBufferLayout(
    long arrayStride,
    int stepMode,
    @NonNull GPUVertexAttribute[] attributes
)
```

## Public methods

### getArrayStride

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

```
public final long getArrayStride()
```

### getAttributes

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

```
public final @NonNull GPUVertexAttribute[] getAttributes()
```

An array of vertex attributes sourced from this buffer.

### getStepMode

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

```
public final int getStepMode()
```

### setArrayStride

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

```
public final void setArrayStride(long value)
```

### setAttributes

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

```
public final void setAttributes(@NonNull GPUVertexAttribute[] value)
```

An array of vertex attributes sourced from this buffer.

### setStepMode

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

```
public final void setStepMode(int value)
```