Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GFXDevice

GFX Device.

Hierarchy

  • GFXDevice

Index

Properties

Protected _UVSpaceSignY

_UVSpaceSignY: number = -1

Protected _canvas

_canvas: HTMLCanvasElement | null = null

Protected _canvas2D

_canvas2D: HTMLCanvasElement | null = null

Protected _clipSpaceMinZ

_clipSpaceMinZ: number = -1

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 _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 _screenSpaceSignY

_screenSpaceSignY: number = 1

Protected _shaderIdGen

_shaderIdGen: number = 0

Protected _stencilBits

_stencilBits: number = 0

Protected _uboOffsetAlignment

_uboOffsetAlignment: number = 1

Protected _vendor

_vendor: string = ""

Protected _version

_version: string = ""

Protected _width

_width: number = 0

Accessors

UVSpaceSignY

  • get UVSpaceSignY(): number

canvas

  • get canvas(): HTMLCanvasElement

canvas2D

  • get canvas2D(): HTMLCanvasElement

clipSpaceMinZ

  • get clipSpaceMinZ(): number

colorFormat

depthBits

  • get depthBits(): number

depthStencilFormat

devicePixelRatio

  • get devicePixelRatio(): number

gfxAPI

height

  • get height(): number

macros

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

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

screenSpaceSignY

  • get screenSpaceSignY(): number

stencilBits

  • get stencilBits(): number

uboOffsetAlignment

  • get uboOffsetAlignment(): number

vendor

  • get vendor(): string

width

  • get width(): number

Methods

Abstract acquire

  • acquire(): void

Abstract blitFramebuffer

Abstract copyBuffersToTexture

Abstract copyFramebufferToBuffer

Abstract copyTexImagesToTexture

Abstract createBuffer

Abstract createCommandBuffer

Abstract createDescriptorSet

Abstract createDescriptorSetLayout

Abstract createFence

Abstract createFramebuffer

Abstract createInputAssembler

Abstract createPipelineLayout

Abstract createPipelineState

Abstract createQueue

Abstract createRenderPass

Abstract createSampler

Abstract createShader

Abstract createTexture

defineMacro

  • defineMacro(macro: string, value?: undefined | string): void
  • Define a macro.

    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
  • Resize the device.

    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