Skip to main content

frame_controls

Function frame_controls 

Source
pub fn frame_controls(motion: Option<&Texture>, reset: bool, style: u8) -> u64
Expand description

Per-frame inputs for the host’s frame pass (DLSS5-NR when the user enabled it): call once per frame before presenting. motion is an Rg32Float texture of the surface’s size (COPY_SRC) of per-pixel offsets, in pixels, to the previous frame’s position (see sg_abi::gpu::FrameControls). Returns a sg_abi::gpu::frame_controls status.