pub struct TextureResources {
pub texture_indices: Vec<u16>,
pub low_textures: Option<PackedExternalTextures<TextureUsage>>,
pub unk1: u32,
pub chr_textures: Option<ChrTexTextures>,
pub unk: [u32; 2],
}Fields§
§texture_indices: Vec<u16>Index into low_textures for each of the higher resolution textures. This allows assigning higher resolution versions to only some of the textures.
low_textures: Option<PackedExternalTextures<TextureUsage>>Name and data range for each of the Mibl textures.
unk1: u32Always 0.
chr_textures: Option<ChrTexTextures>Only used for Xenoblade 3 and Xenoblade X DE.
Xenoblade 3 models that don’t have chr/tex/nx textures
should still set this to Some with an empty texture list.
Other game versions should set this to None.
unk: [u32; 2]Trait Implementations§
Source§impl BinRead for TextureResources
impl BinRead for TextureResources
Source§type Args<'__binrw_generated_args_lifetime> = TextureResourcesBinReadArgs
type Args<'__binrw_generated_args_lifetime> = TextureResourcesBinReadArgs
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Clone for TextureResources
impl Clone for TextureResources
Source§fn clone(&self) -> TextureResources
fn clone(&self) -> TextureResources
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 moreSource§impl Debug for TextureResources
impl Debug for TextureResources
Source§impl PartialEq for TextureResources
impl PartialEq for TextureResources
Source§impl Xc3Write for TextureResources
impl Xc3Write for TextureResources
Source§type Offsets<'offsets> = TextureResourcesOffsets<'offsets>
type Offsets<'offsets> = TextureResourcesOffsets<'offsets>
The type storing offset data to be used in Xc3WriteOffsets.
Source§fn xc3_write<W: Write + Seek>(
&self,
writer: &mut W,
endian: Endian,
) -> Xc3Result<Self::Offsets<'_>>
fn xc3_write<W: Write + Seek>( &self, writer: &mut W, endian: Endian, ) -> Xc3Result<Self::Offsets<'_>>
Write all fields and placeholder offsets.
This should almost always be derived for non primitive types. Read more
Source§fn should_write(&self) -> Option<bool>
fn should_write(&self) -> Option<bool>
Return
Some(_) if the offset should be updated and
Some(true) if the data should also be written.
Defaults to Some(true).impl StructuralPartialEq for TextureResources
Auto Trait Implementations§
impl Freeze for TextureResources
impl RefUnwindSafe for TextureResources
impl Send for TextureResources
impl Sync for TextureResources
impl Unpin for TextureResources
impl UnwindSafe for TextureResources
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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