Dynamically loads a module by name and stores it in the internal module registry. Supports loading WebGL, WebGPU, Effekseer, PBR, and XR modules with code splitting.
The name of the module to load (case-insensitive). Supported modules: 'webgl', 'webgpu', 'effekseer', 'pbr', 'xr'
Optional
options: { Optional configuration object for module loading
Optional
wasm?: stringWASM module URI, currently used only for Effekseer module
A promise that resolves to the loaded module
Static
getGets the singleton instance of ModuleManager. Creates a new instance if one doesn't exist.
The singleton ModuleManager instance
A singleton module manager that handles dynamic loading and management of various modules such as WebGL, WebGPU, Effekseer, PBR, and XR modules.
This class provides a centralized way to load modules on-demand and retrieve them when needed, helping to optimize bundle size by enabling code splitting.