#[repr(C)]pub struct IVec4 {
pub x: i32,
pub y: i32,
pub z: i32,
pub w: i32,
}Expand description
Corresponds to a GLSL ivec4 in std430 layout.
Fields§
§x: i32§y: i32§z: i32§w: i32Trait Implementations§
impl Copy for IVec4
impl Pod for IVec4
Auto Trait Implementations§
impl Freeze for IVec4
impl RefUnwindSafe for IVec4
impl Send for IVec4
impl Sync for IVec4
impl Unpin for IVec4
impl UnwindSafe for IVec4
Blanket Implementations§
Source§impl<T> AsStd430 for Twhere
T: Std430,
impl<T> AsStd430 for Twhere
T: Std430,
Source§fn from_std430(value: T) -> T
fn from_std430(value: T) -> T
Converts from
std430 version of self to self.Source§fn std430_size_static() -> usize
fn std430_size_static() -> usize
Returns the size of the
std430 version of this type. Useful for
pre-sizing buffers.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.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.Source§impl<T> WriteStd430 for Twhere
T: AsStd430,
impl<T> WriteStd430 for Twhere
T: AsStd430,
Source§fn std430_size(&self) -> usize
fn std430_size(&self) -> usize
The space required to write this value using
std430 layout rules. This
does not include alignment padding that may be needed before or after
this type when written as part of a larger buffer.