Skip to main content

IVulkanRenderTarget

Trait IVulkanRenderTarget 

Source
pub trait IVulkanRenderTarget: IPlatformRenderSurfaceRenderTarget {
    // Required methods
    fn begin_draw(&self) -> Rc<dyn IVulkanRenderSession>;
    fn dispose(&self);
}
Expand description

The Vulkan render target of a surface.

The contract is implemented by this crate and by surfaces that provide their own render target.

Required Methods§

Source

fn begin_draw(&self) -> Rc<dyn IVulkanRenderSession>

Starts rendering a frame.

§Panics

Panics when the image to render to cannot be created.

Source

fn dispose(&self)

Releases the render target.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§