pixi.js
    Preparing search index...

    Function extractStructAndGroups

    • Advanced

      Parses a WGSL shader source and extracts its @group/@binding declarations and the structs they reference. The result feeds generateGpuLayoutGroups to build a WebGPU bind group layout.

      Parameters

      • wgsl: string

        The WGSL shader source to parse.

      Returns StructsAndGroups

      The structs and @group/@binding groups found in the source.