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-alpha05
GPUVertexState(
    module: GPUShaderModule,
    entryPoint: String? = null,
    constants: Array<GPUConstantEntry> = arrayOf(),
    buffers: Array<GPUVertexBufferLayout> = arrayOf()
)

Public properties

buffers

Added in 1.0.0-alpha05
var buffers: Array<GPUVertexBufferLayout>

An array of vertex buffer layouts.

constants

Added in 1.0.0-alpha05
var constants: Array<GPUConstantEntry>

An array of pipeline-overridable constants.

entryPoint

Added in 1.0.0-alpha05
var entryPoint: String?

module

Added in 1.0.0-alpha05
var module: GPUShaderModule

The shader module containing the vertex shader.