GPUVertexState


class GPUVertexState


Describes the vertex shader stage of a render pipeline.

Summary

Public constructors

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

Public properties

Array<GPUVertexBufferLayout>

An array of vertex buffer layouts.

Array<GPUConstantEntry>

An array of pipeline-overridable constants.

String?
GPUShaderModule

The shader module containing the vertex shader.

Public constructors

GPUVertexState

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

Public properties

buffers

Added in 1.0.0-alpha04
var buffersArray<GPUVertexBufferLayout>

An array of vertex buffer layouts.

constants

Added in 1.0.0-alpha04
var constantsArray<GPUConstantEntry>

An array of pipeline-overridable constants.

entryPoint

Added in 1.0.0-alpha04
var entryPointString?

module

Added in 1.0.0-alpha04
var moduleGPUShaderModule

The shader module containing the vertex shader.