Returns a shared GPUDevice, initialising it on the first call.
All renderers share the same adapter and device to avoid exhausting
browser GPU resource limits.
The device is requested with timestamp-query enabled if the adapter
supports it, so profiling-capable renderers (e.g. DmdRenderer) can use
that feature without a separate device request.
Returns Promise<GPUDevice>
StaticreleaseSharedDevice
releaseSharedDevice(): void
Clear the cached adapter and device. Call this during cleanup or in tests.
Returns a shared GPUDevice, initialising it on the first call. All renderers share the same adapter and device to avoid exhausting browser GPU resource limits. The device is requested with
timestamp-queryenabled if the adapter supports it, so profiling-capable renderers (e.g. DmdRenderer) can use that feature without a separate device request.