pub struct Frame {
pub pose: Option<ViewerPose>,
pub inputs: Vec<InputFrame>,
pub events: Vec<FrameUpdateEvent>,
pub sub_images: Vec<SubImages>,
pub hit_test_results: Vec<HitTestResult>,
pub predicted_display_time: f64,
}
Expand description
The per-frame data that is provided by the device. https://www.w3.org/TR/webxr/#xrframe
Fields§
§pose: Option<ViewerPose>
The pose information of the viewer
inputs: Vec<InputFrame>
Frame information for each connected input source
events: Vec<FrameUpdateEvent>
Events that occur with the frame.
sub_images: Vec<SubImages>
The subimages to render to
hit_test_results: Vec<HitTestResult>
The hit test results for this frame, if any
predicted_display_time: f64
The average point in time this XRFrame is expected to be displayed on the devices’ display
Trait Implementations§
source§impl<'de> Deserialize<'de> for Frame
impl<'de> Deserialize<'de> for Frame
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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