pub enum Views {
Inline,
Mono(View<Viewer>),
Stereo(View<LeftEye>, View<RightEye>),
StereoCapture(View<LeftEye>, View<RightEye>, View<Capture>),
Cubemap(View<Viewer>, View<CubeLeft>, View<CubeRight>, View<CubeTop>, View<CubeBottom>, View<CubeBack>),
}
Expand description
Whether a device is mono or stereo, and the views it supports.
Variants§
Inline
Mono view for inline VR, viewport and projection matrices are calculated by client
Mono(View<Viewer>)
Stereo(View<LeftEye>, View<RightEye>)
StereoCapture(View<LeftEye>, View<RightEye>, View<Capture>)
Cubemap(View<Viewer>, View<CubeLeft>, View<CubeRight>, View<CubeTop>, View<CubeBottom>, View<CubeBack>)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Views
impl<'de> Deserialize<'de> for Views
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 Views
impl RefUnwindSafe for Views
impl Send for Views
impl Sync for Views
impl Unpin for Views
impl UnwindSafe for Views
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