fa45f9c433 | ||
---|---|---|
.. | ||
README.md | ||
manifest.json | ||
service-worker.js |
README.md
WebGPU extension sample
This sample demonstrates how to use the WebGPU API to generate a red triangle using an extension service worker.
[!WARNING]
Service worker support in WebGPU is enabled by default in Chrome 124. If you are using Chrome 123, you can still enable this feature by running Chrome with the "Experimental Web Platform Features" flag.
Overview
In this sample, clicking the action button opens a red triangle image in a new tab.
Running this extension
- Clone this repository.
- Load this directory in Chrome as an unpacked extension.
- Pin the extension from the extension menu.
- Click the extension's action icon to open the red triangle in a new tab.