Skip to main content

DynSurfaceTexture

Trait DynSurfaceTexture 

Source
pub trait DynSurfaceTexture:
    DynResource
    + Borrow<dyn DynTexture>
    + Debug {
    // Provided methods
    fn image_id(&self) -> Option<u64> { ... }
    fn awaits_acquire(&self) -> bool { ... }
}

Provided Methods§

Source

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.

Source

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§

Source§

impl DynSurfaceTexture for Resource

Source§

impl DynSurfaceTexture for SurfaceTexture

Available on vulkan only.
Source§

impl DynSurfaceTexture for Texture

Available on gles only.