ShaderModuleDescriptor


public final class ShaderModuleDescriptor


A descriptor for creating a shader module.

Summary

Public constructors

ShaderModuleDescriptor(
    String label,
    ShaderSourceSPIRV shaderSourceSPIRV,
    ShaderSourceWGSL shaderSourceWGSL
)

Public methods

final String

The label for the shader module.

final ShaderSourceSPIRV
final ShaderSourceWGSL
final void

The label for the shader module.

final void
final void

Public constructors

ShaderModuleDescriptor

Added in 1.0.0-alpha01
public ShaderModuleDescriptor(
    String label,
    ShaderSourceSPIRV shaderSourceSPIRV,
    ShaderSourceWGSL shaderSourceWGSL
)

Public methods

getLabel

Added in 1.0.0-alpha01
public final String getLabel()

The label for the shader module.

getShaderSourceSPIRV

Added in 1.0.0-alpha01
public final ShaderSourceSPIRV getShaderSourceSPIRV()

getShaderSourceWGSL

Added in 1.0.0-alpha01
public final ShaderSourceWGSL getShaderSourceWGSL()

setLabel

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

The label for the shader module.

setShaderSourceSPIRV

Added in 1.0.0-alpha01
public final void setShaderSourceSPIRV(ShaderSourceSPIRV shaderSourceSPIRV)

setShaderSourceWGSL

Added in 1.0.0-alpha01
public final void setShaderSourceWGSL(ShaderSourceWGSL shaderSourceWGSL)