Hilo3d API - v2.0.0
    Preparing search index...

    Class UniformBuffer<Schema>

    Portable std140 uniform block shared byte-for-byte by WebGL2 and WebGPU.

    Type Parameters

    Index
    className: "UniformBuffer" = 'UniformBuffer'
    isUniformBuffer: true
    • get revision(): number

      Monotonic CPU-data revision shared by WebGL2 and WebGPU upload caches.

      Returns number

    • Return retained writes newer than a backend-local revision. null means the consumer fell behind the bounded history window and must upload the complete current buffer.

      Parameters

      • revision: number

      Returns readonly UniformBufferDirtyRange[] | null

    • Mark externally mutated bytes for upload on every context using this buffer.

      Parameters

      • byteOffset: number = 0
      • byteLength: number = ...

      Returns this