Interface IWebGPUInit

Interface as output of the initWebGPU function.

Hierarchy

  • IWebGPUInit

Properties

background?: {
    a: number;
    b: number;
    g: number;
    r: number;
}

The background color for the scene

Type declaration

  • a: number
  • b: number
  • g: number
  • r: number
context?: GPUCanvasContext

The GPU canvas context

device?: GPUDevice

The GPU device

format?: GPUTextureFormat

The GPU texture format

msaaCount?: number

MSAA count (1 or 4)

size?: {
    height: number;
    width: number;
}

The canvas size

Type declaration

  • height: number
  • width: number

Generated using TypeDoc