#[repr(C)]pub struct ProjectedLit {
pub sx: i16,
pub sy: i16,
pub sz: u16,
pub r: u8,
pub g: u8,
pub b: u8,
}Expand description
Result of project_lit: screen-space vertex + its computed
lit colour.
Fields§
§sx: i16Screen-space X, post-projection.
sy: i16Screen-space Y.
sz: u16Depth (MAC3 after divide), 0..=0xFFFF.
r: u8GTE-computed RGB after lighting + material modulation.
g: u8Lit green.
b: u8Lit blue.
Trait Implementations§
Source§impl Clone for ProjectedLit
impl Clone for ProjectedLit
Source§fn clone(&self) -> ProjectedLit
fn clone(&self) -> ProjectedLit
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProjectedLit
impl Debug for ProjectedLit
Source§impl Default for ProjectedLit
impl Default for ProjectedLit
Source§fn default() -> ProjectedLit
fn default() -> ProjectedLit
Returns the “default value” for a type. Read more
Source§impl PartialEq for ProjectedLit
impl PartialEq for ProjectedLit
impl Copy for ProjectedLit
impl Eq for ProjectedLit
impl StructuralPartialEq for ProjectedLit
Auto Trait Implementations§
impl Freeze for ProjectedLit
impl RefUnwindSafe for ProjectedLit
impl Send for ProjectedLit
impl Sync for ProjectedLit
impl Unpin for ProjectedLit
impl UnsafeUnpin for ProjectedLit
impl UnwindSafe for ProjectedLit
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)