ComputeState


public final class ComputeState


The configuration for the compute shader stage.

Summary

Public constructors

ComputeState(
    @NonNull GPUShaderModule module,
    String entryPoint,
    @NonNull ConstantEntry[] constants
)

Public methods

final @NonNull ConstantEntry[]

An array of constant overrides for the compute shader.

final String
final @NonNull GPUShaderModule

The shader module containing the compute entry point.

final void
setConstants(@NonNull ConstantEntry[] constants)

An array of constant overrides for the compute shader.

final void
setEntryPoint(String entryPoint)
final void

The shader module containing the compute entry point.

Public constructors

ComputeState

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

Public methods

getConstants

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

An array of constant overrides for the compute 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 compute entry point.

setConstants

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

An array of constant overrides for the compute 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 compute entry point.