GPUComputeState


class GPUComputeState


Describes the compute shader stage of a pipeline.

Summary

Public constructors

GPUComputeState(
    module: GPUShaderModule,
    entryPoint: String?,
    constants: Array<GPUConstantEntry>
)

Public properties

Array<GPUConstantEntry>

An array of pipeline-overridable constants.

String?
GPUShaderModule

The shader module containing the compute shader.

Public constructors

GPUComputeState

Added in 1.0.0-alpha04
GPUComputeState(
    module: GPUShaderModule,
    entryPoint: String? = null,
    constants: Array<GPUConstantEntry> = 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 compute shader.