GPUFragmentState


class GPUFragmentState


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

Summary

Public constructors

GPUFragmentState(
    module: GPUShaderModule,
    entryPoint: String?,
    constants: Array<GPUConstantEntry>,
    targets: Array<GPUColorTargetState>
)

Public properties

Array<GPUConstantEntry>

An array of constant overrides for the fragment shader.

String?
GPUShaderModule

The shader module containing the fragment entry point.

Array<GPUColorTargetState>

An array defining the configuration for each color attachment.

Public constructors

GPUFragmentState

Added in 1.0.0-alpha02
GPUFragmentState(
    module: GPUShaderModule,
    entryPoint: String? = null,
    constants: Array<GPUConstantEntry> = arrayOf(),
    targets: Array<GPUColorTargetState> = arrayOf()
)

Public properties

constants

Added in 1.0.0-alpha02
var constantsArray<GPUConstantEntry>

An array of constant overrides for the fragment shader.

entryPoint

Added in 1.0.0-alpha02
var entryPointString?

module

Added in 1.0.0-alpha02
var moduleGPUShaderModule

The shader module containing the fragment entry point.

targets

Added in 1.0.0-alpha02
var targetsArray<GPUColorTargetState>

An array defining the configuration for each color attachment.