mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
6 lines
205 B
JavaScript
6 lines
205 B
JavaScript
const adapter = await navigator.gpu.requestAdapter();
|
|
|
|
if (adapter.features.has("mappable-primary-buffers")) {
|
|
throw new TypeError("Adapter should not report support for wgpu native-only features");
|
|
}
|