Options
All
  • Public
  • Public/Protected
  • All
Menu

Generic GPU data store wrapping WebGLBuffer.

Hierarchy

Index

Properties

ready: Promise<void>
size: number

The buffers size in bytes

Constructors

Methods

  • Returns the underlying WebGLBuffer if it has been initialized, or null otherwise. Use getBuffer() to wait until the buffer is ready.

    Returns WebGLBuffer

    WebGLBuffer if ready, null otherwise.

  • 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.

Generated using TypeDoc