Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GFXDevice

GFX 设备。

Hierarchy

  • GFXDevice

Index

Properties

Protected _canvas

_canvas: HTMLCanvasElement | null = null

Protected _canvas2D

_canvas2D: HTMLCanvasElement | null = null

Protected _cmdAllocator

_cmdAllocator: GFXCommandAllocator | null = null

Protected _colorFmt

_colorFmt: GFXFormat = GFXFormat.UNKNOWN

Protected _depthBits

_depthBits: number = 0

Protected _depthStencilFmt

_depthStencilFmt: GFXFormat = GFXFormat.UNKNOWN

Protected _deviceName

_deviceName: string = ""

Protected _devicePixelRatio

_devicePixelRatio: number = 1

Protected _features

_features: boolean[] = new Array<boolean>(GFXFeature.COUNT)

Protected _gfxAPI

_gfxAPI: GFXAPI = GFXAPI.UNKNOWN

Protected _height

_height: number = 0

Protected _macros

_macros: Map<string, string> = new Map()

Protected _mainWindow

_mainWindow: GFXWindow | null = null

Protected _maxCubeMapTextureSize

_maxCubeMapTextureSize: number = 0

Protected _maxFragmentUniformVectors

_maxFragmentUniformVectors: number = 0

Protected _maxTextureSize

_maxTextureSize: number = 0

Protected _maxTextureUnits

_maxTextureUnits: number = 0

Protected _maxUniformBlockSize

_maxUniformBlockSize: number = 0

Protected _maxUniformBufferBindings

_maxUniformBufferBindings: number = GFX_MAX_BUFFER_BINDINGS

Protected _maxVertexAttributes

_maxVertexAttributes: number = 0

Protected _maxVertexTextureUnits

_maxVertexTextureUnits: number = 0

Protected _maxVertexUniformVectors

_maxVertexUniformVectors: number = 0

Protected _nativeHeight

_nativeHeight: number = 0

Protected _nativeWidth

_nativeWidth: number = 0

Protected _numDrawCalls

_numDrawCalls: number = 0

Protected _numInstances

_numInstances: number = 0

Protected _numTris

_numTris: number = 0

Protected _queue

_queue: GFXQueue | null = null

Protected _renderer

_renderer: string = ""

Protected _reverseCW

_reverseCW: boolean = false

Protected _shaderIdGen

_shaderIdGen: number = 0

Protected _stencilBits

_stencilBits: number = 0

Protected _vendor

_vendor: string = ""

Protected _version

_version: string = ""

Protected _width

_width: number = 0

Accessors

canvas

  • get canvas(): HTMLCanvasElement

canvas2D

  • get canvas2D(): HTMLCanvasElement

colorFormat

commandAllocator

depthBits

  • get depthBits(): number

depthStencilFormat

devicePixelRatio

  • get devicePixelRatio(): number

gfxAPI

height

  • get height(): number

macros

  • get macros(): Map<string, string>

mainWindow

maxCubeMapTextureSize

  • get maxCubeMapTextureSize(): number

maxFragmentUniformVectors

  • get maxFragmentUniformVectors(): number

maxTextureSize

  • get maxTextureSize(): number

maxTextureUnits

  • get maxTextureUnits(): number

maxUniformBlockSize

  • get maxUniformBlockSize(): number

maxUniformBufferBindings

  • get maxUniformBufferBindings(): number

maxVertexAttributes

  • get maxVertexAttributes(): number

maxVertexTextureUnits

  • get maxVertexTextureUnits(): number

maxVertexUniformVectors

  • get maxVertexUniformVectors(): number

memoryStatus

nativeHeight

  • get nativeHeight(): number

nativeWidth

  • get nativeWidth(): number

numDrawCalls

  • get numDrawCalls(): number

numInstances

  • get numInstances(): number

numTris

  • get numTris(): number

queue

renderer

  • get renderer(): string

reverseCW

  • get reverseCW(): boolean
  • set reverseCW(val: boolean): void

stencilBits

  • get stencilBits(): number

vendor

  • get vendor(): string

width

  • get width(): number

Methods

Abstract blitFramebuffer

Abstract copyBuffersToTexture

Abstract copyFramebufferToBuffer

Abstract copyTexImagesToTexture

Abstract createBindingLayout

Abstract createBuffer

Abstract createCommandAllocator

Abstract createCommandBuffer

Abstract createFramebuffer

Abstract createInputAssembler

Abstract createPipelineLayout

Abstract createPipelineState

Abstract createQueue

Abstract createRenderPass

Abstract createSampler

Abstract createShader

Abstract createTexture

Abstract createTextureView

Abstract createWindow

defineMacro

  • defineMacro(macro: string, value?: undefined | string): void
  • 定义宏。

    Parameters

    • macro: string

      The macro name.

    • Optional value: undefined | string

      The macro value.

    Returns void

Abstract destroy

  • destroy(): void

genShaderId

  • genShaderId(): number

hasFeature

Abstract initialize

Abstract present

  • present(): void

Abstract resize

  • resize(width: number, height: number): void
  • 重置设备大小。

    Parameters

    • width: number

      The device width.

    • height: number

      The device height.

    Returns void

Object literals

Protected memoryStatus

memoryStatus: object

bufferSize

bufferSize: number = 0

textureSize

textureSize: number = 0

Generated using TypeDoc