Hierarchy

  • WebGpuRendererContext

Implements

Constructors

  • Parameters

    • renderer: Renderer
    • device: GPUDevice
    • canvasContext: GPUCanvasContext
    • presentationFormat: GPUTextureFormat

    Returns WebGpuRendererContext

Properties

canvas: HTMLCanvasElement
canvasContext: GPUCanvasContext
device: GPUDevice
presentationFormat: GPUTextureFormat
renderer: Renderer
resourceLoader: default = ...
viewport: IVector2 = ...

Accessors

  • get asWebGl(): undefined
  • Returns undefined

Methods

  • Parameters

    • data: Uint16Array

    Returns GPUBuffer

  • Parameters

    • id: string
    • capacity: number
    • depthOffset: number = 0.0
    • yOffset: number = 0.0
    • enableAlphaMultiplcation: boolean = true
    • enforceBeginAndEnd: boolean = true

    Returns ISpriteBatch

  • Parameters

    • data: Float32Array

    Returns GPUBuffer

  • Parameters

    • data: Float32Array

    Returns GPUBuffer

  • Parameters

    • viewportOffsetX: number
    • rendererWidth: number
    • canvasHeight: number
    • Optional post: boolean

    Returns void

  • Called for the primary renderer

    Parameters

    • timeStamp: number
    • renderersOrder: Set<Renderer>

    Returns void

Generated using TypeDoc