-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(webgl): query and cache each WebGL limit only when requested (#…
- Loading branch information
Showing
19 changed files
with
360 additions
and
517 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import {DeviceTabs, Info} from '@site/src/react-luma'; | ||
|
||
### Device.info | ||
|
||
Holds a `DeviceInfo` object that describes the device, providing information about the driver, GPU, shading language etc. | ||
|
||
<DeviceTabs /> | ||
|
||
| Field | This Browser | Description | | ||
| ------------------------ | ----------------------------------- | ---------------------------------------------------------- | | ||
| `type` | <Info f="type" /> | Device type `webgpu`, `webgl2` or `webgl` | | ||
| `vendor` | <Info f="vendor" /> | GPU vendor | | ||
| `renderer` | <Info f="renderer" /> | GPU Driver | | ||
| `version` | <Info f="version" /> | Driver version | | ||
| `gpu` | <Info f="gpu" /> | `apple`, `intel`, `nvidia`, `amd`, `software` or `unknown` | | ||
| `gpuType` | <Info f="gpuType" /> | `discrete`, `integrated`, `cpu` or `unknown` | | ||
| `gpuBackend` | <Info f="gpuBackend" /> | `metal`, `opengl`, `vulkan`, `d3d12`, ... or `unknown` | | ||
| `gpuArchitecture` | <Info f="gpuArchitecture" /> | `common-3` on Apple | | ||
| `shadingLanguage` | <Info f="shadingLanguage" /> | Shanding language `wgsl`, `glsl` | | ||
| `shadingLanguageVersion` | <Info f="shadingLanguageVersion" /> | Shading language version GLSL 3.00 = 300, GLSL 1.00 = 100) | | ||
|
||
- Note that the Chrome browser only exposes limited device information by default. Set the [chrome://flags/#enable-webgpu-developer-features](chrome://flags/#enable-webgpu-developer-features) flag to see more WebGPU info. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.