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