wesl
    Preparing search index...

    Interface LinkRegistryParams

    interface LinkRegistryParams {
        conditions?: Conditions;
        config?: LinkConfig;
        constants?: Record<string, string | number>;
        mangler?: ManglerFn;
        registry: ParsedRegistry;
        rootModuleName?: string;
        virtualLibs?: Record<string, VirtualLibraryFn>;
    }

    Hierarchy

    • Pick<
          LinkParams,
          | "rootModuleName"
          | "conditions"
          | "virtualLibs"
          | "config"
          | "constants"
          | "mangler",
      >
      • LinkRegistryParams
    Index

    Properties

    conditions?: Conditions

    runtime conditions for conditional compiling with

    and friends

    config?: LinkConfig

    plugins and other configuration to use while linking

    constants?: Record<string, string | number>

    Host (ts/js) provided wgsl constants. Users can import the values from wesl code via the constants' virtual library: import constants::num_lights;`

    mangler?: ManglerFn

    function to construct globally unique wgsl identifiers

    registry: ParsedRegistry
    rootModuleName?: string

    name of root wesl module for an app, the root module normally contains the '@compute', '@vertex' or '@fragment' entry points for a library, the root module defines the public api fo the library can be specified as file path (./main.wesl), a module path (package::main), or just a module name (main)

    virtualLibs?: Record<string, VirtualLibraryFn>

    generate wesl from code at runtime