[][src]Struct shader_types::ArrayMember

#[repr(C, align(16))]pub struct ArrayMember<T>(pub T);

Pads an element to be in an array in a shader.

All elements in arrays need to be aligned to 16 bytes. This automatically aligns your types to 16 bytes.

This glsl:

struct FloatArray {
    float array[45];
};

turns into:

#[repr(C)]
struct FloatArray {
    array: [shader_types::ArrayMember<f32>; 45]
}

Trait Implementations

impl<T: Clone> Clone for ArrayMember<T>[src]

impl<T: Copy> Copy for ArrayMember<T>[src]

impl<T: Debug> Debug for ArrayMember<T>[src]

impl<T: Default> Default for ArrayMember<T>[src]

impl<T: Eq> Eq for ArrayMember<T>[src]

impl<T: Hash> Hash for ArrayMember<T>[src]

impl<T: Ord> Ord for ArrayMember<T>[src]

impl<T: PartialEq> PartialEq<ArrayMember<T>> for ArrayMember<T>[src]

impl<T: PartialOrd> PartialOrd<ArrayMember<T>> for ArrayMember<T>[src]

impl<T> StructuralEq for ArrayMember<T>[src]

impl<T> StructuralPartialEq for ArrayMember<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for ArrayMember<T> where
    T: RefUnwindSafe

impl<T> Send for ArrayMember<T> where
    T: Send

impl<T> Sync for ArrayMember<T> where
    T: Sync

impl<T> Unpin for ArrayMember<T> where
    T: Unpin

impl<T> UnwindSafe for ArrayMember<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.