docs: fix Polltype glossary entry to match wgpu 29 API
This commit is contained in:
@@ -68,7 +68,7 @@ A compiled GPU configuration bundling: [[vertex shader]](#vertex-shader) + [[fra
|
|||||||
|
|
||||||
## Polltype
|
## Polltype
|
||||||
|
|
||||||
The strategy passed to `device.poll()`. `PollType::Wait` blocks the calling thread until all pending GPU work finishes — equivalent to a fence wait. `PollType::Poll` checks for completed work once and returns immediately, regardless of whether work is done. For the rainbow triangle, `Wait` is correct: we need the GPU to finish the frame before requesting the next surface texture.
|
The strategy passed to `device.poll()`, which processes all completed GPU commands and optionally waits for new work. `PollType::Poll` is non-blocking: it checks for completed work once and returns immediately. `PollType::Wait { timeout }` blocks the calling thread for up to the specified `Duration`; passing `None` as the timeout blocks indefinitely. For the rainbow triangle, `Wait` with a short timeout is correct: we need the GPU to finish the frame before requesting the next surface texture.
|
||||||
|
|
||||||
## Present Mode
|
## Present Mode
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user