pub struct SamplerRepeatPot { /* private fields */ }Expand description
A texture sampler that repeats the texture infinitely modulo the texture
dimensions. For performance reasons, SamplerRepeatPot only accepts
textures with dimensions that are powers of two.
Implementations§
Source§impl SamplerRepeatPot
impl SamplerRepeatPot
Sourcepub fn new<C>(tex: &Texture<impl AsSlice2<C>>) -> Self
pub fn new<C>(tex: &Texture<impl AsSlice2<C>>) -> Self
Creates a new SamplerRepeatPot based on the dimensions of tex.
§Panics
If the width or height of tex is not a power of two.
Trait Implementations§
Source§impl Clone for SamplerRepeatPot
impl Clone for SamplerRepeatPot
Source§fn clone(&self) -> SamplerRepeatPot
fn clone(&self) -> SamplerRepeatPot
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 Debug for SamplerRepeatPot
impl Debug for SamplerRepeatPot
impl Copy for SamplerRepeatPot
Auto Trait Implementations§
impl Freeze for SamplerRepeatPot
impl RefUnwindSafe for SamplerRepeatPot
impl Send for SamplerRepeatPot
impl Sync for SamplerRepeatPot
impl Unpin for SamplerRepeatPot
impl UnwindSafe for SamplerRepeatPot
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