pub struct TextureRef {
pub texture: Entity,
pub texcoord: u8,
pub wrap: [Wrap; 2],
pub transform: Option<UvTransform>,
pub filters: Filters,
}Expand description
A texture used by a material slot.
Fields§
§texture: EntityThe texture entity (core.texture or core.texture_file), or a core.texture_absent
(crate::TextureAbsent): a texture the source names for this slot that the read could not give. A consumer
treats such a slot as bound to no texture and counts it by the absence’s reason; a viewer shows the absence.
texcoord: u8Which TexCoord(n) stream it samples.
wrap: [Wrap; 2]Wrap along u, then v.
transform: Option<UvTransform>Applied to the coordinates before sampling; None is the identity.
filters: FiltersThe sampler’s filters, as the source states them.
Implementations§
Trait Implementations§
Source§impl Clone for TextureRef
impl Clone for TextureRef
impl Copy for TextureRef
Source§impl Debug for TextureRef
impl Debug for TextureRef
Source§impl PartialEq for TextureRef
impl PartialEq for TextureRef
Source§impl Serialize for TextureRef
impl Serialize for TextureRef
impl StructuralPartialEq for TextureRef
Auto Trait Implementations§
impl Forget for TextureRef
impl Freeze for TextureRef
impl RefUnwindSafe for TextureRef
impl Send for TextureRef
impl Sync for TextureRef
impl Unpin for TextureRef
impl UnsafeUnpin for TextureRef
impl UnwindSafe for TextureRef
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