Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 10, 2025
1 parent faef59c commit 89ea371
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-copying-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ encoder.copyTextureToBuffer(
This has similar parameters to `copyBufferToTexture`
just the texture (now the source) and the buffer (now the destination)
are swapped. Like `copyTextureToBuffer`, `bytesPerRow` **must be
are swapped. Like `copyBufferToTexture`, `bytesPerRow` **must be
a multiple of 256!!**
* `texture` must have a usage of `GPUTextureUsage.COPY_SRC`
Expand All @@ -255,7 +255,7 @@ must only differ by the suffix `'-srgb'`.
signature:
```js
encoder.copyTextureToBuffer(
encoder.copyTextureToTexture(
// details of the source texture
src: { texture, mipLevel: 0, origin: [0, 0, 0], aspect: "all" },

Expand Down
4 changes: 2 additions & 2 deletions webgpu/webgpu-vertex-buffers-index-buffer.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@

// 2 vertices per subdivision
//
// 0 2 4 6 8 ...
//
// 1 3 5 7 9 ...
//
// 0 2 4 6 8 ...
for (let i = 0; i <= numSubdivisions; ++i) {
const angle = startAngle + (i + 0) * (endAngle - startAngle) / numSubdivisions;

Expand Down

0 comments on commit 89ea371

Please sign in to comment.