Skip to content

Commit

Permalink
Merge branch 'main' of github.com:eliemichel/LearnWebGPU
Browse files Browse the repository at this point in the history
  • Loading branch information
eliemichel committed Oct 13, 2024
2 parents 59b15f6 + 395d144 commit cd8b18b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion basic-3d-rendering/input-geometry/playing-with-buffers.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ while (!ready) {
}
```
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.
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.
### Mapping context
Expand Down
4 changes: 4 additions & 0 deletions getting-started/hello-webgpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ This is given by the `main` branch of my distribution repository:

- [WebGPU any distribution](https://github.com/eliemichel/WebGPU-distribution/archive/refs/tags/main-v0.2.0-beta1.zip)

```{tip}
The README of that resposity has instructions for how to add it to your project using FetchContent_Declare. If you do that, you will likely be using a newer version of Dawn or wgpu-native than the one this was written against. As a result, the examples in this book may not compile for you. See below for how to download the version this book was written against.
```

**Pros**
- You can have two `build` at the same time, one that uses Dawn and one that uses `wgpu-native`

Expand Down

0 comments on commit cd8b18b

Please sign in to comment.