Skip to content

Explain why renderFinishedSemaphores is sized per swapchain image - #473

Open
gpx1000 wants to merge 1 commit into
KhronosGroup:mainfrom
gpx1000:fix/310-render-finished-semaphore-doc
Open

Explain why renderFinishedSemaphores is sized per swapchain image#473
gpx1000 wants to merge 1 commit into
KhronosGroup:mainfrom
gpx1000:fix/310-render-finished-semaphore-doc

Conversation

@gpx1000

@gpx1000 gpx1000 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Unlike presentCompleteSemaphores/inFlightFences, renderFinishedSemaphores is sized by swapchain image count and indexed by imageIndex, not frameIndex — because the other side of its synchronization is the presentation engine, which only knows about imageIndex. This wasn't explained anywhere, so it looks inconsistent with the "duplicate per frame in flight" pattern taught elsewhere in the chapter. Adds that explanation.

Fixes #310.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

renderFinishedSemaphores incorrectly allocated per swapchain image instead of per frame in flight

1 participant