VertexState


class VertexState


The configuration for the vertex shader stage and vertex buffers.

Summary

Public constructors

VertexState(
    module: GPUShaderModule,
    entryPoint: String?,
    constants: Array<ConstantEntry>,
    buffers: Array<VertexBufferLayout>
)

Public properties

Array<VertexBufferLayout>

An array defining the layout of all vertex buffers.

Array<ConstantEntry>

An array of constant overrides for the vertex shader.

String?
GPUShaderModule

The shader module containing the vertex entry point.

Public constructors

VertexState

Added in 1.0.0-alpha01
VertexState(
    module: GPUShaderModule,
    entryPoint: String? = null,
    constants: Array<ConstantEntry> = arrayOf(),
    buffers: Array<VertexBufferLayout> = arrayOf()
)

Public properties

buffers

Added in 1.0.0-alpha01
var buffersArray<VertexBufferLayout>

An array defining the layout of all vertex buffers.

constants

Added in 1.0.0-alpha01
var constantsArray<ConstantEntry>

An array of constant overrides for the vertex shader.

entryPoint

Added in 1.0.0-alpha01
var entryPointString?

module

Added in 1.0.0-alpha01
var moduleGPUShaderModule

The shader module containing the vertex entry point.