#[repr(C)]pub struct ContextDescription {
pub flags: u32,
pub maxRenderSize: Dimensions2D,
pub displaySize: Dimensions2D,
pub callbacks: Interface,
pub device: Device,
pub fpMessage: Message,
}Expand description
A structure encapsulating the parameters required to initialize FidelityFX Super Resolution 2 upscaling.
@ingroup FSR2
Fields§
§flags: u32< A collection of
maxRenderSize: Dimensions2D< The maximum size that rendering will be performed at.
displaySize: Dimensions2D< The size of the presentation resolution targeted by the upscaling process.
callbacks: Interface< A set of pointers to the backend implementation for FSR 2.0.
device: Device< The abstracted device which is passed to some callback functions.
fpMessage: Message< A pointer to a function that can recieve messages from the runtime.
Trait Implementations§
Source§impl Clone for ContextDescription
impl Clone for ContextDescription
Source§fn clone(&self) -> ContextDescription
fn clone(&self) -> ContextDescription
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 ContextDescription
impl Debug for ContextDescription
Source§impl Default for ContextDescription
impl Default for ContextDescription
impl Copy for ContextDescription
Auto Trait Implementations§
impl Freeze for ContextDescription
impl RefUnwindSafe for ContextDescription
impl !Send for ContextDescription
impl !Sync for ContextDescription
impl Unpin for ContextDescription
impl UnwindSafe for ContextDescription
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