pub struct AppData {
pub fps: f64,
pub delta_time: f64,
pub render_time: f64,
pub update_time: f64,
pub device: Device,
pub queue: Queue,
pub config: SurfaceConfiguration,
pub size: PhysicalSize<u32>,
pub render_pipelines: Vec<RenderPipeline>,
/* private fields */
}Expand description
background data for your App
Fields§
§fps: f64Avg Frames Per Seconds of the last 30 Frames
delta_time: f64time since the last frame in seconds
render_time: f64duration of the the last renderFunction in seconds
update_time: f64duration of the the last renderFunction in seconds
device: Device§queue: Queue§config: SurfaceConfiguration§size: PhysicalSize<u32>§render_pipelines: Vec<RenderPipeline>vec of all RenderPipelines which got created
Auto Trait Implementations§
impl !Freeze for AppData
impl !RefUnwindSafe for AppData
impl Send for AppData
impl Sync for AppData
impl Unpin for AppData
impl !UnwindSafe for AppData
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