Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Buffer

GFX buffer.

Hierarchy

Index

Constructors

constructor

Properties

Protected _bakcupBuffer

_bakcupBuffer: Uint8Array | null = null

Protected _count

_count: number = 0

Protected _device

_device: Device

Protected _flags

_flags: BufferFlags = BufferFlagBit.NONE

Protected _gfxType

_gfxType: ObjectType = ObjectType.UNKNOWN

Protected _indirectBuffer

_indirectBuffer: IndirectBuffer | null = null

Protected _isBufferView

_isBufferView: boolean = false

Protected _memUsage

_memUsage: MemoryUsage = MemoryUsageBit.NONE

Protected _size

_size: number = 0

Protected _stride

_stride: number = 1

Protected _usage

_usage: BufferUsage = BufferUsageBit.NONE

Accessors

backupBuffer

  • get backupBuffer(): Uint8Array | null

count

  • get count(): number

flags

gfxType

memUsage

size

  • get size(): number

stride

  • get stride(): number

usage

Methods

Abstract destroy

  • destroy(): void

Abstract initialize

Abstract resize

  • resize(size: number): void

Abstract update

  • update(buffer: BufferSource, size?: undefined | number): void

Generated using TypeDoc