WebIDLpedia

GPU interface

Definition

WebGPU defines GPU



[Exposed=(Window, Worker), SecureContext]
interface GPU {
    Promise<GPUAdapter?> requestAdapter(optional GPURequestAdapterOptions options = {});
    GPUTextureFormat getPreferredCanvasFormat();
    [SameObject] readonly attribute WGSLLanguageFeatures wgslLanguageFeatures;
};

Methods and attributes that return objects implementing GPU

Referring IDL interfaces/dictionaries