Skip to content

[Potential Bug] Render Complete Semaphore is specified using currentFrame rather than imageIndex which can cause sync validation errors. #90

@Mjrlun

Description

@Mjrlun

As title suggests. I noticed this after comparing my work with yours (having previously followed the tutorial before), and having conferred with someone in the Vulkan discord.

The solution would be to create an array of Semaphores and access them using the imageIndex passed back from acquireNextImage, in place of the current renderCompleteSemaphore within the SyncSemaphores record.
You could also do the same by specially accessing the SyncSemaphores array for the render complete semaphore: syncSemaphores[imageIndex].renderCompleteSemaphore().vkSemaphore

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions