pub struct TextureFields<'a> {
pub texture_format: i32,
pub width: i32,
pub height: i32,
pub platform: i32,
pub platform_blob: Option<&'a [u8]>,
}Expand description
What select() reads of a Texture2D.
Fields§
§texture_format: i32m_TextureFormat.
width: i32m_Width.
height: i32m_Height.
platform: i32The target platform of the SerializedFile that holds the texture
(object_reader.platform, a BuildTarget value).
platform_blob: Option<&'a [u8]>m_PlatformBlob’s bytes, or None where the texture has no such
field (UnityPy’s getattr(..., None)); an empty blob reads as None
does.
Implementations§
Source§impl TextureFields<'_>
impl TextureFields<'_>
Sourcepub fn image_mode(&self) -> Option<Mode>
pub fn image_mode(&self) -> Option<Mode>
The decoded mode, including empty images and Switch’s RGB promotion, without validating sizes, reading data or allocating.
Trait Implementations§
Source§impl<'a> Clone for TextureFields<'a>
impl<'a> Clone for TextureFields<'a>
impl<'a> Copy for TextureFields<'a>
Source§impl<'a> Debug for TextureFields<'a>
impl<'a> Debug for TextureFields<'a>
impl<'a> Eq for TextureFields<'a>
Source§impl<'a> PartialEq for TextureFields<'a>
impl<'a> PartialEq for TextureFields<'a>
impl<'a> StructuralPartialEq for TextureFields<'a>
Auto Trait Implementations§
impl<'a> Forget for TextureFields<'a>
impl<'a> Freeze for TextureFields<'a>
impl<'a> Move for TextureFields<'a>
impl<'a> RefUnwindSafe for TextureFields<'a>
impl<'a> Send for TextureFields<'a>
impl<'a> Sync for TextureFields<'a>
impl<'a> Unpin for TextureFields<'a>
impl<'a> UnsafeUnpin for TextureFields<'a>
impl<'a> UnwindSafe for TextureFields<'a>
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