Documentation
    Preparing search index...

    Function createShaderSourceMap

    • Maps the compiler's deterministic local declarations without changing shader bytes (and therefore without invalidating existing program caches/goldens). This accepts compiler output, never author-supplied shader code. WGSL modules contain both stages; the fragment annotation switches the current stage.

      Parameters

      • source: string
      • OptionalinitialStage: "vertex" | "fragment"

      Returns ShaderSourceMap