UVec4

Struct UVec4 

Source
#[repr(C)]
pub struct UVec4 { pub x: u32, pub y: u32, pub z: u32, pub w: u32, }
Expand description

Corresponds to a GLSL uvec4 in std430 layout.

Fields§

§x: u32§y: u32§z: u32§w: u32

Trait Implementations§

Source§

impl Clone for UVec4

Source§

fn clone(&self) -> UVec4

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UVec4

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Glsl for UVec4

Source§

const NAME: &'static str = "uvec4"

The name of this type in GLSL, like vec2 or mat4.
Source§

impl Std430 for UVec4

Source§

const ALIGNMENT: usize = 16usize

The required alignment of the type. Must be a power of two. Read more
Source§

fn as_bytes(&self) -> &[u8]

Casts the type to a byte array. Implementors should not override this method. Read more
Source§

impl Zeroable for UVec4

Source§

fn zeroed() -> Self

Source§

impl Copy for UVec4

Source§

impl Pod for UVec4

Auto Trait Implementations§

§

impl Freeze for UVec4

§

impl RefUnwindSafe for UVec4

§

impl Send for UVec4

§

impl Sync for UVec4

§

impl Unpin for UVec4

§

impl UnwindSafe for UVec4

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsStd430 for T
where T: Std430,

Source§

type Output = T

The std430 version of this value.
Source§

fn as_std430(&self) -> T

Convert this value into the std430 version of itself.
Source§

fn from_std430(value: T) -> T

Converts from std430 version of self to self.
Source§

fn std430_size_static() -> usize

Returns the size of the std430 version of this type. Useful for pre-sizing buffers.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

Source§

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

If this function returns true, then it must be valid to reinterpret bits as &Self.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WriteStd430 for T
where T: AsStd430,

Source§

fn write_std430<W>(&self, writer: &mut Writer<W>) -> Result<usize, Error>
where W: Write,

Writes this value into the given Writer using std430 layout rules. Read more
Source§

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.
Source§

impl<T> AnyBitPattern for T
where T: Pod,

Source§

impl<T> NoUninit for T
where T: Pod,