Skip to content

Commit aebc920

Browse files
committed
fix title
1 parent 36bd917 commit aebc920

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

examples/scan_example.html

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@
1010
/>
1111
</head>
1212
<body>
13-
<h1>WebGPU Scan / Reduce Primitive Example</h1>
13+
<h1>WebGPU Scan Primitive Example</h1>
1414
<p>
15-
This example calls Gridwise's <code>scan</code> primitive. You can look
16-
at your developer console and see the input and output of this primitive,
17-
and whether the output matches what is expected (in which case the
18-
developer console will indicate "Validation passed").
15+
This example calls Gridwise's <code>scan</code> primitive. You can look at
16+
your developer console and see the input and output of this primitive, and
17+
whether the output matches what is expected (in which case the developer
18+
console will indicate "Validation passed").
1919
</p>
2020
<p>
21-
It computes an exclusive prefix-sum (scan) over an input array of
22-
2<sup>24</sup> i32s, producing an output array of the same length.
23-
In an exclusive scan, output element <em>i</em> is the sum of all input
24-
elements before position <em>i</em>; the first output element is always
25-
the identity value (0 for addition).
21+
It computes an exclusive prefix-sum (scan) over an input array of 2<sup
22+
>24</sup
23+
>
24+
i32s, producing an output array of the same length. In an exclusive scan,
25+
output element <em>i</em> is the sum of all input elements before position
26+
<em>i</em>; the first output element is always the identity value (0 for
27+
addition).
2628
<a
2729
href="https://github.com/gridwise-webgpu/gridwise/blob/main/examples/scan_example.mjs"
2830
>The entire JS source file is in github.</a
@@ -31,8 +33,8 @@ <h1>WebGPU Scan / Reduce Primitive Example</h1>
3133
boilerplate, the important parts follow.
3234
</p>
3335
<p>
34-
First, we declare the scan primitive. We configure its datatype (i32),
35-
the binary operation (sum), and the scan type (exclusive).
36+
First, we declare the scan primitive. We configure its datatype (i32), the
37+
binary operation (sum), and the scan type (exclusive).
3638
</p>
3739
<pre><code class="language-javascript">const datatype = "i32";
3840
const binop = new BinOpAdd({ datatype });

0 commit comments

Comments
 (0)