mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00: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");
|
|
}
|