Class Renderer

Hierarchy

  • Renderer

Constructors

  • Parameters

    • device: GPUDevice
    • canvas: HTMLCanvasElement
    • contextConfig: {
          alphaMode?: GPUCanvasAlphaMode;
      } = {}
      • Optional alphaMode?: GPUCanvasAlphaMode
    • options: {
          antialias?: boolean;
      } = {}
      • Optional antialias?: boolean

    Returns Renderer

Properties

_pixelRatio: number = window.devicePixelRatio
_renderTexture?: GPUTexture
_sampleCount: 1 | 4 = 1
antialiasRenderTexture?: GPUTexture
canvas: HTMLCanvasElement
ctx: GPUCanvasContext
depthFormat: GPUTextureFormat = "depth24plus-stencil8"
depthTexture?: GPUTexture
device: GPUDevice
items: Set<RenderableInterface> = ...
presentationFormat: GPUTextureFormat
presentationSize: {
    height: number;
    width: number;
} = ...

Type declaration

  • height: number
  • width: number
renderPassDescriptor: GPURenderPassDescriptor

Accessors

Methods

  • Parameters

    • Optional width: number
    • Optional height: number

    Returns void

Generated using TypeDoc