GPUShaderModuleDescriptor


class GPUShaderModuleDescriptor


Describes a shader module.

Summary

Public constructors

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

Public properties

String?

A human-readable label for debugging.

GPUShaderSourceSPIRV?

Extension for providing SPIR-V shader source code.

GPUShaderSourceWGSL?

Extension for providing WGSL shader source code.

Public constructors

GPUShaderModuleDescriptor

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

Public properties

label

Added in 1.0.0-alpha04
var labelString?

A human-readable label for debugging.

shaderSourceSPIRV

Added in 1.0.0-alpha04
var shaderSourceSPIRVGPUShaderSourceSPIRV?

Extension for providing SPIR-V shader source code.

shaderSourceWGSL

Added in 1.0.0-alpha04
var shaderSourceWGSLGPUShaderSourceWGSL?

Extension for providing WGSL shader source code.