Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Aug 26, 2023
1 parent 2755eda commit 6bfb96f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions webgpu/lessons/webgpu-copying-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ signature:
```js
encode.copyBufferToTexture(
// details of the destination texture
{ texture, mipLevel: 0, origin: [0, 0, 0], aspect: "all" },

// details of the source buffer
{ buffer, offset: 0, bytesPerRow, rowsPerImage },

// details of the destination texture
{ texture, mipLevel: 0, origin: [0, 0, 0], aspect: "all" },

// size:
[ width, height, depthOrArrayLayers ]
)
Expand Down Expand Up @@ -209,9 +209,9 @@ encode.copyTextureToBuffer(
)
```
This has exactly the same parameters as `copyBufferToTexture`,
It's texture becomes the source and the buffer becomes the
destination. Like `copyTextureToBuffer`, `bytesPerRow` **must be
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
a multiple of 256!!**
* `texture` must have a usage of `GPUTextureUsage.COPY_SRC`
Expand Down

0 comments on commit 6bfb96f

Please sign in to comment.