Skip to content

Commit 088fffd

Browse files
committed
Deploying to gh-pages from @ 389827c 🚀
1 parent d02d4bb commit 088fffd

File tree

15 files changed

+3161
-7
lines changed

15 files changed

+3161
-7
lines changed

‎main.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ var aBuffer = {
6363
],
6464
};
6565

66+
var alphaToCoverage = {
67+
name: 'Alpha-to-Coverage',
68+
description: 'Visualizes how alpha-to-coverage translates alpha values into sample coverage on your device. This varies per device; for example, not all devices guarantee that once a sample pops in, it will stay; some devices repeat at 2x2 pixels, others at 4x4; etc. The circles show the 4 samples of each pixel; the background checkerboard shows where the pixels are.',
69+
filename: "sample/alphaToCoverage",
70+
sources: [
71+
{ path: 'main.ts' },
72+
{ path: './renderWithAlphaToCoverage.wgsl' },
73+
{ path: './showMultisampleTexture.wgsl' },
74+
],
75+
};
76+
6677
var animometer = {
6778
name: 'Animometer',
6879
description: 'A WebGPU port of the Animometer MotionMark benchmark.',
@@ -614,10 +625,11 @@ const pageCategories = [
614625
title: 'WebGPU Features',
615626
description: 'Highlights of important WebGPU features.',
616627
samples: {
617-
samplerParameters,
618628
reversedZ,
619629
renderBundles,
620630
occlusionQuery,
631+
samplerParameters,
632+
alphaToCoverage,
621633
},
622634
},
623635
// Samples that demonstrate the GPGPU functionality of WebGPU. These samples generally provide some

‎main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎sample/alphaToCoverage/index.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6+
<title>webgpu-samples: alphaToCoverage</title>
7+
<style>
8+
:root {
9+
color-scheme: light dark;
10+
}
11+
html, body {
12+
margin: 0; /* remove default margin */
13+
height: 100%; /* make body fill the browser window */
14+
display: flex;
15+
place-content: center center;
16+
}
17+
canvas {
18+
width: min(100vw, 100vh);
19+
height: min(100vw, 100vh);
20+
display: block;
21+
}
22+
</style>
23+
<script src="../../third_party/gif.js/gif.js"></script>
24+
<script defer type="module" src="main.js"></script>
25+
<script defer type="module" src="../../js/iframe-helper.js"></script>
26+
</head>
27+
<body>
28+
<canvas></canvas>
29+
</body>
30+
</html>

0 commit comments

Comments
 (0)