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

*** ** * ** ***


```
class GPUVertexBufferLayout
```

<br />

*** ** * ** ***

Describes the layout of a single vertex buffer.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexBufferLayout#GPUVertexBufferLayout(kotlin.Long,kotlin.Int,kotlin.Array)( arrayStride: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, stepMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, attributes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexAttribute> )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexBufferLayout#arrayStride()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexAttribute>` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexBufferLayout#attributes()` An array of vertex attributes sourced from this buffer. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexBufferLayout#stepMode()` |

## Public constructors

### GPUVertexBufferLayout

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

```
GPUVertexBufferLayout(
    arrayStride: Long,
    stepMode: Int = VertexStepMode.Undefined,
    attributes: Array<GPUVertexAttribute> = arrayOf()
)
```

## Public properties

### arrayStride

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

```
var arrayStride: Long
```

### attributes

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

```
var attributes: Array<GPUVertexAttribute>
```

An array of vertex attributes sourced from this buffer.

### stepMode

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

```
var stepMode: Int
```

Value is one of the following:

- `0`
- `1`
- `2`

<br />