GPUComputeState


public final class GPUComputeState


Describes the compute shader stage of a pipeline.

Summary

Public constructors

GPUComputeState(
    @NonNull GPUShaderModule module,
    String entryPoint,
    @NonNull GPUConstantEntry[] constants
)

Public methods

final @NonNull GPUConstantEntry[]

An array of pipeline-overridable constants.

final String
final @NonNull GPUShaderModule

The shader module containing the compute shader.

final void
setConstants(@NonNull GPUConstantEntry[] constants)

An array of pipeline-overridable constants.

final void
setEntryPoint(String entryPoint)
final void

The shader module containing the compute shader.

Public constructors

GPUComputeState

Added in 1.0.0-alpha04
public GPUComputeState(
    @NonNull GPUShaderModule module,
    String entryPoint,
    @NonNull GPUConstantEntry[] constants
)

Public methods

getConstants

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

An array of pipeline-overridable constants.

getEntryPoint

Added in 1.0.0-alpha04
public final String getEntryPoint()

getModule

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

The shader module containing the compute shader.

setConstants

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

An array of pipeline-overridable constants.

setEntryPoint

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

setModule

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

The shader module containing the compute shader.