pub struct TVec4P<T: Real>(/* private fields */);
Expand description
A wrapper struct that is used to implement std140 packing for the underlying vector
Implementations§
Trait Implementations§
Source§impl<T: Real> From<(T, T, T, T)> for TVec4P<T>
impl<T: Real> From<(T, T, T, T)> for TVec4P<T>
Source§fn from(other: (T, T, T, T)) -> Self
fn from(other: (T, T, T, T)) -> Self
Converts to this type from the input type.
Source§impl<T: Real> Pack for TVec4P<T>
impl<T: Real> Pack for TVec4P<T>
type GLSLOutput = [T; 4]
type HLSLOutput = [T; 4]
type GLSLOutputArray = <TVec4P<T> as Pack>::GLSLOutput
type HLSLOutputArray = <TVec4P<T> as Pack>::HLSLOutput
type CPUOutput = [T; 4]
Source§fn into_packed_glsl(self) -> Self::GLSLOutput
fn into_packed_glsl(self) -> Self::GLSLOutput
Convert the struct into packed data ready to be uploaded and consumed with hlsl standard
conventions. Read more
Source§fn into_packed_hlsl(self) -> Self::HLSLOutput
fn into_packed_hlsl(self) -> Self::HLSLOutput
Convert the struct into packed data ready to be uploaded and consumed with hlsl standard
conventions. Read more
Source§fn into_packed_glsl_array(self) -> Self::GLSLOutputArray
fn into_packed_glsl_array(self) -> Self::GLSLOutputArray
Convert the struct into packed data ready to be uploaded and consumed with hlsl standard
conventions. Read more
Source§fn into_packed_hlsl_array(self) -> Self::HLSLOutputArray
fn into_packed_hlsl_array(self) -> Self::HLSLOutputArray
Convert the struct into packed data ready to be uploaded and consumed with hlsl standard
conventions. Read more
Source§fn into_packed_cpu(self) -> Self::CPUOutput
fn into_packed_cpu(self) -> Self::CPUOutput
Convert the struct into packed data for general purpose use on the CPU. This would be
ideal for things like serialization where you don’t need to conform to special GPU alignment
and padding rules. Read more
impl<T: Copy + Real> Copy for TVec4P<T>
Auto Trait Implementations§
impl<T> Freeze for TVec4P<T>where
T: Freeze,
impl<T> RefUnwindSafe for TVec4P<T>where
T: RefUnwindSafe,
impl<T> Send for TVec4P<T>where
T: Send,
impl<T> Sync for TVec4P<T>where
T: Sync,
impl<T> Unpin for TVec4P<T>where
T: Unpin,
impl<T> UnwindSafe for TVec4P<T>where
T: UnwindSafe,
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