Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Uniformbuffer<U>

GPU buffer used as the data source for a uniform block, with CPU-side data representation and individual member views.

Type Parameters

  • U extends UboIntrospection = UboIntrospection

Hierarchy

Index

Properties

ready: Promise<void>
size: number

The buffers size in bytes

CPU-side representation of the data.

uniforms: UnwrappedUbo<Omit<U, "@blockSize">>

View of the contained uniforms.

Methods

  • invalidate(start?: number, end?: number): void
  • Marks a given range of the buffer as invalid. If parts of the buffer have already been invalidated, the range containing all parts will be invalidated.

    Parameters

    • start: number = 0

      First byte to invalidate.

    • end: number = Infinity

      Last byte to invalidate.

    Returns void

  • uploadSync(): void

Constructors

Generated using TypeDoc