GPUShaderModuleDescriptor


class GPUShaderModuleDescriptor


A descriptor for creating a shader module.

Summary

Public constructors

GPUShaderModuleDescriptor(
    label: String?,
    shaderSourceSPIRV: GPUShaderSourceSPIRV?,
    shaderSourceWGSL: GPUShaderSourceWGSL?
)

Public properties

String?

The label for the shader module.

GPUShaderSourceSPIRV?
GPUShaderSourceWGSL?

Public constructors

GPUShaderModuleDescriptor

Added in 1.0.0-alpha02
GPUShaderModuleDescriptor(
    label: String? = null,
    shaderSourceSPIRV: GPUShaderSourceSPIRV? = null,
    shaderSourceWGSL: GPUShaderSourceWGSL? = null
)

Public properties

label

Added in 1.0.0-alpha02
var labelString?

The label for the shader module.

shaderSourceSPIRV

Added in 1.0.0-alpha02
var shaderSourceSPIRVGPUShaderSourceSPIRV?

shaderSourceWGSL

Added in 1.0.0-alpha02
var shaderSourceWGSLGPUShaderSourceWGSL?