pub struct Frame {
pub pose: Option<ViewerPose>,
pub inputs: Vec<InputFrame>,
pub events: Vec<FrameUpdateEvent>,
pub sub_images: Vec<SubImages>,
pub time_ns: u64,
pub sent_time: u64,
pub hit_test_results: Vec<HitTestResult>,
}
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
time_ns: u64
Value of time::precise_time_ns() when frame was obtained
sent_time: u64
The time the frame was sent (only set with the profile feature)
hit_test_results: Vec<HitTestResult>
The hit test results for this frame, if any
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 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