TinyShade
    Preparing search index...

    Class UniformLayout

    Manages memory-aligned WebGPU Uniform Buffers. Handles the strict 16-byte alignment and O(1) update performance.

    Index

    Constructors

    Accessors

    Methods

    • Step 1: Register the structure of your uniforms. This handles the complex WGSL alignment logic.

      Parameters

      Returns this

    • Step 2: Bake the memory buffer and create O(1) setters.

      Returns void

    • Updates globals and runs all dynamic uniform functions.

      Parameters

      • time: number

      Returns void

    • Sequencer-specific update for scene management.

      Parameters

      • sceneId: number
      • progress: number
      • flags: number

      Returns void