#[repr(C)]pub struct GpuGlobals {
pub resolution: [f32; 2],
pub dpr: [f32; 2],
pub origin: [f32; 2],
pub _padding: [f32; 2],
}Fields§
§resolution: [f32; 2]§dpr: [f32; 2]§origin: [f32; 2]§_padding: [f32; 2]Trait Implementations§
Source§impl Clone for GpuGlobals
impl Clone for GpuGlobals
impl Copy for GpuGlobals
Source§impl Debug for GpuGlobals
impl Debug for GpuGlobals
Source§impl Default for GpuGlobals
impl Default for GpuGlobals
impl Pod for GpuGlobals
Auto Trait Implementations§
impl Freeze for GpuGlobals
impl RefUnwindSafe for GpuGlobals
impl Send for GpuGlobals
impl Sync for GpuGlobals
impl Unpin for GpuGlobals
impl UnsafeUnpin for GpuGlobals
impl UnwindSafe for GpuGlobals
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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,
impl<T> NoUninit for Twhere
T: Pod,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.