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§
Sourcefn create_render_target(
&self,
context: &Rc<dyn IVulkanPlatformGraphicsContext>,
) -> Rc<dyn IVulkanRenderTarget>
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".