pub struct UserTexture {
pub name: String,
pub texture: Texture,
pub view: TextureView,
pub width: u32,
pub height: u32,
}Expand description
One GPU-resident user texture.
Fields§
§name: StringCanonicalised name — lowercase stem of the source filename, no
extension. clouds.png → "clouds". Match against the sampler_X
portion of sampler sampler_X; MD2 declarations (lowercased).
texture: Texture§view: TextureView§width: u32§height: u32Implementations§
Auto Trait Implementations§
impl Freeze for UserTexture
impl !RefUnwindSafe for UserTexture
impl Send for UserTexture
impl Sync for UserTexture
impl Unpin for UserTexture
impl !UnwindSafe for UserTexture
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
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