Function initWebGPU

  • This function is used to initialize the WebGPU apps. It returns the IWebGPUInit interface.

    Parameters

    • input: IWebGPUInitInput

      The input argument of the IWebGPUInitInput interface type with default members:

      input.format = navigator.gpu.getPreferredCanvasFormat()

      input.msaa.Count = 1

    • deviceDescriptor: GPUDeviceDescriptor = {}

      Describes a device request. {} means the default setting is used

    Returns Promise<IWebGPUInit>

Generated using TypeDoc