wesl
    Preparing search index...

    Interface LexicalScope

    A wgsl scope

    interface LexicalScope {
        _scopeDecls?: LiveDecls;
        contents: (Scope | Ident)[];
        id: number;
        ifAttribute?: IfAttribute;
        kind: "scope";
        parent: null | Scope;
    }

    Hierarchy

    • ScopeBase
      • LexicalScope
    Index

    Properties

    _scopeDecls?: LiveDecls

    Efficient access to declarations in this scope. constructed on demand, for module root scopes only

    contents: (Scope | Ident)[]
    id: number

    id for debugging

    ifAttribute?: IfAttribute

    condition for conditionally translating this scope

    kind: "scope"
    parent: null | Scope

    null for root scope in a module