WebIDLpedia

GPUAdapter interface

Definition

WebGPU defines GPUAdapter



[Exposed=(Window, Worker), SecureContext]
interface GPUAdapter {
    [SameObject] readonly attribute GPUSupportedFeatures features;
    [SameObject] readonly attribute GPUSupportedLimits limits;
    readonly attribute boolean isFallbackAdapter;

    Promise<GPUDevice> requestDevice(optional GPUDeviceDescriptor descriptor = {});
    Promise<GPUAdapterInfo> requestAdapterInfo();
};

Methods and attributes that return objects implementing GPUAdapter

Referring IDL interfaces/dictionaries