wesl
    Preparing search index...

    Class LinkedWesl

    Multiple WESL files that have been linked together to produce WGSL code.

    Call LinkedWesl.createShaderModule on a WeslDevice to make the error reporting aware of the WESL code.

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    sourceMap: SrcMap

    Accessors

    Methods

    • Creates a GPUShaderModule. When errors occur, they will point at the original WESL source code.

      The compilation info GPUShaderModule.getCompilationInfo can be remapped with mapGPUCompilationInfo

      Parameters

      • device: WeslDevice | GPUDevice

        GPUDevice. Preferably a WeslDevice for better error reporting.

      • descriptor: undefined | Omit<GPUShaderModuleDescriptor, "code">

        Description of the GPUShaderModule to create.

      Returns GPUShaderModule