pub struct TessFactor {
pub n_u: u32,
pub n_v: u32,
}Expand description
Tessellation factor (level of detail) for the compute mesher.
n_u angular steps around the surface and n_v steps along it. Higher
values produce more triangles and a rounder silhouette at the cost of a
larger vertex buffer; for a cylinder the chord error of the circular cross
section falls off as 1 - cos(π / n_u).
Fields§
§n_u: u32Angular subdivisions around the surface (clamped to [3, MAX_TESS]).
n_v: u32Axial subdivisions along the surface (clamped to [1, MAX_TESS]).
Implementations§
Trait Implementations§
Source§impl Clone for TessFactor
impl Clone for TessFactor
Source§fn clone(&self) -> TessFactor
fn clone(&self) -> TessFactor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TessFactor
Auto Trait Implementations§
impl Freeze for TessFactor
impl RefUnwindSafe for TessFactor
impl Send for TessFactor
impl Sync for TessFactor
impl Unpin for TessFactor
impl UnsafeUnpin for TessFactor
impl UnwindSafe for TessFactor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more