GPUFragmentState


public final class GPUFragmentState


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

Summary

Public constructors

GPUFragmentState(
    @NonNull GPUShaderModule module,
    String entryPoint,
    @NonNull GPUConstantEntry[] constants,
    @NonNull GPUColorTargetState[] targets
)

Public methods

final @NonNull GPUConstantEntry[]

An array of constant overrides for the fragment shader.

final String
final @NonNull GPUShaderModule

The shader module containing the fragment entry point.

final @NonNull GPUColorTargetState[]

An array defining the configuration for each color attachment.

final void
setConstants(@NonNull GPUConstantEntry[] 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 GPUColorTargetState[] targets)

An array defining the configuration for each color attachment.

Public constructors

GPUFragmentState

Added in 1.0.0-alpha02
public GPUFragmentState(
    @NonNull GPUShaderModule module,
    String entryPoint,
    @NonNull GPUConstantEntry[] constants,
    @NonNull GPUColorTargetState[] targets
)

Public methods

getConstants

Added in 1.0.0-alpha02
public final @NonNull GPUConstantEntry[] getConstants()

An array of constant overrides for the fragment shader.

getEntryPoint

Added in 1.0.0-alpha02
public final String getEntryPoint()

getModule

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

The shader module containing the fragment entry point.

getTargets

Added in 1.0.0-alpha02
public final @NonNull GPUColorTargetState[] getTargets()

An array defining the configuration for each color attachment.

setConstants

Added in 1.0.0-alpha02
public final void setConstants(@NonNull GPUConstantEntry[] constants)

An array of constant overrides for the fragment shader.

setEntryPoint

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

setModule

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

The shader module containing the fragment entry point.

setTargets

Added in 1.0.0-alpha02
public final void setTargets(@NonNull GPUColorTargetState[] targets)

An array defining the configuration for each color attachment.