Interface GPU

Hierarchy

  • GPU

Properties

wgslLanguageFeatures: WGSLLanguageFeatures

Methods

  • Returns an optimal GPUTextureFormat for displaying 8-bit depth, standard dynamic range content on this system. Must only return GPUTextureFormat#"rgba8unorm" or GPUTextureFormat#"bgra8unorm". The returned value can be passed as the format to configure calls on a GPUCanvasContext to ensure the associated canvas is able to display its contents efficiently. Note: Canvases which are not displayed to the screen may or may not benefit from using this format.

    Returns GPUTextureFormat

  • Requests an adapter from the user agent. The user agent chooses whether to return an adapter, and, if so, chooses according to the provided options.

    Parameters

    Returns Promise<null | GPUAdapter>

Generated using TypeDoc