pub enum ResourceSize {
Fixed(u32, u32),
Relative(f32),
Backbuffer,
}Expand description
Size of a render graph resource, possibly relative to the output framebuffer.
Variants§
Fixed(u32, u32)
Absolute pixel dimensions.
Relative(f32)
Scale of the output framebuffer (e.g. 0.5 = half res).
Backbuffer
Same as the output framebuffer.
Trait Implementations§
Source§impl Clone for ResourceSize
impl Clone for ResourceSize
Source§fn clone(&self) -> ResourceSize
fn clone(&self) -> ResourceSize
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 ResourceSize
impl Debug for ResourceSize
impl Copy for ResourceSize
Auto Trait Implementations§
impl Freeze for ResourceSize
impl RefUnwindSafe for ResourceSize
impl Send for ResourceSize
impl Sync for ResourceSize
impl Unpin for ResourceSize
impl UnsafeUnpin for ResourceSize
impl UnwindSafe for ResourceSize
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