webgpu / webgpureport.org

A website to show WebGPU info
https://webgpureport.org
49 stars 8 forks source link

Show isCompatibilityMode only if supported #7

Closed beaufortfrancois closed 9 months ago

beaufortfrancois commented 9 months ago

As isCompatibilityMode is not in the WebGPU spec, we should only show it when exposed by supported browsers.

greggman commented 9 months ago

would it be good to show "unsupported" for broswers that don't support compat?

beaufortfrancois commented 9 months ago

When it's part of the spec yes, something like this could work indeed:


      ...mapLikeToTableRows({
        'isFallbackAdapter': adapter.isFallbackAdapter,
        'isCompatibilityMode': 'isCompatibilityMode' in adapter ? adapter.isCompatibilityMode : 'unsupported',
      }),