VulkanSwapperExt

Trait VulkanSwapperExt 

Source
pub trait VulkanSwapperExt: IsA<VulkanSwapper> + 'static {
    // Provided methods
    fn choose_queue(
        &self,
        available_queue: Option<&impl IsA<VulkanQueue>>,
    ) -> Result<(), Error> { ... }
    fn supported_caps(&self) -> Result<Caps, Error> { ... }
    fn render_buffer(&self, buffer: &Buffer) -> Result<(), Error> { ... }
    fn set_caps(&self, caps: &Caps) -> Result<(), Error> { ... }
    fn is_force_aspect_ratio(&self) -> bool { ... }
    fn set_force_aspect_ratio(&self, force_aspect_ratio: bool) { ... }
    fn connect_force_aspect_ratio_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all VulkanSwapper methods.

§Implementors

VulkanSwapper

Provided Methods§

Source

fn choose_queue( &self, available_queue: Option<&impl IsA<VulkanQueue>>, ) -> Result<(), Error>

§available_queue

a VulkanQueue chosen elsewhere

Source

fn supported_caps(&self) -> Result<Caps, Error>

Source

fn render_buffer(&self, buffer: &Buffer) -> Result<(), Error>

Source

fn set_caps(&self, caps: &Caps) -> Result<(), Error>

Source

fn is_force_aspect_ratio(&self) -> bool

Source

fn set_force_aspect_ratio(&self, force_aspect_ratio: bool)

Source

fn connect_force_aspect_ratio_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§