Trait RenderTarget

Source
pub trait RenderTarget: Sync + Send {
    // Required method
    fn create_render_target(
        &self,
        extent: [u32; 2],
        anisotropy_texels: f32,
        msaa_samples: u8,
    ) -> GraphicsResult<(Arc<dyn RenderTarget>, Arc<dyn Texture>)>;

    // Provided method
    fn as_vulkan(self: Arc<Self>) -> Option<Arc<VulkanRenderTarget>> { ... }
}
Expand description

Contains resources used to rendering in them

Required Methods§

Source

fn create_render_target( &self, extent: [u32; 2], anisotropy_texels: f32, msaa_samples: u8, ) -> GraphicsResult<(Arc<dyn RenderTarget>, Arc<dyn Texture>)>

Creates child render target from textures

Provided Methods§

Source

fn as_vulkan(self: Arc<Self>) -> Option<Arc<VulkanRenderTarget>>

Implementors§