Struct pilka_types::PushConstant
source · [−]#[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: f32
Implementations
Trait Implementations
sourceimpl Clone for PushConstant
impl Clone for PushConstant
sourcefn clone(&self) -> PushConstant
fn clone(&self) -> PushConstant
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PushConstant
impl Debug for PushConstant
sourceimpl Default for PushConstant
impl Default for PushConstant
sourceimpl Display for PushConstant
impl Display for PushConstant
sourceimpl From<PushConstant> for Uniform
impl From<PushConstant> for Uniform
sourcefn 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 RefUnwindSafe for PushConstant
impl Send for PushConstant
impl Sync for PushConstant
impl Unpin for PushConstant
impl UnwindSafe for PushConstant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
T: AnyBitPattern,
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
. Read more
sourcefn 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
.