Aller au contenu

GPUVertexState

Describes the vertex shader stage and vertex buffer layouts for a render pipeline.

Properties

buffers

A list of GPUVertexBufferLayouts, each defining the layout of vertex attribute data in a vertex buffer used by this pipeline.

constants

Specifies the values of pipeline-overridable constants in the shader module module. Each such pipeline-overridable constant is uniquely identified by a single pipeline-overridable constant identifier string, representing the pipeline constant ID of the constant if its declaration specifies one, and otherwise the constant’s identifier name.

entryPoint

abstract val entryPoint: String?
The name of the function in module that this stage will use to perform its work. NOTE: Since the entryPoint dictionary member is not required, methods which consume a GPUProgrammableStage must use the "get the entry point" algorithm to determine which entry point it refers to.

module

abstract val module: GPUShaderModule
The GPUShaderModule containing the code that this programmable stage will execute.