Skip to main content

IVulkanRenderSession

Trait IVulkanRenderSession 

Source
pub trait IVulkanRenderSession {
    // Required methods
    fn scaling(&self) -> f64;
    fn size(&self) -> PixelSize;
    fn is_y_flipped(&self) -> bool;
    fn image_info(&self) -> VulkanImageInfo;
    fn is_rgba(&self) -> bool;
    fn dispose(&self);
}
Expand description

One frame being rendered with Vulkan. Disposing the session presents the frame.

Required Methods§

Source

fn scaling(&self) -> f64

The scaling from logical units to device pixels.

Source

fn size(&self) -> PixelSize

The size of the image in device pixels.

Source

fn is_y_flipped(&self) -> bool

Whether the first row of the image is its top row.

Source

fn image_info(&self) -> VulkanImageInfo

The image to render to.

Source

fn is_rgba(&self) -> bool

Whether the channels of the image are in the order red, green, blue, alpha (and not blue, green, red, alpha).

Source

fn dispose(&self)

Finishes and presents the frame.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§