Skip to main content

IVulkanRenderTargetPlatformSurface

Trait IVulkanRenderTargetPlatformSurface 

Source
pub trait IVulkanRenderTargetPlatformSurface: IPlatformRenderSurface {
    // Required method
    fn create_render_target(
        &self,
        context: &Rc<dyn IVulkanPlatformGraphicsContext>,
    ) -> Rc<dyn IVulkanRenderTarget>;
}
Expand description

A platform render surface that provides its own IVulkanRenderTarget, e.g. an offscreen image-based target that doesn’t involve a swapchain.

A render surface announces that it is one through try_get_surface_kind(TypeId::of::<dyn IVulkanRenderTargetPlatformSurface>()), which returns an Rc<dyn IVulkanRenderTargetPlatformSurface>; see try_get_vulkan_render_target_surface.

This API is private to the framework and its backends.

Required Methods§

Source

fn create_render_target( &self, context: &Rc<dyn IVulkanPlatformGraphicsContext>, ) -> Rc<dyn IVulkanRenderTarget>

Creates the render target of the surface for context.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§