Interface GPUDeviceDescriptor

    interface GPUDeviceDescriptor {
        defaultQueue?: GPUObjectDescriptorBase;
        label?: string;
        requiredFeatures?: Iterable<GPUFeatureName>;
        requiredLimits?: Record<string, number>;
    }
    Hierarchy

    Properties

    The descriptor for the default GPUQueue.

    label?: string

    The initial value of GPUObjectBase.label.

    requiredFeatures?: Iterable<GPUFeatureName>

    Specifies the features that are required by the device request. The request will fail if the adapter cannot provide these features. Exactly the specified set of features, and no more or less, will be allowed in validation of API calls on the resulting device.

    requiredLimits?: Record<string, number>

    Specifies the limits that are required by the device request. The request will fail if the adapter cannot provide these limits. Each key with a non-undefined value must be the name of a member of supported limits. API calls on the resulting device perform validation according to the exact limits of the device (not the adapter; see [[#limits]]).