warnIfNotHardwareAccelerated
Log a warning when the GPU adapter is a software fallback.
Checks adapter.info.isFallbackAdapter and logs a console warning. Common on Android emulators where rendering may be slow or missing features.
Usage
useDevice and GPUDeviceProvider already call it for you. Call it yourself when you request the adapter directly:
const = await ..();
if () {
();
const = await .();
}This does not block rendering; it only logs. Test camera, native textures, and performance-critical paths on physical devices.
See also
- useDevice: requesting an adapter and device
- Native Buffers: native buffer support on emulators and imported devices
- GPUDeviceProvider: share one device and read it with
useMainDevice