GPUShaderModuleDescriptor
public final class GPUShaderModuleDescriptor
A descriptor for creating a shader module.
Summary
Public constructors |
|---|
GPUShaderModuleDescriptor( |
Public methods |
|
|---|---|
final String |
getLabel()The label for the shader module. |
final GPUShaderSourceSPIRV |
|
final GPUShaderSourceWGSL |
|
final void |
The label for the shader module. |
final void |
setShaderSourceSPIRV(GPUShaderSourceSPIRV shaderSourceSPIRV) |
final void |
setShaderSourceWGSL(GPUShaderSourceWGSL shaderSourceWGSL) |
Public constructors
GPUShaderModuleDescriptor
Added in 1.0.0-alpha02
public GPUShaderModuleDescriptor(
String label,
GPUShaderSourceSPIRV shaderSourceSPIRV,
GPUShaderSourceWGSL shaderSourceWGSL
)
Public methods
getShaderSourceSPIRV
Added in 1.0.0-alpha02
public final GPUShaderSourceSPIRV getShaderSourceSPIRV()
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)