demo · v136
core-features-and-limits
Request an adapter, then check the new core-features-and-limits feature flag plus the full features/limits set. Useful for "is this a real GPU or a compat-tier device?" gating.
Probing…
adapter present—
core-features-and-limits—
adapter info—
features
limits
| limit | value |
|---|
the code
const adapter = await navigator.gpu.requestAdapter();
if (adapter.features.has("core-features-and-limits")) {
// Full WebGPU surface area available — safe to use anything in the spec.
}
console.log([...adapter.features]); // every supported feature flag
console.log(adapter.limits); // GPULimits object
see also
- WebGPU core-features-and-limits — feature index
- ChromeStatus entry
- WebGPU spec