Skip to content

Instantly share code, notes, and snippets.

@munrocket
Last active February 14, 2024 04:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save munrocket/6435975387555072b20122da0afcde14 to your computer and use it in GitHub Desktop.
Save munrocket/6435975387555072b20122da0afcde14 to your computer and use it in GitHub Desktop.
Chrome Canary with WebGPU (for macos or linux)

Check implementation status in your browser and platform

https://github.com/gpuweb/gpuweb/wiki/Implementation-Status#implementation-status

Windows bat ( canary )

chrome --enable-unsafe-webgpu  --host-resolver-rules="MAP *google.com 127.0.0.1" --new-window "https://compute.toys"

MacOS applescript (canary package)

# canary.applescript
if application "Google Chrome Canary" is running then
	tell application "Google Chrome Canary" to quit
	delay 1
end if
do shell script "/Applications/Google\\ Chrome\\ Canary.app/Contents/MacOS/Google\\ Chrome\\ Canary --enable-unsafe-webgpu --enable-dawn-features=use_tint_generator --enable-experimental-webassembly-features --host-resolver-rules=\"MAP *google.com 127.0.0.1\" --new-window \"https://compute.toys\" --user-data-dir=/Users/$USER/Library/Application\\ Support/Google/ChromeCanaryTestUnsecure > /dev/null 2>&1 &"

#hello quad: https://codepen.io/munrocket/pen/qBreZya
#hello compute: https://codepen.io/munrocket/pen/PoedbKV
#!/bin/bash
/home/username/snap/chromium-nigthly/chrome --enable-features=Vulkan,UseSkiaRenderer --enable-unsafe-webgpu  --host-resolver-rules="MAP *google.com 127.0.0.1" --new-window "https://compute.toys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment