Skip to content

Commit

Permalink
Merge pull request #79 from seannowotny/patch-1
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
eliemichel authored Oct 13, 2024
2 parents 8e18603 + 3b7cb9e commit 9d2ddcb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ std::cout << "device.maxVertexAttributes: " << supportedLimits.limits.maxVertexA
```
````

The spirit of the [adapter + device](../../getting-started/adapter-and-device/index.md) abstraction provided by WebGPU is to first check on the adapter that it has the capabilities we need, then we **require** the minimal limits we need during the device creation and if the creation succeeds we are **guarantied** to have the limits we asked for.
The spirit of the [adapter + device](../../getting-started/adapter-and-device/index.md) abstraction provided by WebGPU is to first check on the adapter that it has the capabilities we need, then we **require** the minimal limits we need during the device creation and if the creation succeeds we are **guaranteed** to have the limits we asked for.

And we get nothing more than required, so that if we forget to update the initial check when using more vertex buffers, the program fails. With this **good practice**, we limit the cases of *"it worked for me"* where the program runs correctly on your device but not on somebody else's, which can quickly become a nightmare.

Expand Down

0 comments on commit 9d2ddcb

Please sign in to comment.