Skip to content

GPUProgrammableStage

A GPUProgrammableStage describes the entry point in the user-provided GPUShaderModule that controls one of the programmable stages of a pipeline. Entry point names follow the rules defined in WGSL identifier comparison. #### Inheritors - [`GPUFragmentState`](../-g-p-u-fragment-state/index.md) - [`GPUVertexState`](../-g-p-u-vertex-state/index.md)

Properties

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.