Struct nuance::Globals [−][src]
pub struct Globals {
pub resolution: Vector2<u32>,
pub mouse: Vector2<u32>,
pub mouse_wheel: f32,
pub ratio: f32,
pub time: f32,
pub frame: u32,
}
Expand description
The globals we pass to the fragment shader
Fields
resolution: Vector2<u32>
Window resolution
mouse: Vector2<u32>
Mouse pos
mouse_wheel: f32
Mouse wheel
ratio: f32
Draw area width/height ratio
time: f32
Current running time in sec
frame: u32
Number of frame
Implementations
Trait Implementations
type Std430Type = Std430Globals
type Std430Type = Std430Globals
The std430
version of this value.
Convert this value into the std430
version of itself.
Converts from std430
version of self to self.
Returns the size of the std430
version of this type. Useful for
pre-sizing buffers. Read more
Auto Trait Implementations
impl RefUnwindSafe for Globals
impl UnwindSafe for Globals
Blanket Implementations
Mutably borrows from an owned value. Read more
type Err = Infallible
pub fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
The space required to write this value using std430
layout rules. This
does not include alignment padding that may be needed before or after
this type when written as part of a larger buffer. Read more