pub trait DynSurfaceTexture:
DynResource
+ Borrow<dyn DynTexture>
+ Debug {
// Provided methods
fn image_id(&self) -> Option<u64> { ... }
fn awaits_acquire(&self) -> bool { ... }
}Provided Methods§
Sourcefn image_id(&self) -> Option<u64>
fn image_id(&self) -> Option<u64>
Which of the surface’s presentable images this texture is: the same
value each time the surface hands that image out again, until it is
configured anew. None where the backend cannot tell its images
apart.
Sourcefn awaits_acquire(&self) -> bool
fn awaits_acquire(&self) -> bool
Whether no submission has waited for this texture’s acquisition yet, on a backend whose presentation waits for one.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl DynSurfaceTexture for Resource
impl DynSurfaceTexture for SurfaceTexture
Available on
vulkan only.impl DynSurfaceTexture for Texture
Available on
gles only.