From 667dea3d52a8cf80a5f901a48282681aab5052fa Mon Sep 17 00:00:00 2001 From: Krishna Ayyalasomayajula Date: Sat, 30 May 2026 20:12:04 -0500 Subject: [PATCH] docs: fix Polltype glossary entry to include submission_index field --- docs/concepts/GLOSSARY.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/GLOSSARY.md b/docs/concepts/GLOSSARY.md index ee899ce..ad7ab59 100644 --- a/docs/concepts/GLOSSARY.md +++ b/docs/concepts/GLOSSARY.md @@ -68,7 +68,7 @@ A compiled GPU configuration bundling: [[vertex shader]](#vertex-shader) + [[fra ## Polltype -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. +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 { submission_index, timeout }` can optionally block until a specific command submission completes (via `submission_index: Option`) or until a duration elapses (via `timeout: Option`); passing `None` for both 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