Struct glow::ShaderPrecisionFormat
source · pub struct ShaderPrecisionFormat {
pub range_min: i32,
pub range_max: i32,
pub precision: i32,
}
Fields§
§range_min: i32
The base 2 log of the absolute value of the minimum value that can be represented
range_max: i32
The base 2 log of the absolute value of the maximum value that can be represented.
precision: i32
The number of bits of precision that can be represented. For integer formats this value is always 0.
Implementations§
source§impl ShaderPrecisionFormat
impl ShaderPrecisionFormat
sourcepub fn common_desktop_hardware(precision_type: u32, is_embedded: bool) -> Self
pub fn common_desktop_hardware(precision_type: u32, is_embedded: bool) -> Self
Returns OpenGL standard precision that most desktop hardware support
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShaderPrecisionFormat
impl RefUnwindSafe for ShaderPrecisionFormat
impl Send for ShaderPrecisionFormat
impl Sync for ShaderPrecisionFormat
impl Unpin for ShaderPrecisionFormat
impl UnwindSafe for ShaderPrecisionFormat
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