Skip to main content

DlssRrFrameConstants

Struct DlssRrFrameConstants 

Source
#[repr(C)]
pub struct DlssRrFrameConstants {
Show 18 fields pub camera_view_to_clip: [f32; 16], pub clip_to_camera_view: [f32; 16], pub clip_to_prev_clip: [f32; 16], pub prev_clip_to_clip: [f32; 16], pub world_to_camera_view: [f32; 16], pub camera_view_to_world: [f32; 16], pub jitter_offset: [f32; 2], pub mvec_scale: [f32; 2], pub camera_pos: [f32; 3], pub camera_near: f32, pub camera_up: [f32; 3], pub camera_far: f32, pub camera_right: [f32; 3], pub camera_fov: f32, pub camera_forward: [f32; 3], pub camera_aspect_ratio: f32, pub frame_index: u32, pub reset: u32,
}

Fields§

§camera_view_to_clip: [f32; 16]§clip_to_camera_view: [f32; 16]§clip_to_prev_clip: [f32; 16]§prev_clip_to_clip: [f32; 16]§world_to_camera_view: [f32; 16]§camera_view_to_world: [f32; 16]§jitter_offset: [f32; 2]§mvec_scale: [f32; 2]

Per-axis multiplier converting stored motion vectors to render-pixel displacement. Use [1.0, 1.0] for pixel-space vectors, or [render_width, render_height] for UV-space vectors (with signs adjusted to the input convention). NGX converts each zero axis (including negative zero) to an effective 1.0. Thus the derived default [0.0, 0.0] has effective unity scaling.

§camera_pos: [f32; 3]§camera_near: f32§camera_up: [f32; 3]§camera_far: f32§camera_right: [f32; 3]§camera_fov: f32§camera_forward: [f32; 3]§camera_aspect_ratio: f32§frame_index: u32§reset: u32

Trait Implementations§

Source§

impl Clone for DlssRrFrameConstants

Source§

fn clone(&self) -> DlssRrFrameConstants

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for DlssRrFrameConstants

Source§

impl Debug for DlssRrFrameConstants

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DlssRrFrameConstants

Source§

fn default() -> DlssRrFrameConstants

Returns the “default value” for a type. Read more
Source§

impl PartialEq for DlssRrFrameConstants

Source§

fn eq(&self, other: &DlssRrFrameConstants) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DlssRrFrameConstants

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.