GPUShaderModuleDescriptor
public final class GPUShaderModuleDescriptor
Describes a shader module.
Summary
Public constructors
GPUShaderModuleDescriptor
Added in 1.0.0-alpha05
public GPUShaderModuleDescriptor(
String label,
GPUShaderSourceSPIRV shaderSourceSPIRV,
GPUShaderSourceWGSL shaderSourceWGSL
)
Public methods
getLabel
Added in 1.0.0-alpha05
public final String getLabel()
A human-readable label for debugging.
getShaderSourceSPIRV
Added in 1.0.0-alpha05
public final GPUShaderSourceSPIRV getShaderSourceSPIRV()
Extension for providing SPIR-V shader source code.
getShaderSourceWGSL
Added in 1.0.0-alpha05
public final GPUShaderSourceWGSL getShaderSourceWGSL()
Extension for providing WGSL shader source code.
setLabel
Added in 1.0.0-alpha05
public final void setLabel(String value)
A human-readable label for debugging.
setShaderSourceSPIRV
Added in 1.0.0-alpha05
public final void setShaderSourceSPIRV(GPUShaderSourceSPIRV value)
Extension for providing SPIR-V shader source code.
setShaderSourceWGSL
Added in 1.0.0-alpha05
public final void setShaderSourceWGSL(GPUShaderSourceWGSL value)
Extension for providing WGSL shader source code.
