GPUVertexState


class GPUVertexState


The configuration for the vertex shader stage and vertex buffers.

Summary

Public constructors

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

Public properties

Array<GPUVertexBufferLayout>

An array defining the layout of all vertex buffers.

Array<GPUConstantEntry>

An array of constant overrides for the vertex shader.

String?
GPUShaderModule

The shader module containing the vertex entry point.

Public constructors

GPUVertexState

Added in 1.0.0-alpha02
GPUVertexState(
    module: GPUShaderModule,
    entryPoint: String? = null,
    constants: Array<GPUConstantEntry> = arrayOf(),
    buffers: Array<GPUVertexBufferLayout> = arrayOf()
)

Public properties

buffers

Added in 1.0.0-alpha02
var buffersArray<GPUVertexBufferLayout>

An array defining the layout of all vertex buffers.

constants

Added in 1.0.0-alpha02
var constantsArray<GPUConstantEntry>

An array of constant overrides for the vertex shader.

entryPoint

Added in 1.0.0-alpha02
var entryPointString?

module

Added in 1.0.0-alpha02
var moduleGPUShaderModule

The shader module containing the vertex entry point.