pub struct Texture {
pub texture: String,
pub texcoord: String,
pub extra: Option<Box<Extra>>,
}
Expand description
A color parameter referencing a texture.
Fields§
§texture: String
The texture to reference.
texcoord: String
A semantic token, which will be referenced within
BindMaterial
to bind an array of texcoords from a
Geometry
instance to the TextureUnit
.
extra: Option<Box<Extra>>
Provides arbitrary additional information about this element.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Texture
impl RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl UnwindSafe for Texture
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