pub enum Precision {
Low,
Medium,
High,
}
Expand description
A precision hint used in GLSL declarations.
Precision hints can be used to either speed up shader execution or control the precision of arithmetic operations.
To use a precision hint simply add it before the type in the declaration.
mediump float a;
The default when no precision is declared is highp
which means that all
operations operate with the type defined width.
For mediump
and lowp
operations follow the spir-v
RelaxedPrecision
decoration semantics.
Variants§
Trait Implementations§
source§impl PartialEq for Precision
impl PartialEq for Precision
impl Copy for Precision
impl StructuralPartialEq for Precision
Auto Trait Implementations§
impl RefUnwindSafe for Precision
impl Send for Precision
impl Sync for Precision
impl Unpin for Precision
impl UnwindSafe for Precision
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