pub struct SensorUniformInputs {
pub gyroscope: [f32; 3],
pub accelerometer: [f32; 3],
pub accelerometer_rest: [f32; 3],
}Expand description
Three-axis sensor readings bound to the shader as vec3 uniforms.
Fields§
§gyroscope: [f32; 3]Gyroscope (x, y, z)
accelerometer: [f32; 3]Accelerometer (x, y, z)
accelerometer_rest: [f32; 3]AccelerometerRest (Device position at launch / resume) (x, y, z)
Auto Trait Implementations§
impl Freeze for SensorUniformInputs
impl RefUnwindSafe for SensorUniformInputs
impl Send for SensorUniformInputs
impl Sync for SensorUniformInputs
impl Unpin for SensorUniformInputs
impl UnsafeUnpin for SensorUniformInputs
impl UnwindSafe for SensorUniformInputs
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more