#[repr(C)]pub struct FxInstance {
pub pos: [f32; 3],
pub size: f32,
pub color: [f32; 4],
}Expand description
Ein Teilchen für die Render-Schiene (Box B füllt daraus die Billboard-Charge). Reine Daten, keine Lebensdauer mehr.
Speicherbild: 32 Byte, Ausrichtung 4 — direkt als Instanz-Stream
in einen GPU-Buffer kopierbar (FxWorld::charge_bytes).
Fields§
§pos: [f32; 3]§size: f32§color: [f32; 4]Trait Implementations§
Source§impl Clone for FxInstance
impl Clone for FxInstance
Source§fn clone(&self) -> FxInstance
fn clone(&self) -> FxInstance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FxInstance
Source§impl Debug for FxInstance
impl Debug for FxInstance
Source§impl PartialEq for FxInstance
impl PartialEq for FxInstance
Source§fn eq(&self, other: &FxInstance) -> bool
fn eq(&self, other: &FxInstance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FxInstance
Auto Trait Implementations§
impl Freeze for FxInstance
impl RefUnwindSafe for FxInstance
impl Send for FxInstance
impl Sync for FxInstance
impl Unpin for FxInstance
impl UnsafeUnpin for FxInstance
impl UnwindSafe for FxInstance
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