pub struct SpriteDrawCmd<'a> {
pub uniform: SpriteUniform,
pub texture_view: &'a TextureView,
pub blend: SpriteBlendKind,
pub burn: bool,
}Expand description
One sprite ready to draw. The renderer assembles these from the
engine’s SpriteFrame list + the sprite SpritePool.
Fields§
§uniform: SpriteUniform§texture_view: &'a TextureView§blend: SpriteBlendKind§burn: boolBurn-pending: caller treats it identically (one draw); the
flag is forwarded for future fence/persistence hooks (none
today — the quad already lands in render_texture which is
the feedback target, so “burning into the background” is
implicit).
Auto Trait Implementations§
impl<'a> Freeze for SpriteDrawCmd<'a>
impl<'a> !RefUnwindSafe for SpriteDrawCmd<'a>
impl<'a> Send for SpriteDrawCmd<'a>
impl<'a> Sync for SpriteDrawCmd<'a>
impl<'a> Unpin for SpriteDrawCmd<'a>
impl<'a> !UnwindSafe for SpriteDrawCmd<'a>
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> 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