4 <meta name="viewport" content="width=device-width">
5 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6 <title>WebGPU demos</title>
7 <link rel="stylesheet" href="https://webkit.org/wp-content/themes/webkit/style.css">
8 <link rel="stylesheet" href="https://www.apple.com/wss/fonts?family=Myriad+Set+Pro&v=1">
11 --back: rgb(130, 130, 126);
12 --dark: rgb(65, 65, 63);
13 --sub-highlight: rgb(148, 176, 83);
14 --highlight: rgb(189, 235, 7);
15 --body: rgb(224, 224, 224);
16 --body-darker: rgb(204, 204, 204);
20 background-color: var(--body);
30 background-color: var(--back);
44 animation: spin 60s infinite linear;
49 transform: rotate(0deg);
52 transform: rotate(360deg);
65 text-shadow: 0px 2px 0px var(--back);
71 grid-template-columns: 16vw 16vw 16vw;
81 text-decoration: none;
82 color: var(--sub-highlight);
99 border: 2px solid var(--sub-highlight);
100 background-color: var(--highlight);
105 border: 2px solid var(--sub-highlight);
108 background-color: var(--body-darker);
112 background-color: black;
113 border: 1px solid black;
114 box-sizing: border-box;
120 text-decoration: none;
124 @media only screen and (max-width: 600px) {
146 grid-template-columns: 90vw;
150 .intro, .howto, .warning {
164 <img src="resources/circle.svg">
165 <h1>WebGPU<br>demos</h1>
167 <section class="demos">
169 Here are a collection of simple <a
170 href="https://en.wikipedia.org/wiki/WebGPU">WebGPU</a>
171 examples. They should work in the latest <a
172 href="https://webkit.org/build-archives/">WebKit</a> builds and
173 <a href="https://developer.apple.com/safari/technology-preview/">Safari
174 Technology Preview</a> release. The full <a href="https://gpuweb.github.io/gpuweb/">specification</a> is a work-in-progress on <a
175 href="https://github.com/gpuweb/gpuweb
176 ">GitHub</a>, and the implementation may differ from the current API.
179 Make sure you are on a system with WebGPU enabled. In Safari, first
180 make sure the Developer Menu is visible (Preferences → Advanced),
181 then ensure Develop → Experimental Features → WebGPU is checked.
184 WebGPU is an experimental technology, and you should not browse the entire
185 Web with it enabled for now. It doesn't do much validation of content, and
186 thus may cause some issues with your computer.
188 <div class="example">
189 <a href="hello-triangle.html">
190 <img src="resources/hello-triangle.png"><br>
194 <div class="example">
195 <a href="hello-cube.html">
196 <img src = "resources/hello-cube.png"><br>
200 <div class="example">
201 <a href="textured-cube.html">
202 <img src="resources/textured-cube.png"><br>
203 Textured Spinning Cube
206 <div class="example">
207 <a href="compute-blur.html">
208 <img src="resources/compute-blur.png"><br>