4 <meta name="viewport" content="width=device-width">
5 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6 <title>WebMetal 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>Web GPU<br>demos</h1>
167 <section class="demos">
169 Here are a collection of simple <a
170 href="https://en.wikipedia.org/wiki/WebGPU">Web GPU</a>
171 examples. They should work in the latest <a
172 href="https://webkit.org/build-archives/">WebKit</a> builds, and
174 href="https://developer.apple.com/safari/technology-preview/">Safari
175 Technology Preview</a> release. The full specification is a work-in-progress on <a
176 href="https://github.com/gpuweb/gpuweb
177 ">GitHub</a>, and the implementation may differ from the current API.
180 Make sure you are on a system with Web GPU enabled. In Safari, first
181 make sure the Developer Menu is visible (Preferences → Advanced),
182 then ensure Develop → Experimental Features → Web GPU is checked.
185 Web GPU is an experimental technology, and you should not browse the entire
186 Web with it enabled for now. It doesn't do much validation of content, and
187 thus may cause some issues with your computer.
189 <div class="example">
190 <a href="hello-triangle.html">
191 <img src="resources/hello-triangle.png"><br>
195 <div class="example">
196 <a href="hello-cube.html">
197 <img src="resources/hello-cube.png"><br>
198 Textured Spinning Cube