Base parameters used to create a GPUDeviceManager.

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

Hierarchy (View Summary)

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.