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 _indirectBuffer

_indirectBuffer: IGFXIndirectBuffer | null = null

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): void

Abstract update

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

    Parameters

    • buffer: GFXBufferSource

      The new buffer data.

    • Optional offset: undefined | number

      Offset into the buffer.

    • Optional size: undefined | number

      Size of the data to be updated.

    Returns void

Generated using TypeDoc