Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WgCanvas

Describes a render target based on an HTMLCanvasElement

Hierarchy

Index

Constructors

constructor

Properties

Private Readonly _format

_format: GPUTextureFormat

Private Readonly canvas

canvas: HTMLCanvasElement

Private Readonly ctx

ctx: GPUCanvasContext

Protected Readonly webGpuContext

webGpuContext: WgContext

Accessors

domElement

  • get domElement(): HTMLCanvasElement

format

  • get format(): GPUTextureFormat

height

  • get height(): number

texture

  • get texture(): GPUTexture

view

  • get view(): GPUTextureView

width

  • get width(): number

Methods

dispose

  • dispose(): void

setSize

  • setSize(width: number, height: number): void

Generated using TypeDoc