pub struct FrameInfo {
pub width: u32,
pub height: u32,
pub pixel_ratio: f32,
pub pixel_scale: f64,
pub pixels_to_gl_units: [f32; 2],
pub camera_moving: bool,
pub terrain: bool,
pub composites_with_frame_depth: bool,
pub drape_lit: bool,
pub has_ground: bool,
pub time_point_ns: Option<i64>,
}Expand description
Snapshot of frame-level parameters (sizes in device pixels).
Fields§
§width: u32§height: u32§pixel_ratio: f32§pixel_scale: f64§pixels_to_gl_units: [f32; 2]§camera_moving: bool§terrain: bool§composites_with_frame_depth: bool§drape_lit: bool§has_ground: bool§time_point_ns: Option<i64>Trait Implementations§
Auto Trait Implementations§
impl Forget for FrameInfo
impl Freeze for FrameInfo
impl Move for FrameInfo
impl RefUnwindSafe for FrameInfo
impl Send for FrameInfo
impl Sync for FrameInfo
impl Unpin for FrameInfo
impl UnsafeUnpin for FrameInfo
impl UnwindSafe for FrameInfo
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