ash icon indicating copy to clipboard operation
ash copied to clipboard

Introduce ash-swapchain helper crate

Open Ralith opened this issue 3 years ago • 5 comments

This implements a reusable, lightly-opinionated helper for typical resizable windowed swapchain operation, which is otherwise error-prone.

Ralith avatar Dec 05 '21 22:12 Ralith

I'm now confident the resize handling here is as well-behaved as the presentation API permits. Expanded the doc comments a good bit too.

Ralith avatar Dec 11 '21 19:12 Ralith

A few high level comments:

This would need a readme that quickly explains the purpose of this library (The why and how). Similar to what ash-window has. We should probably also promote our helper crates in the main readme

On another note, should we use this in the ash examples as well?

MaikKlein avatar Dec 24 '21 13:12 MaikKlein

Added a brief README.

On another note, should we use this in the ash examples as well?

I'm kinda tempted to drop ash's current example entirely in favor of something like this demo.rs; if we don't try to teach Vulkan in general and focus on maximal simplicity, the (currently empirically unsustainable) maintenance effort required to keep the example in good shape will be much reduced.

Ralith avatar Dec 24 '21 18:12 Ralith

Replaced the AcquiredFramge::generation: u64 with a AcquiredFrame::invalidate_images: bool to make things a little less opinionated.

Ralith avatar Dec 24 '21 18:12 Ralith

This should be heavily revised to take advantage of VK_EXT_swapchain_maintenance1, which resolves some key ambiguities in the base extension.

Ralith avatar Sep 18 '23 23:09 Ralith