[−][src]Struct rust_webvr_api::vr_layer::VRLayer
Data provided to a VRDisplay and presented in the HMD.
Fields
texture_id: u32
Source texture whose contents will be presented by the VRDisplay when VRDisplay.submitFrame() is called.
left_bounds: [f32; 4]
UVs defining the texture bounds to present to the eye in UV space: [x,y,w,h] Defaults to [0.0, 0.0, 0.5, 1.0]
right_bounds: [f32; 4]
UVs defining the texture bounds to present to the eye in UV space: [x,y,w,h] Defaults to [0.5, 0.0, 0.5, 1.0]
texture_size: Option<(u32, u32)>
Hint with texture size
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VRLayer
impl Send for VRLayer
impl Sync for VRLayer
impl Unpin for VRLayer
impl UnwindSafe for VRLayer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,