Skip to content

Commit

Permalink
Fix "pipeline" typo (#153)
Browse files Browse the repository at this point in the history
* Fix "pipeline" typo

* Fix "pipeline" typo

* Fix "holds"
  • Loading branch information
mfluehr authored Aug 20, 2024
1 parent cf5d545 commit 6f1245f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions webgpu/lessons/webgpu-vertex-buffers.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,14 @@ per instance, the other will hold the `scale`.
});
```

Above we added 2 entries to the `buffers` array on our pipleine description so now there are 3 buffer entries, meaning
Above we added 2 entries to the `buffers` array on our pipeline description so now there are 3 buffer entries, meaning
we're telling WebGPU we'll supply the data in 3 buffers.

For our 2 new entries we set the `stepMode` to `instance`. This means this attribute
will only advance to next value once per instance. The default is `stepMode: 'vertex'`
which advances once per vertex (and starts over for each instance).

We have 2 buffers. The one that hold just `scale` is simple. Just like our
We have 2 buffers. The one that holds just `scale` is simple. Just like our
first buffer that holds `position` it's 2 32 floats per vertex.

Our other buffer holds `color` and `offset` and they're going to be interleaved in the data like this
Expand Down
4 changes: 2 additions & 2 deletions webgpu/lessons/zh_cn/webgpu-vertex-buffers.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,11 @@ struct VSOutput {
});
```

上面我们在 pipleine 描述的缓冲区数组中新添加了 2 项,因此现在有 3 个缓冲区,这意味着我们告诉 WebGPU 我们将在 3 个缓冲区中提供数据。
上面我们在 pipeline 描述的缓冲区数组中新添加了 2 项,因此现在有 3 个缓冲区,这意味着我们告诉 WebGPU 我们将在 3 个缓冲区中提供数据。

对于 2 个新条目,我们将 `stepMode` 设置为 `instance`。这意味着该属性在每个实例中只会前进一次到下一个值。默认值为 `stepMode: 'vertex'` 即每个顶点递进一次(每个实例重新开始)。

Above we added 2 entries to the `buffers` array on our pipleine description so now there are 3 buffer entries, meaning
Above we added 2 entries to the `buffers` array on our pipeline description so now there are 3 buffer entries, meaning
we're telling WebGPU we'll supply the data in 3 buffers.

For our 2 new entires we set the `stepMode` to `instance`. This means this attribute
Expand Down

0 comments on commit 6f1245f

Please sign in to comment.