Enum TextureUsage

Source
pub enum TextureUsage {
Show 37 variants Unk0 = 0, Temp = 1_048_576, Unk6 = 1_074_790_400, Nrm = 1_179_648, Unk13 = 131_072, WavePlus = 136_314_882, Col = 2_097_152, Unk8 = 2_162_689, Alp = 2_228_224, Unk = 268_435_456, Unk21 = 269_615_104, Alp2 = 269_484_032, Col2 = 270_532_608, Unk11 = 270_663_680, Unk9 = 272_629_760, Alp3 = 273_678_336, Nrm2 = 273_809_408, Col3 = 274_726_912, Unk3 = 274_857_984, Unk2 = 275_775_488, Unk20 = 287_309_824, Unk17 = 3_276_800, F01 = 403_701_762, Unk4 = 4_194_304, Unk7 = 536_870_912, Unk15 = 537_001_984, Temp2 = 537_919_488, Unk14 = 538_050_560, Col4 = 538_968_064, Alp4 = 539_099_136, Unk12 = 540_147_712, Unk18 = 65_537, Unk19 = 805_306_368, Unk5 = 807_403_520, Unk10 = 807_534_592, VolTex = 811_597_824, Unk16 = 811_728_896,
}
Expand description

Hints on how the texture is used. Actual usage is determined by the shader.

Variants§

§

Unk0 = 0

§

Temp = 1_048_576

MTL, AMB, GLO, SHY, MASK, SPC, DPT, VEL, temp0001, …

§

Unk6 = 1_074_790_400

§

Nrm = 1_179_648

§

Unk13 = 131_072

§

WavePlus = 136_314_882

§

Col = 2_097_152

§

Unk8 = 2_162_689

§

Alp = 2_228_224

§

Unk = 268_435_456

§

Unk21 = 269_615_104

§

Alp2 = 269_484_032

§

Col2 = 270_532_608

§

Unk11 = 270_663_680

§

Unk9 = 272_629_760

§

Alp3 = 273_678_336

§

Nrm2 = 273_809_408

§

Col3 = 274_726_912

§

Unk3 = 274_857_984

§

Unk2 = 275_775_488

§

Unk20 = 287_309_824

§

Unk17 = 3_276_800

§

F01 = 403_701_762

§

Unk4 = 4_194_304

§

Unk7 = 536_870_912

§

Unk15 = 537_001_984

§

Temp2 = 537_919_488

AO, OCL2, temp0000, temp0001, …

§

Unk14 = 538_050_560

§

Col4 = 538_968_064

§

Alp4 = 539_099_136

§

Unk12 = 540_147_712

§

Unk18 = 65_537

§

Unk19 = 805_306_368

§

Unk5 = 807_403_520

§

Unk10 = 807_534_592

§

VolTex = 811_597_824

§

Unk16 = 811_728_896

Trait Implementations§

Source§

impl BinRead for TextureUsage

Source§

type Args<'__binrw_generated_args_lifetime> = ()

The type used for the args parameter of read_args() and read_options(). Read more
Source§

fn read_options<R>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: <TextureUsage as BinRead>::Args<'_>, ) -> Result<TextureUsage, Error>
where R: Read + Seek,

Read Self from the reader using the given Endian and arguments. Read more
Source§

fn read<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self: ReadEndian, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments. Read more
Source§

fn read_be<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming big-endian byte order. Read more
Source§

fn read_le<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming little-endian byte order. Read more
Source§

fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read T from the reader assuming native-endian byte order. Read more
Source§

fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek, Self: ReadEndian,

Read Self from the reader using the given arguments. Read more
Source§

fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming big-endian byte order, using the given arguments. Read more
Source§

fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming little-endian byte order, using the given arguments. Read more
Source§

fn read_ne_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read T from the reader, assuming native-endian byte order, using the given arguments. Read more
Source§

impl BinWrite for TextureUsage

Source§

type Args<'__binrw_generated_args_lifetime> = ()

The type used for the args parameter of write_args() and write_options(). Read more
Source§

fn write_options<W>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: <TextureUsage as BinWrite>::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek,

Write Self to the writer using the given Endian and arguments. Read more
Source§

fn write<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self: WriteEndian, Self::Args<'a>: for<'a> Required,

Write Self to the writer using default arguments. Read more
Source§

fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self::Args<'a>: for<'a> Required,

Write Self to the writer assuming big-endian byte order. Read more
Source§

fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self::Args<'a>: for<'a> Required,

Write Self to the writer assuming little-endian byte order. Read more
Source§

fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek, Self: WriteEndian,

Write Self to the writer using the given arguments. Read more
Source§

fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek,

Write Self to the writer, assuming big-endian byte order, using the given arguments. Read more
Source§

fn write_le_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek,

Write Self to the writer, assuming little-endian byte order, using the given arguments. Read more
Source§

impl Clone for TextureUsage

Source§

fn clone(&self) -> TextureUsage

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TextureUsage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Hash for TextureUsage

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for TextureUsage

Source§

fn eq(&self, other: &TextureUsage) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Xc3Write for TextureUsage

Source§

const ALIGNMENT: u64 = 4u64

The alignment of absolute offsets for this type in bytes.
Source§

type Offsets<'a> = ()

The type storing offset data to be used in Xc3WriteOffsets.
Source§

fn xc3_write<W>( &self, writer: &mut W, endian: Endian, ) -> Result<<TextureUsage as Xc3Write>::Offsets<'_>, Error>
where W: Write + Seek,

Write all fields and placeholder offsets. This should almost always be derived for non primitive types.
Source§

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).
Source§

impl Copy for TextureUsage

Source§

impl Eq for TextureUsage

Source§

impl StructuralPartialEq for TextureUsage

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.