Skip to content

GPUFragmentState

Describes the fragment shader stage and its color targets.

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.

targets

A list of GPUColorTargetState defining the formats and behaviors of the color targets this pipeline writes to.