Enum librashader::presets::ScaleType
source · #[repr(i32)]pub enum ScaleType {
Input = 0,
Absolute = 1,
Viewport = 2,
Original = 3,
}
Available on crate feature
presets
only.Expand description
The scaling type for the shader pass.
Variants§
Input = 0
Scale by the size of the input quad.
Absolute = 1
Scale the framebuffer in absolute units.
Viewport = 2
Scale by the size of the viewport.
Original = 3
Scale by the size of the original input quad.
Trait Implementations§
impl Copy for ScaleType
Auto Trait Implementations§
impl RefUnwindSafe for ScaleType
impl Send for ScaleType
impl Sync for ScaleType
impl Unpin for ScaleType
impl UnwindSafe for ScaleType
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
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.