GPUFragmentState


class GPUFragmentState


Describes the fragment shader stage of a render pipeline.

Summary

Public constructors

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

Public properties

Array<GPUConstantEntry>

An array of pipeline-overridable constants.

String?
GPUShaderModule

The shader module containing the fragment shader.

Array<GPUColorTargetState>

An array of color target states.

Public constructors

GPUFragmentState

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

Public properties

constants

Added in 1.0.0-alpha04
var constantsArray<GPUConstantEntry>

An array of pipeline-overridable constants.

entryPoint

Added in 1.0.0-alpha04
var entryPointString?

module

Added in 1.0.0-alpha04
var moduleGPUShaderModule

The shader module containing the fragment shader.

targets

Added in 1.0.0-alpha04
var targetsArray<GPUColorTargetState>

An array of color target states.