mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2025-02-18 10:02:29 +00:00
Add SwapchainAcquireFuture::image()
This commit is contained in:
parent
b3f2961589
commit
801f91130f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user