gpu-curtains
    Preparing search index...

    Parameters used to create a GPUDeviceManager.

    interface GPUDeviceManagerParams {
        label?: string;
        production?: boolean;
        adapterOptions?: GPURequestAdapterOptions;
        autoRender?: boolean;
        requiredFeatures?: GPUFeatureName[];
        requestAdapterLimits?: (keyof GPUSupportedLimits)[];
        onError?: () => void;
        onDeviceLost?: (info?: GPUDeviceLostInfo) => void;
        onDeviceDestroyed?: (info?: GPUDeviceLostInfo) => void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    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

    Additional options to use when requesting an adapter.

    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.

    onError?: () => void

    Callback to run if there's any error while trying to set up the adapter or device.

    onDeviceLost?: (info?: GPUDeviceLostInfo) => void

    Callback to run whenever the device is lost.

    onDeviceDestroyed?: (info?: GPUDeviceLostInfo) => void

    Callback to run whenever the device has been intentionally destroyed.