Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Device

GFX 设备。

Hierarchy

  • Device

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 _cmdBuff

_cmdBuff: CommandBuffer | null = null

Protected _colorFmt

_colorFmt: Format = Format.UNKNOWN

Protected _depthBits

_depthBits: number = 0

Protected _depthStencilFmt

_depthStencilFmt: Format = Format.UNKNOWN

Protected _deviceName

_deviceName: string = ""

Protected _devicePixelRatio

_devicePixelRatio: number = 1

Protected _features

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

Protected _gfxAPI

_gfxAPI: API = API.UNKNOWN

Protected _height

_height: number = 0

Protected _macros

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

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 = 0

Protected _maxVertexAttributes

_maxVertexAttributes: number = 0

Protected _maxVertexTextureUnits

_maxVertexTextureUnits: number = 0

Protected _maxVertexUniformVectors

_maxVertexUniformVectors: number = 0

Protected _memoryStatus

_memoryStatus: MemoryStatus = new MemoryStatus()

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: Queue | null = null

Protected _renderer

_renderer: string = ""

Protected _screenSpaceSignY

_screenSpaceSignY: number = 1

Protected _stencilBits

_stencilBits: number = 0

Protected _transform

_transform: SurfaceTransform = SurfaceTransform.IDENTITY

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

commandBuffer

depthBits

  • get depthBits(): number

depthStencilFormat

  • get depthStencilFormat(): Format

devicePixelRatio

  • get devicePixelRatio(): number

gfxAPI

  • get gfxAPI(): API

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

surfaceTransform

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

Abstract destroy

  • destroy(): void

hasFeature

  • hasFeature(feature: Feature): boolean

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

Generated using TypeDoc