Skip to main content

ISwapchainImage

Trait ISwapchainImage 

Source
pub trait ISwapchainImage {
    // Required methods
    fn size(&self) -> PixelSize;
    fn last_present(&self) -> Option<SwapchainImagePresentStatus>;
    fn begin_draw(&self);
    fn present(&self);
    fn dispose(&self);
}
Expand description

An image of a composition-backed swapchain.

Required Methods§

Source

fn size(&self) -> PixelSize

Source

fn last_present(&self) -> Option<SwapchainImagePresentStatus>

The state of the last presentation; None when the image has not been presented yet.

Source

fn begin_draw(&self)

Source

fn present(&self)

Source

fn dispose(&self)

Releases the image.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§