pub struct DrawContext<'a, 'encoder> {
pub store: RenderFnStore<'a>,
pub encoder: &'encoder mut CommandEncoder,
pub queue: &'encoder mut RenderNodeQueue,
pub screen: ScreenRect,
pub vertex_stream: &'a mut BufferStream<'static>,
pub index_stream: &'a mut BufferStream<'static>,
}Expand description
DrawContext contains reference to backend, resources store, and stream for component data preparing
Fields§
§store: RenderFnStore<'a>§encoder: &'encoder mut CommandEncoder§queue: &'encoder mut RenderNodeQueue§screen: ScreenRect§vertex_stream: &'a mut BufferStream<'static>§index_stream: &'a mut BufferStream<'static>Auto Trait Implementations§
impl<'a, 'encoder> Freeze for DrawContext<'a, 'encoder>
impl<'a, 'encoder> !RefUnwindSafe for DrawContext<'a, 'encoder>
impl<'a, 'encoder> !Send for DrawContext<'a, 'encoder>
impl<'a, 'encoder> !Sync for DrawContext<'a, 'encoder>
impl<'a, 'encoder> Unpin for DrawContext<'a, 'encoder>
impl<'a, 'encoder> !UnwindSafe for DrawContext<'a, 'encoder>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more