Skip to content

Commit 2760703

Browse files
authored
Merge pull request #77 from anchpop/patch-1
Correct playing-with-buffers's claim about `WGPUBufferMapAsyncStatus::Success`
2 parents e84da20 + ddba27f commit 2760703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: basic-3d-rendering/input-geometry/playing-with-buffers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ while (!ready) {
353353
}
354354
```
355355
356-
You could now see `Buffer 2 mapped with status 0` (0 being the value of `BufferMapAsyncStatus::Success`) when running your program. **However**, we never change the `ready` variable to `true`! So the program then **halts forever**... not great. That is why the next section shows how to pass some context to the callback.
356+
You could now see `Buffer 2 mapped with status 1` (1 being the value of `BufferMapAsyncStatus::Success`) when running your program. **However**, we never change the `ready` variable to `true`! So the program then **halts forever**... not great. That is why the next section shows how to pass some context to the callback.
357357
358358
### Mapping context
359359

0 commit comments

Comments
 (0)