pub struct AvatarTexture { /* private fields */ }Expand description
A glTF texture resolving a sampler and image separately.
Implementations§
Source§impl AvatarTexture
impl AvatarTexture
Sourcepub fn new(image_id: ImageId) -> Self
pub fn new(image_id: ImageId) -> Self
Creates a texture that samples image_id with the glTF sampler defaults.
Sourcepub const fn with_sampler(self, sampler: TextureSampler) -> Self
pub const fn with_sampler(self, sampler: TextureSampler) -> Self
Replaces the texture sampler.
Sourcepub fn sampler(&self) -> TextureSampler
pub fn sampler(&self) -> TextureSampler
Returns the renderer-independent sampler state.
Trait Implementations§
Source§impl Clone for AvatarTexture
impl Clone for AvatarTexture
Auto Trait Implementations§
impl Freeze for AvatarTexture
impl RefUnwindSafe for AvatarTexture
impl Send for AvatarTexture
impl Sync for AvatarTexture
impl Unpin for AvatarTexture
impl UnsafeUnpin for AvatarTexture
impl UnwindSafe for AvatarTexture
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