FragmentState


public final class FragmentState


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

Summary

Public constructors

FragmentState(
    @NonNull GPUShaderModule module,
    String entryPoint,
    @NonNull ConstantEntry[] constants,
    @NonNull ColorTargetState[] targets
)

Public methods

final @NonNull ConstantEntry[]

An array of constant overrides for the fragment shader.

final String
final @NonNull GPUShaderModule

The shader module containing the fragment entry point.

final @NonNull ColorTargetState[]

An array defining the configuration for each color attachment.

final void
setConstants(@NonNull ConstantEntry[] constants)

An array of constant overrides for the fragment shader.

final void
setEntryPoint(String entryPoint)
final void

The shader module containing the fragment entry point.

final void
setTargets(@NonNull ColorTargetState[] targets)

An array defining the configuration for each color attachment.

Public constructors

FragmentState

Added in 1.0.0-alpha01
public FragmentState(
    @NonNull GPUShaderModule module,
    String entryPoint,
    @NonNull ConstantEntry[] constants,
    @NonNull ColorTargetState[] targets
)

Public methods

getConstants

Added in 1.0.0-alpha01
public final @NonNull ConstantEntry[] getConstants()

An array of constant overrides for the fragment shader.

getEntryPoint

Added in 1.0.0-alpha01
public final String getEntryPoint()

getModule

Added in 1.0.0-alpha01
public final @NonNull GPUShaderModule getModule()

The shader module containing the fragment entry point.

getTargets

Added in 1.0.0-alpha01
public final @NonNull ColorTargetState[] getTargets()

An array defining the configuration for each color attachment.

setConstants

Added in 1.0.0-alpha01
public final void setConstants(@NonNull ConstantEntry[] constants)

An array of constant overrides for the fragment shader.

setEntryPoint

Added in 1.0.0-alpha01
public final void setEntryPoint(String entryPoint)

setModule

Added in 1.0.0-alpha01
public final void setModule(@NonNull GPUShaderModule module)

The shader module containing the fragment entry point.

setTargets

Added in 1.0.0-alpha01
public final void setTargets(@NonNull ColorTargetState[] targets)

An array defining the configuration for each color attachment.