gpu-curtains
    Preparing search index...

    Interface GPUDeviceManagerBaseParams

    Base parameters used to create a GPUDeviceManager.

    interface GPUDeviceManagerBaseParams {
        label?: string;
        production?: boolean;
        adapterOptions?: GPURequestAdapterOptions & { minFeatureLevel?: string };
        autoRender?: boolean;
        requiredFeatures?: GPUFeatureName[];
        requestAdapterLimits?: (keyof GPUSupportedLimits)[];
    }

    Hierarchy (View Summary)

    Index
    label?: string

    The label of the GPUDeviceManager, used to create the GPUDevice for debugging purpose.

    production?: boolean

    Flag indicating whether we're running the production mode or not. If not, useful warnings could be logged to the console.

    adapterOptions?: GPURequestAdapterOptions & { minFeatureLevel?: string }

    Additional options to use when requesting an adapter.

    Type Declaration

    • OptionalminFeatureLevel?: string

      Defines the minimum desired featured level. If set to compatibility, then the it will try to get a core adapter first, and fallback to a compatibility adapter if it fails. Whenever the adapter is successfully created, the featureLevel flag will reflect the actual feature level of the adapter. Note that it won't have any effect if featureLevel is already set to compatibility.

    autoRender?: boolean

    Whether the GPUDeviceManager should create its own requestAnimationFrame loop to render or not.

    requiredFeatures?: GPUFeatureName[]

    Optional required features representing additional functionalities to use when requesting a device.

    requestAdapterLimits?: (keyof GPUSupportedLimits)[]

    Optional limits keys to use to force the device to use the maximum supported adapter limits.