Skip to content

VertexState

data class VertexState(
    val module: GPUShaderModule, 
    val buffers: List<GPUVertexBufferLayout?> = emptyList(), 
    val entryPoint: String? = null, 
    val constants: Map<String, GPUPipelineConstantValue> = emptyMap()
) : GPUVertexState
Describes the vertex shader stage and vertex buffer layouts for a render pipeline.

Constructors

VertexState

constructor(
    module: GPUShaderModule, 
    buffers: List<GPUVertexBufferLayout?> = emptyList(), 
    entryPoint: String? = null, 
    constants: Map<String, GPUPipelineConstantValue> = emptyMap()
)

Properties

buffers

open override val buffers: List<GPUVertexBufferLayout?>
A list of GPUVertexBufferLayouts, each defining the layout of vertex attribute data in a vertex buffer used by this pipeline.

constants

open override val constants: Map<String, GPUPipelineConstantValue>

entryPoint

open override val entryPoint: String?

module

open override val module: GPUShaderModule