Add SwapchainAcquireFuture::image()

This commit is contained in:
Pierre Krieger 2017-02-17 15:24:40 +01:00
parent b3f2961589
commit 801f91130f

View File

@ -435,6 +435,12 @@ impl SwapchainAcquireFuture {
pub fn image_id(&self) -> usize {
self.id
}
/// Returns the acquired image.
#[inline]
pub fn image(&self) -> Option<Arc<SwapchainImage>> {
self.image.upgrade()
}
}
unsafe impl GpuFuture for SwapchainAcquireFuture {