Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SyncableBuffer<T>

GPU data store with CPU-side data representation, enabling easy up/downloading.

Type Parameters

Hierarchy

Index

Properties

ready: Promise<void>
size: number

The buffers size in bytes

data: T

CPU-side representation of the data.

Methods

  • Binds the buffer to a target binding point.

    Parameters

    • target: BufferBindingPoint = ...

      The binding point to bind to. If undefined, the target defined at instancing is used.

    Returns boolean

    true if the buffer has successfully been bound, false otherwise.

  • 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