From dcccbd8107fe270eb796c25a0546bf80827e5c84 Mon Sep 17 00:00:00 2001 From: Lachlan Sneff Date: Fri, 20 Mar 2020 14:33:29 -0400 Subject: [PATCH] Note that `get_next_texture` will error if a previous output is still alive. --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 5bd5a04808..6f0dec1801 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1479,7 +1479,8 @@ impl SwapChain { /// When the [`SwapChainOutput`] returned by this method is dropped, the swapchain will present /// the texture to the associated [`Surface`]. /// - /// Returns an `Err` if the GPU timed out when attempting to acquire the next texture. + /// Returns an `Err` if the GPU timed out when attempting to acquire the next texture or if a + /// previous output is still alive. pub fn get_next_texture(&mut self) -> Result { let output = wgn::wgpu_swap_chain_get_next_texture(self.id); if output.view_id == wgc::id::Id::ERROR {