diff --git a/crates/renderer/src/lib.rs b/crates/renderer/src/lib.rs index 05d682b..f0b058f 100644 --- a/crates/renderer/src/lib.rs +++ b/crates/renderer/src/lib.rs @@ -584,6 +584,13 @@ pub struct SwapchainFrame { pub release: vk::Semaphore, } +impl Eq for SwapchainFrame {} +impl PartialEq for SwapchainFrame { + fn eq(&self, other: &Self) -> bool { + self.index == other.index && self.image == other.image + } +} + impl SwapchainFrame { fn present(self, wait: Option) -> Result<()> { self.swapchain.clone().present(self, wait)