pub struct FrameControls {
pub motion: Option<Id>,
pub reset: bool,
pub style: u8,
}Expand description
Inputs a game gives the host’s frame pass for the next presented frame.
motion: an Rg32Float texture of the surface’s size with COPY_SRC usage holding,
per output pixel, the offset in pixels to where that point was in the previous
presented frame (prev = cur + mv, +x right, +y down). Without motion vectors the
pass has no temporal history (every frame is a first frame).
Fields§
§motion: Option<Id>§reset: boolDrop the temporal history (a camera cut, teleport, respawn, world change).
style: u8The pass’s style preset, 0..=2 (clamped).
Trait Implementations§
Source§impl Clone for FrameControls
impl Clone for FrameControls
Source§fn clone(&self) -> FrameControls
fn clone(&self) -> FrameControls
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameControls
impl Debug for FrameControls
Source§impl Default for FrameControls
impl Default for FrameControls
Source§fn default() -> FrameControls
fn default() -> FrameControls
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FrameControls
impl<'de> Deserialize<'de> for FrameControls
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
Source§impl PartialEq for FrameControls
impl PartialEq for FrameControls
Source§impl Serialize for FrameControls
impl Serialize for FrameControls
impl StructuralPartialEq for FrameControls
Auto Trait Implementations§
impl Freeze for FrameControls
impl RefUnwindSafe for FrameControls
impl Send for FrameControls
impl Sync for FrameControls
impl Unpin for FrameControls
impl UnsafeUnpin for FrameControls
impl UnwindSafe for FrameControls
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