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§
impl Copy for Precision
impl StructuralPartialEq for Precision
Auto Trait Implementations§
impl Freeze for Precision
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)