pub struct Drawable {
pub distance_sort_key: f32,
pub draw_data_payload: DrawDataDrawablePayload,
/* private fields */
}Expand description
A single drawable item within a given crate::renderer::DrawData.
For more details see DrawDataDrawable.
This is an expanded version used for processing/sorting.
Fields§
§distance_sort_key: f32Distance sort key from near (low values) to far (high values).
For draw phases that use camera distances, 0 is regarded as being at the camera with values increasing towards infinity with squared (!!) distance. However, all values from -INF to INF are valid.
See also DrawDataDrawable::distance_sort_key.
draw_data_payload: DrawDataDrawablePayloadTrait Implementations§
impl Copy for Drawable
impl StructuralPartialEq for Drawable
Auto Trait Implementations§
impl Freeze for Drawable
impl RefUnwindSafe for Drawable
impl Send for Drawable
impl Sync for Drawable
impl Unpin for Drawable
impl UnwindSafe for Drawable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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