Provide some features helpful for WebGPU Development

Latest Version

Version
0.0.18
Update
November 6, 2024
Size
255KiB
Developer
Category
Users
96
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
ActiveTab
Scripting
See more

WebGPU Dev Extension Extension

Features:

* Print Debug Errors at their source.
* Throw on encoder errors
* Dump Shaders of WebGPU programs
* Show entire shader on shader error
* Log which type of GPU is being used on requestAdapter
* Force low-power or high-performance GPU
* Show how many devices are currently active on the page
* Add Descriptors to Objects
* Show bit names for GPUTexture.usage and GPUBuffer.usage in DevTools
* Block Features
* Disable WebGPU (to test your fallback)
* Remove WebGPU (to test your fallback)
* Add API Breakpoints
* skip rAF frames
* multiply time

Details

* Print Debug Errors at their Source

Errors in WebGPU are usually handled asynchronously which means the actual command that generated the error is often unknown. This extension adds early error checking so that hopefully you'll get an error stack at the place the error was generated making it easier to fix bugs

* Throw on Encoder Errors

Normally command buffer encoders, pass encoders, render bundle encoders only
generate an error when you finish the command encoder. Enable the WebGPU-Debug-Helper
to throw on these types of errors.

* Dump Shaders of WebGPU programs

See the shader of the current page.

* Log which type of GPU is being used on requestAdapter

Prints the adapterInfo on each call to requestAdapter. This lets you see which GPU was used on a dual GPU machine as well as if compatibility mode was requested.

* Force low-power or high-performance GPU

Force low-power or high-performance GPU selection for a page.

* Show how many devices are currently active on the page

Prints a running total of the number of devices currently active on a page.

* Add Descriptors to Objects

Adds the descriptors used to create many objects to those objects. For example: When you call `createView` on a texture you pass in a descriptor. That descriptor is
not reflected in the view itself which can make it hard to see what's going on.
This adds that data onto the view so you can inspect it in the debugger or in the error messages printed by \"Show Errors\". Similarly, bindGroups, bindGroupLayouts,
pipelines, pipelineLayouts, pass encoders, query sets, samplers, shader modules,
external textures, ...

* Block Features

Lets you block webgpu features. For example, type in `shader-f16` and the shader-f16 feature will be blocked. You can use this to test that your code, that is supposed to run without the feature, actually runs without the feature.

* Disable or Remove the WebGPU API

Lets you test that you gracefully handle both the API returning null and the API not existing.

* API Breakpoints

Adds a `debugger` statement to the specified WebGPU API functions. Want to know where the page is calling importExternalTexture? Add a breakpoint.

Source at https://github.com/greggman/webgpu-dev-extension
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "WebGPU Dev Extension", "version": "0.0.18", "manifest_version": 3, "description": "Provide some features helpful for WebGPU Development", "default_locale": "en", "minimum_chrome_version": "113", "permissions": [ "activeTab", "scripting" ], "web_accessible_resources": [ { "resources": [ "scripts/add-descriptors.js", "scripts/auto-label.js", "scripts/breakpoints.js", "scripts/block-features.js", "scripts/count-devices.js", "scripts/custom-formatters.js", "scripts/disable-webgpu.js", "scripts/dump-shaders.js", "scripts/force-compatibility-mode.js", "scripts/force-fallback-adapter.js", "scripts/force-high-performance.js", "scripts/force-low-power.js", "scripts/gpu-injected.js", "scripts/raf-skip-frames.js", "scripts/remove-webgpu.js", "scripts/show-adapter-info.js", "scripts/show-errors.js", "scripts/show-shader-errors.js", "scripts/track-pass-state.js", "scripts/webgpu-compat-validation.js", "scripts/webgpu-debug-helper.js", "scripts/webgpu_recorder.js" ], "matches": ["*://*/*"] } ], "content_scripts": [ { "matches": [""], "js": ["scripts/gpu-content-script.js"], "run_at": "document_start", "all_frames": true } ], "action": { "default_popup": "popup.html", "default_icon": { "16": "/images/icon-16.png", "32": "/images/icon-32.png", "48": "/images/icon-48.png", "128": "/images/icon-128.png", "512": "/images/icon-512.png" } }, "icons": { "16": "/images/icon-16.png", "32": "/images/icon-32.png", "48": "/images/icon-48.png", "128": "/images/icon-128.png", "512": "/images/icon-512.png" }}
Read more

How to download and manually install WebGPU Dev Extension extension for Chrome

Looking for a way to install WebGPU Dev Extension extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install WebGPU Dev Extension extensions manually, this article outlines two simple methods to effortlessly install WebGPU Dev Extension extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download WebGPU Dev Extension extension and manually install through Drag &Drop

If you ever need to manually install a WebGPU Dev Extension extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the WebGPU Dev Extension Extension by clicking the "Download CRX" button on the website.

Look for the WebGPU Dev Extension extension you wish to install. Go to the website and download the WebGPU Dev Extension extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for WebGPU Dev Extension extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the WebGPU Dev Extension extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download WebGPU Dev Extension extension for Chrome and install in Developer Mode

This is another method to install WebGPU Dev Extension extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the WebGPU Dev Extension extension file

Select and download the WebGPU Dev Extension extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the WebGPU Dev Extension extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your WebGPU Dev Extension extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the WebGPU Dev Extension extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install WebGPU Dev Extension extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

One-Click Image Saver Extension · Productivity 96 3 ★ 17.31KiB

icon

Is it WebGPU? Extension · Developer Tools 96 0 ★ 16.24KiB

icon

Save to netroStation Extension · Productivity 96 6 ★ 208KiB

icon

webgpu-devtools Extension · Developer Tools 96 2 ★ 160KiB

icon

UploadBot AutoUploader Extension · Productivity 96 0 ★ 153KiB

icon

GL Git Clone Extension · Developer Tools 96 1 ★ 55.18KiB

icon

Clear Portal Cache Extension · Developer Tools 96 1 ★ 60.0KiB

icon

Icon Changer Extension · Fun 96 0 ★ 17.74KiB

icon

Spector.js Extension · Developer Tools 96 45 ★ 370KiB

icon

Turbo devtools Extension · Developer Tools 96 4 ★ 13.93KiB

icon

Big Chip Extension · Productivity 96 1 ★ 31.22KiB

icon

Regna | Ens Discovery Tool Extension · Productivity 96 0 ★ 236KiB

icon

GPUBot Extension · Productivity 96 8 ★ 13.18MiB

icon

WebGPU Inspector Extension · Developer Tools 96 7 ★ 253KiB

icon

Spotify Notifications Extension · Productivity 96 1 ★ 10.68KiB

icon

CPU Benchmark Finder Extension · Productivity 96 1 ★ 5.21KiB

icon

YouTube Chatbot extension by Audio2Doc Extension · Productivity 96 2 ★ 243KiB

icon

ChatGPT EnterControl Extension · Productivity 96 5 ★ 666KiB

icon

Shader Editor Extension · Developer Tools 96 24 ★ 824KiB

icon

Text and Image Replacer Extension Extension · Productivity 96 8 ★ 22.65KiB

icon

Prana: Your time is limited Extension · Productivity 96 6 ★ 58.13KiB

icon

CreMind GPT Free Extension · Productivity 96 7 ★ 5.17MiB

icon

Aria2 Integration Extension Extension · Productivity 96 2 ★ 1.1MiB

icon

CrosManager - A Web-based System Monitor Extension · Productivity 96 1 ★ 838KiB