FragmentState


class FragmentState


The configuration for the fragment shader stage and color output targets.

Summary

Public constructors

FragmentState(
    module: GPUShaderModule,
    entryPoint: String?,
    constants: Array<ConstantEntry>,
    targets: Array<ColorTargetState>
)

Public properties

Array<ConstantEntry>

An array of constant overrides for the fragment shader.

String?
GPUShaderModule

The shader module containing the fragment entry point.

Array<ColorTargetState>

An array defining the configuration for each color attachment.

Public constructors

FragmentState

Added in 1.0.0-alpha01
FragmentState(
    module: GPUShaderModule,
    entryPoint: String? = null,
    constants: Array<ConstantEntry> = arrayOf(),
    targets: Array<ColorTargetState> = arrayOf()
)

Public properties

constants

Added in 1.0.0-alpha01
var constantsArray<ConstantEntry>

An array of constant overrides for the fragment shader.

entryPoint

Added in 1.0.0-alpha01
var entryPointString?

module

Added in 1.0.0-alpha01
var moduleGPUShaderModule

The shader module containing the fragment entry point.

targets

Added in 1.0.0-alpha01
var targetsArray<ColorTargetState>

An array defining the configuration for each color attachment.