pub struct UvPrecisionMode(/* private fields */);Expand description
Setting dictating how precisely the UV coordinates should be saved.
Implementations§
Source§impl UvPrecisionMode
impl UvPrecisionMode
Sourcepub fn form_texture_resolution(resolution: f32, pixel_dev: f32) -> Self
pub fn form_texture_resolution(resolution: f32, pixel_dev: f32) -> Self
Creates a new UvPrecisionMode form texture resolution and maximal allowed deviation in pixels.
let mode = UvPrecisionMode::form_texture_resolution(1024.0,0.1);Trait Implementations§
Source§impl Clone for UvPrecisionMode
impl Clone for UvPrecisionMode
Source§fn clone(&self) -> UvPrecisionMode
fn clone(&self) -> UvPrecisionMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for UvPrecisionMode
impl Default for UvPrecisionMode
Source§impl PartialEq for UvPrecisionMode
impl PartialEq for UvPrecisionMode
impl Copy for UvPrecisionMode
impl StructuralPartialEq for UvPrecisionMode
Auto Trait Implementations§
impl Freeze for UvPrecisionMode
impl RefUnwindSafe for UvPrecisionMode
impl Send for UvPrecisionMode
impl Sync for UvPrecisionMode
impl Unpin for UvPrecisionMode
impl UnwindSafe for UvPrecisionMode
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