#[repr(C)]pub struct Uniform {
pub pos: [f32; 3],
pub wh: [f32; 2],
pub mouse: [f32; 2],
pub mouse_pressed: u32,
pub time: f32,
pub time_delta: f32,
pub frame: u32,
pub record_period: f32,
/* private fields */
}Fields§
§pos: [f32; 3]§wh: [f32; 2]§mouse: [f32; 2]§mouse_pressed: u32§time: f32§time_delta: f32§frame: u32§record_period: f32Trait Implementations§
Source§impl From<PushConstant> for Uniform
impl From<PushConstant> for Uniform
Source§fn from(_: PushConstant) -> Self
fn from(_: PushConstant) -> Self
Converts to this type from the input type.
impl Copy for Uniform
impl Pod for Uniform
Auto Trait Implementations§
impl Freeze for Uniform
impl RefUnwindSafe for Uniform
impl Send for Uniform
impl Sync for Uniform
impl Unpin for Uniform
impl UnwindSafe for Uniform
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.