Interface GPUDeviceDescriptor

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

    Properties

    The descriptor for the default GPUQueue.

    label?: string

    The initial value of GPUObjectBase.label.

    requiredFeatures?: Iterable<GPUFeatureName, any, any>

    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 must be the name of a member of supported limits. Exactly the specified limits, and no limit/better or worse, will be allowed in validation of API calls on the resulting device.