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
impl BinRead for TextureUsage
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>
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>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§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 BinWrite for TextureUsage
impl BinWrite for TextureUsage
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>
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>
Source§fn write<W>(&self, writer: &mut W) -> Result<(), Error>
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer using default arguments. Read moreSource§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming little-endian byte order. Read moreSource§fn write_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer using the given arguments. Read moreSource§impl Clone for TextureUsage
impl Clone for TextureUsage
Source§fn clone(&self) -> TextureUsage
fn clone(&self) -> TextureUsage
Returns a copy 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 TextureUsage
impl Debug for TextureUsage
Source§impl Hash for TextureUsage
impl Hash for TextureUsage
Source§impl PartialEq for TextureUsage
impl PartialEq for TextureUsage
Source§impl Xc3Write for TextureUsage
impl Xc3Write for TextureUsage
Source§type Offsets<'a> = ()
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>
fn xc3_write<W>( &self, writer: &mut W, endian: Endian, ) -> Result<<TextureUsage as Xc3Write>::Offsets<'_>, Error>
Write all fields and placeholder offsets.
This should almost always be derived for non primitive types.
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 Copy for TextureUsage
impl Eq for TextureUsage
impl StructuralPartialEq for TextureUsage
Auto Trait Implementations§
impl Freeze for TextureUsage
impl RefUnwindSafe for TextureUsage
impl Send for TextureUsage
impl Sync for TextureUsage
impl Unpin for TextureUsage
impl UnwindSafe for TextureUsage
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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