Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • LumaBuffer<this>
    • Buffer

Index

Constructors

constructor

  • new Buffer(gl: WebGLRenderingContext, props?: BufferProps): Buffer
  • new Buffer(gl: WebGLRenderingContext, data: ArrayBufferView | number[]): Buffer
  • new Buffer(gl: WebGLRenderingContext, byteLength: number): Buffer

Properties

_handle

_handle: any

Methods

_deleteHandle

  • _deleteHandle(): void

_mapResource

  • _mapResource(handle?: any): Buffer

_registerResource

  • _registerResource(handle?: any): Buffer

_setByteLength

  • _setByteLength(byteLength: number, usage?: number): Buffer

_setData

  • _setData(data: any, offset?: number, byteLength?: any): Buffer

_unmapResource

  • _unmapResource(handle?: any): Buffer

_unregisterResource

  • _unregisterResource(handle?: any): Buffer

asCUDABuffer

  • asCUDABuffer(byteOffset?: number, byteLength?: number): Uint8Buffer

asMappedResource

  • asMappedResource(work: (buffer: Buffer) => any): void

subData

Static mapResources

  • mapResources(buffers?: any[]): void

Static unmapResources

  • unmapResources(buffers?: any[]): void