@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
17 lines (16 loc) • 824 B
TypeScript
import { type AbstractEngine } from "./abstractEngine.js";
import { type NullEngineOptions } from "./nullEngine.js";
import { type WebGPUEngineOptions } from "./webgpuEngine.js";
import { type EngineOptions } from "./thinEngine.js";
/**
* Helper class to create the best engine depending on the current hardware
*/
export declare class EngineFactory {
/**
* Creates an engine based on the capabilities of the underlying hardware
* @param canvas Defines the canvas to use to display the result
* @param options Defines the options passed to the engine to create the context dependencies
* @returns a promise that resolves with the created engine
*/
static CreateAsync(canvas: HTMLCanvasElement, options?: WebGPUEngineOptions | EngineOptions | NullEngineOptions): Promise<AbstractEngine>;
}