webxr_api

Trait MainThreadSession

Source
pub trait MainThreadSession: 'static {
    // Required methods
    fn run_one_frame(&mut self);
    fn running(&self) -> bool;
}
Expand description

Devices that need to can run sessions on the main thread.

Required Methods§

Source

fn run_one_frame(&mut self)

Source

fn running(&self) -> bool

Implementors§

Source§

impl<Device> MainThreadSession for SessionThread<Device>
where Device: DeviceAPI,