pub struct TextureInfoRef {
pub mapping: TextureMapping,
pub uv_index: u32,
pub blend_factor: f32,
pub operation: TextureOperation,
pub map_modes: [TextureMapMode; 3],
pub flags: TextureFlags,
pub uv_transform: Option<UVTransform>,
pub axis: Option<Vector3D>,
/* private fields */
}Expand description
Information about a texture applied to a material
Fields§
§mapping: TextureMappingTexture mapping mode
uv_index: u32UV channel index
blend_factor: f32Blend factor
operation: TextureOperationTexture operation
map_modes: [TextureMapMode; 3]Texture map modes for U, V, W coordinates
flags: TextureFlagsTexture flags
uv_transform: Option<UVTransform>Optional UV transform
axis: Option<Vector3D>Optional texture mapping axis
Implementations§
Source§impl TextureInfoRef
impl TextureInfoRef
Sourcepub fn path_bytes(&self) -> &[u8] ⓘ
pub fn path_bytes(&self) -> &[u8] ⓘ
Raw bytes of the path (without assuming NUL-termination).
Sourcepub fn into_owned(self) -> TextureInfo
pub fn into_owned(self) -> TextureInfo
Convert into an owned TextureInfo (allocates for the path string).
Sourcepub fn to_owned(&self) -> TextureInfo
pub fn to_owned(&self) -> TextureInfo
Convert into an owned TextureInfo (allocates for the path string).
Trait Implementations§
Source§impl Clone for TextureInfoRef
impl Clone for TextureInfoRef
Source§fn clone(&self) -> TextureInfoRef
fn clone(&self) -> TextureInfoRef
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 moreAuto Trait Implementations§
impl Freeze for TextureInfoRef
impl RefUnwindSafe for TextureInfoRef
impl Send for TextureInfoRef
impl Sync for TextureInfoRef
impl Unpin for TextureInfoRef
impl UnwindSafe for TextureInfoRef
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