NormalizedRenderTargetExt

Trait NormalizedRenderTargetExt 

Source
pub trait NormalizedRenderTargetExt {
    // Required methods
    fn get_texture_view<'a>(
        &self,
        windows: &'a ExtractedWindows,
        images: &'a RenderAssets<GpuImage>,
        manual_texture_views: &'a ManualTextureViews,
    ) -> Option<&'a TextureView>;
    fn get_texture_format<'a>(
        &self,
        windows: &'a ExtractedWindows,
        images: &'a RenderAssets<GpuImage>,
        manual_texture_views: &'a ManualTextureViews,
    ) -> Option<TextureFormat>;
    fn get_render_target_info<'a>(
        &self,
        resolutions: impl IntoIterator<Item = (Entity, &'a Window)>,
        images: &Assets<Image>,
        manual_texture_views: &ManualTextureViews,
    ) -> Result<RenderTargetInfo, MissingRenderTargetInfoError>;
    fn is_changed(
        &self,
        changed_window_ids: &HashSet<Entity>,
        changed_image_handles: &HashSet<&AssetId<Image>>,
    ) -> bool;
}

Required Methods§

Source

fn get_texture_view<'a>( &self, windows: &'a ExtractedWindows, images: &'a RenderAssets<GpuImage>, manual_texture_views: &'a ManualTextureViews, ) -> Option<&'a TextureView>

Source

fn get_texture_format<'a>( &self, windows: &'a ExtractedWindows, images: &'a RenderAssets<GpuImage>, manual_texture_views: &'a ManualTextureViews, ) -> Option<TextureFormat>

Retrieves the TextureFormat of this render target, if it exists.

Source

fn get_render_target_info<'a>( &self, resolutions: impl IntoIterator<Item = (Entity, &'a Window)>, images: &Assets<Image>, manual_texture_views: &ManualTextureViews, ) -> Result<RenderTargetInfo, MissingRenderTargetInfoError>

Source

fn is_changed( &self, changed_window_ids: &HashSet<Entity>, changed_image_handles: &HashSet<&AssetId<Image>>, ) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NormalizedRenderTargetExt for NormalizedRenderTarget

Source§

fn get_texture_format<'a>( &self, windows: &'a ExtractedWindows, images: &'a RenderAssets<GpuImage>, manual_texture_views: &'a ManualTextureViews, ) -> Option<TextureFormat>

Retrieves the TextureFormat of this render target, if it exists.

Source§

fn get_texture_view<'a>( &self, windows: &'a ExtractedWindows, images: &'a RenderAssets<GpuImage>, manual_texture_views: &'a ManualTextureViews, ) -> Option<&'a TextureView>

Source§

fn get_render_target_info<'a>( &self, resolutions: impl IntoIterator<Item = (Entity, &'a Window)>, images: &Assets<Image>, manual_texture_views: &ManualTextureViews, ) -> Result<RenderTargetInfo, MissingRenderTargetInfoError>

Source§

fn is_changed( &self, changed_window_ids: &HashSet<Entity>, changed_image_handles: &HashSet<&AssetId<Image>>, ) -> bool

Implementors§