pub struct RenderContext<'a> {
pub render_textures: &'a RenderTextures,
pub render_pool: &'a RenderPool,
pub render_packets: &'a RenderPackets,
pub pipelines: &'a PipelinesPool,
pub wgpu_ctx: &'a WgpuContext,
pub resolution_info: &'a ResolutionInfo,
pub clear_color: Color,
pub merged_buffer: Option<&'a VItemsBuffer>,
pub merged_mesh_buffer: Option<&'a MeshItemsBuffer>,
}Fields§
§render_textures: &'a RenderTextures§render_pool: &'a RenderPool§render_packets: &'a RenderPackets§pipelines: &'a PipelinesPool§wgpu_ctx: &'a WgpuContext§resolution_info: &'a ResolutionInfo§clear_color: Color§merged_buffer: Option<&'a VItemsBuffer>Present when using the merged rendering path.
merged_mesh_buffer: Option<&'a MeshItemsBuffer>Present when using the merged mesh rendering path.
Trait Implementations§
Source§impl<'a> Clone for RenderContext<'a>
impl<'a> Clone for RenderContext<'a>
Source§fn clone(&self) -> RenderContext<'a>
fn clone(&self) -> RenderContext<'a>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for RenderContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for RenderContext<'a>
impl<'a> !RefUnwindSafe for RenderContext<'a>
impl<'a> Send for RenderContext<'a>
impl<'a> Sync for RenderContext<'a>
impl<'a> Unpin for RenderContext<'a>
impl<'a> !UnwindSafe for RenderContext<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> StaticAnim for Twhere
T: StaticAnimRequirement + 'static,
impl<T> StaticAnim for Twhere
T: StaticAnimRequirement + 'static,
Source§fn show(&self) -> AnimationCell<T>
fn show(&self) -> AnimationCell<T>
Show the item
Source§fn hide(&self) -> AnimationCell<T>
fn hide(&self) -> AnimationCell<T>
Hide the item