DispatchDescription

Struct DispatchDescription 

Source
#[repr(C)]
pub struct DispatchDescription {
Show 26 fields pub commandList: CommandList, pub color: Resource, pub depth: Resource, pub motionVectors: Resource, pub exposure: Resource, pub reactive: Resource, pub transparencyAndComposition: Resource, pub output: Resource, pub jitterOffset: FloatCoords2D, pub motionVectorScale: FloatCoords2D, pub renderSize: Dimensions2D, pub enableSharpening: bool, pub sharpness: f32, pub frameTimeDelta: f32, pub preExposure: f32, pub reset: bool, pub cameraNear: f32, pub cameraFar: f32, pub cameraFovAngleVertical: f32, pub viewSpaceToMetersFactor: f32, pub enableAutoReactive: bool, pub colorOpaqueOnly: Resource, pub autoTcThreshold: f32, pub autoTcScale: f32, pub autoReactiveScale: f32, pub autoReactiveMax: f32,
}
Expand description

A structure encapsulating the parameters for dispatching the various passes of FidelityFX Super Resolution 2.

@ingroup FSR2

Fields§

§commandList: CommandList

< The FfxCommandList to record FSR2 rendering commands into.

§color: Resource

< A FfxResource containing the color buffer for the current frame (at render resolution).

§depth: Resource

< A FfxResource containing 32bit depth values for the current frame (at render resolution).

§motionVectors: Resource

< A FfxResource containing 2-dimensional motion vectors (at render resolution if FFX_FSR2_ENABLE_DISPLAY_RESOLUTION_MOTION_VECTORS is not set).

§exposure: Resource

< A optional FfxResource containing a 1x1 exposure value.

§reactive: Resource

< A optional FfxResource containing alpha value of reactive objects in the scene.

§transparencyAndComposition: Resource

< A optional FfxResource containing alpha value of special objects in the scene.

§output: Resource

< A FfxResource containing the output color buffer for the current frame (at presentation resolution).

§jitterOffset: FloatCoords2D

< The subpixel jitter offset applied to the camera.

§motionVectorScale: FloatCoords2D

< The scale factor to apply to motion vectors.

§renderSize: Dimensions2D

< The resolution that was used for rendering the input resources.

§enableSharpening: bool

< Enable an additional sharpening pass.

§sharpness: f32

< The sharpness value between 0 and 1, where 0 is no additional sharpness and 1 is maximum additional sharpness.

§frameTimeDelta: f32

< The time elapsed since the last frame (expressed in milliseconds).

§preExposure: f32

< The pre exposure value (must be > 0.0f)

§reset: bool

< A boolean value which when set to true, indicates the camera has moved discontinuously.

§cameraNear: f32

< The distance to the near plane of the camera.

§cameraFar: f32

< The distance to the far plane of the camera. This is used only used in case of non infinite depth.

§cameraFovAngleVertical: f32

< The camera angle field of view in the vertical direction (expressed in radians).

§viewSpaceToMetersFactor: f32

< The scale factor to convert view space units to meters

§enableAutoReactive: bool

< A boolean value to indicate internal reactive autogeneration should be used

§colorOpaqueOnly: Resource

< A FfxResource containing the opaque only color buffer for the current frame (at render resolution).

§autoTcThreshold: f32

< Cutoff value for TC

§autoTcScale: f32

< A value to scale the transparency and composition mask

§autoReactiveScale: f32

< A value to scale the reactive mask

§autoReactiveMax: f32

< A value to clamp the reactive mask

Trait Implementations§

Source§

impl Default for DispatchDescription

Source§

fn default() -> Self

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

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<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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.