Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add intermediary image to Frame for user graphics #242

Merged
merged 4 commits into from
Feb 14, 2019

Conversation

mitchmindtree
Copy link
Member

This new Frame image acts as an intermediary buffer between the user's
graphics and the swapchain image for presentation.

See #224 for more details.

This is a WIP as the draw and ui graphics interop have not been
updated to account for the updated Frame type. Many of the vk_*
examples also still require updating.

This new `Frame` image acts as an intermediary buffer between the user's
graphics and the swapchain image for presentation.

See nannou-org#224 for more details.

This is a WIP as the `draw` and `ui` graphics interop have not been
updated to account for the updated `Frame` type.
This updates the `vk_triangle.rs` example for the addition of the
addition of an intermediary buffer to the `Frame` type.

This also adds a `vk_triangle_raw_frame.rs` example to demonstrate how
to draw directly to the swapchain images as was the previous behaviour.
Creates a `ViewFramebuffer` type to make it easier to manage
framebuffers' whose output image attachment is the image associated with
a `Frame`. The `ViewFramebuffer` type fills a similar role to the
`SwapchainFramebuffers` type but for working with the `Frame` type
rather than the `RawFrame` type.
@mitchmindtree
Copy link
Member Author

@freesig OK I think this PR should be all ready to go now, and simple_ui.rs should be working properly! Let me know how it runs on your machine when you get a chance 👍

@mitchmindtree mitchmindtree changed the title [WIP] Add intermediary image to Frame for user graphics Add intermediary image to Frame for user graphics Feb 13, 2019
@JoshuaBatty
Copy link
Member

Just tested simple_ui.rs on mac and everything is running perfectly again! Also seems to have solved the timing errors we were seeing in #250 :)

@freesig
Copy link
Collaborator

freesig commented Feb 14, 2019

It's working man!!!!!

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.

3 participants