Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GFXBuffer

GFX缓冲。

Hierarchy

Index

Constructors

constructor

Properties

Protected _bufferView

_bufferView: Uint8Array | null = null

Protected _count

_count: number = 0

Protected _device

_device: GFXDevice

Protected _flags

_flags: GFXBufferFlags = GFXBufferFlagBit.NONE

Protected _gfxType

_gfxType: GFXObjectType = GFXObjectType.UNKNOWN

对象类型。

Protected _memUsage

_memUsage: GFXMemoryUsage = GFXMemoryUsageBit.NONE

Protected _size

_size: number = 0

Protected _status

_status: GFXStatus = GFXStatus.UNREADY

对象状态。

Protected _stride

_stride: number = 1

Protected _usage

_usage: GFXBufferUsage = GFXBufferUsageBit.NONE

Accessors

bufferView

  • get bufferView(): Uint8Array | null

count

  • get count(): number

flags

gfxType

memUsage

size

  • get size(): number

status

stride

  • get stride(): number

usage

Methods

Abstract destroy

  • destroy(): void

Abstract initialize

Abstract resize

  • resize(size: number): any

Abstract update

  • update(buffer: GFXBufferSource, offset?: undefined | number, size?: undefined | number): any
  • 更新缓冲内容。

    Parameters

    • buffer: GFXBufferSource

      缓冲数据源。

    • Optional offset: undefined | number

      目的缓冲的偏移量。

    • Optional size: undefined | number

      更新的缓冲大小。

    Returns any

Generated using TypeDoc