Aller au contenu

FragmentState

data class FragmentState(
    val targets: List<GPUColorTargetState?>, 
    val module: GPUShaderModule, 
    val entryPoint: String? = null, 
    val constants: Map<String, GPUPipelineConstantValue> = emptyMap()
) : GPUFragmentState
Describes the fragment shader stage and its color targets.

Constructors

FragmentState

constructor(
    targets: List<GPUColorTargetState?>, 
    module: GPUShaderModule, 
    entryPoint: String? = null, 
    constants: Map<String, GPUPipelineConstantValue> = emptyMap()
)

Properties

constants

open override val constants: Map<String, GPUPipelineConstantValue>

entryPoint

open override val entryPoint: String?

module

open override val module: GPUShaderModule

targets

open override val targets: List<GPUColorTargetState?>
A list of GPUColorTargetState defining the formats and behaviors of the color targets this pipeline writes to.