Skip to content

fix: improve WebGPU adapter detection accuracy#6

Merged
Jesssullivan merged 1 commit intomasterfrom
fix/webgpu-detection-accuracy
Feb 12, 2026
Merged

fix: improve WebGPU adapter detection accuracy#6
Jesssullivan merged 1 commit intomasterfrom
fix/webgpu-detection-accuracy

Conversation

@Jesssullivan
Copy link
Owner

Summary

  • Removes misleading "WebGPU Adapter (legacy)" label that appeared in browsers with incomplete WebGPU support
  • Uses adapter.info (synchronous, Chrome 121+) as primary info source, requestAdapterInfo() as fallback
  • Rejects isFallbackAdapter (software) adapters that can't run Futhark shaders
  • Fixes false-positive WebGPU detection in browsers where navigator.gpu exists but Futhark's $futhark_context_new assertion fails

Test plan

  • pnpm test passes (766 pass)
  • Browser with real GPU: detection shows vendor/architecture/device info
  • Browser with software adapter: detection rejects, gate blocks demos

- Use adapter.info (sync, Chrome 121+) as primary, requestAdapterInfo()
  as fallback — removes misleading "legacy" label
- Reject isFallbackAdapter (software) adapters that can't run Futhark
- Remove "(legacy)" text that implied working-but-old WebGPU when the
  browser actually had incomplete/experimental support
@Jesssullivan Jesssullivan merged commit 0a0760f into master Feb 12, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant