Skip to content

dynamicrenderinglocalread breaks on initial resize for device screens #1267

Description

@SRSaunders

The new dynamicrenderinglocalread example breaks when starting on a non-default window size, for example when deployed to a physical device like an iPhone or the iOS Simulator. It's likely an issue on Android too but I can't test that.

The failure is because the attachment resize logic within setupFrameBuffer() is called immediately by VulkanExampleBase::prepare() and thus createAttachments() and vkUpdateDescriptorSets() are called before the vkCmdPipelineBarrier2KHR function pointer is defined and before the descriptor sets are even allocated.

A small set of changes to the example's resize logic will make this work properly. I will submit a PR to address it.

Activity

  1. SaschaWillems commented on Apr 7, 2026

    @SaschaWillems
    Owner

    I know. It's still work in progress.

  2. SRSaunders commented on Apr 7, 2026

    @SRSaunders
    ContributorAuthor

    I have a PR that fixes that part only. Do you want me to post it?

  3. SRSaunders commented on Apr 7, 2026

    @SRSaunders
    ContributorAuthor

    I posted my proposed change as #1268.

    @SaschaWillems please feel free to accept or disregard if you have your own solution.

  4. SaschaWillems commented on Apr 11, 2026

    @SaschaWillems
    Owner

    Should be fixed by 7bb35f0, which works fine for me on all platforms I can test on

  5. SRSaunders commented on Apr 11, 2026

    @SRSaunders
    ContributorAuthor

    Thanks @SaschaWillems. Your change works fine with iOS.

    I have repurposed my PR to adding the example to the iOS subproject and making it work with the Simulator.

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

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