ShaderModuleDescriptor


class ShaderModuleDescriptor


A descriptor for creating a shader module.

Summary

Public constructors

ShaderModuleDescriptor(
    label: String?,
    shaderSourceSPIRV: ShaderSourceSPIRV?,
    shaderSourceWGSL: ShaderSourceWGSL?
)

Public properties

String?

The label for the shader module.

ShaderSourceSPIRV?
ShaderSourceWGSL?

Public constructors

ShaderModuleDescriptor

Added in 1.0.0-alpha01
ShaderModuleDescriptor(
    label: String? = null,
    shaderSourceSPIRV: ShaderSourceSPIRV? = null,
    shaderSourceWGSL: ShaderSourceWGSL? = null
)

Public properties

label

Added in 1.0.0-alpha01
var labelString?

The label for the shader module.

shaderSourceSPIRV

Added in 1.0.0-alpha01
var shaderSourceSPIRVShaderSourceSPIRV?

shaderSourceWGSL

Added in 1.0.0-alpha01
var shaderSourceWGSLShaderSourceWGSL?