struct UiDraw {
indices: Range<u32>,
texture: TextureKey,
options: TextureOptions,
scissor: ScissorRect,
}Available on crate feature
egui only.Expand description
One uploaded primitive: where its indices sit, what it samples and how it is clipped.
Fields§
§indices: Range<u32>Index range into the index buffer, counting indices.
The indices themselves already name the primitive’s vertices in the
pool, so a draw needs no base_vertex to address them; see
pack_geometry.
texture: TextureKeyThe texture this primitive samples, and the context it came from.
options: TextureOptions§scissor: ScissorRectAuto Trait Implementations§
impl Forget for UiDraw
impl Freeze for UiDraw
impl RefUnwindSafe for UiDraw
impl Send for UiDraw
impl Sync for UiDraw
impl Unpin for UiDraw
impl UnsafeUnpin for UiDraw
impl UnwindSafe for UiDraw
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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