GPUShaderModuleDescriptor


public final class GPUShaderModuleDescriptor


A descriptor for creating a shader module.

Summary

Public constructors

GPUShaderModuleDescriptor(
    String label,
    GPUShaderSourceSPIRV shaderSourceSPIRV,
    GPUShaderSourceWGSL shaderSourceWGSL
)

Public methods

final String

The label for the shader module.

final GPUShaderSourceSPIRV
final GPUShaderSourceWGSL
final void

The label for the shader module.

final void
final void

Public constructors

GPUShaderModuleDescriptor

Added in 1.0.0-alpha02
public GPUShaderModuleDescriptor(
    String label,
    GPUShaderSourceSPIRV shaderSourceSPIRV,
    GPUShaderSourceWGSL shaderSourceWGSL
)

Public methods

getLabel

Added in 1.0.0-alpha02
public final String getLabel()

The label for the shader module.

getShaderSourceSPIRV

Added in 1.0.0-alpha02
public final GPUShaderSourceSPIRV getShaderSourceSPIRV()

getShaderSourceWGSL

Added in 1.0.0-alpha02
public final GPUShaderSourceWGSL getShaderSourceWGSL()

setLabel

Added in 1.0.0-alpha02
public final void setLabel(String label)

The label for the shader module.

setShaderSourceSPIRV

Added in 1.0.0-alpha02
public final void setShaderSourceSPIRV(GPUShaderSourceSPIRV shaderSourceSPIRV)

setShaderSourceWGSL

Added in 1.0.0-alpha02
public final void setShaderSourceWGSL(GPUShaderSourceWGSL shaderSourceWGSL)