Enum naga::front::glsl::Precision [−][src]
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
lowp
precision
mediump
precision
highp
precision
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Precision
impl UnwindSafe for Precision
Blanket Implementations
Mutably borrows from an owned value. Read more