#[repr(C)]pub struct PushConstant {
pub pos: [f32; 3],
pub time: f32,
pub wh: [f32; 2],
pub mouse: [f32; 2],
pub mouse_pressed: u32,
pub frame: u32,
pub time_delta: f32,
pub record_period: f32,
}Fields§
§pos: [f32; 3]§time: f32§wh: [f32; 2]§mouse: [f32; 2]§mouse_pressed: u32§frame: u32§time_delta: f32§record_period: f32Implementations§
Trait Implementations§
Source§impl Clone for PushConstant
impl Clone for PushConstant
Source§fn clone(&self) -> PushConstant
fn clone(&self) -> PushConstant
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PushConstant
impl Debug for PushConstant
Source§impl Default for PushConstant
impl Default for PushConstant
Source§impl Display for PushConstant
impl Display for PushConstant
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 PushConstant
impl Pod for PushConstant
Auto Trait Implementations§
impl Freeze for PushConstant
impl RefUnwindSafe for PushConstant
impl Send for PushConstant
impl Sync for PushConstant
impl Unpin for PushConstant
impl UnwindSafe for PushConstant
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.