#[repr(u8)]pub enum VertexType {
Show 15 variants
Single1 = 0,
Single2 = 1,
Single3 = 2,
Single4 = 3,
Byte4 = 5,
Short2 = 6,
Short4 = 7,
ByteFloat4 = 8,
Short2n = 9,
Short4n = 10,
Half2 = 13,
Half4 = 14,
UnkPS3 = 15,
UnsignedShort2 = 16,
UnsignedShort4 = 17,
}Expand description
The format of the vertex stream.
Variants§
Single1 = 0
1 32-bit float
Single2 = 1
2 32-bit floats
Single3 = 2
3 32-bit floats
Single4 = 3
4 32-bit floats
Byte4 = 5
4 bytes
Short2 = 6
2 16-bit signed integers
Short4 = 7
4 16-bit signed integers
ByteFloat4 = 8
4 8-bit floats
Short2n = 9
Duplicate of Short2?
Short4n = 10
Duplicate of Short4?
Half2 = 13
2 16-bit floats
Half4 = 14
4 16-bit floats
UnkPS3 = 15
Seen on PS3, unsure of what this is. xivModdingFramework calls this “Compress”.
UnsignedShort2 = 16
2 16-bit unsigned integers
UnsignedShort4 = 17
4 16-bit unsigned integers
Trait Implementations§
Source§impl BinRead for VertexType
impl BinRead for VertexType
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<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 VertexType
impl BinWrite for VertexType
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
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_ne<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming native-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§fn write_be_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Clone for VertexType
impl Clone for VertexType
Source§fn clone(&self) -> VertexType
fn clone(&self) -> VertexType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VertexType
Source§impl Debug for VertexType
impl Debug for VertexType
Source§impl PartialEq for VertexType
impl PartialEq for VertexType
Source§impl ReadEndian for VertexType
impl ReadEndian for VertexType
Source§const ENDIAN: EndianKind = <u8 as binrw::meta::ReadEndian>::ENDIAN
const ENDIAN: EndianKind = <u8 as binrw::meta::ReadEndian>::ENDIAN
The endianness of the type.
impl StructuralPartialEq for VertexType
Source§impl WriteEndian for VertexType
impl WriteEndian for VertexType
Source§const ENDIAN: EndianKind = <u8 as binrw::meta::WriteEndian>::ENDIAN
const ENDIAN: EndianKind = <u8 as binrw::meta::WriteEndian>::ENDIAN
The endianness of the type.
Auto Trait Implementations§
impl Freeze for VertexType
impl RefUnwindSafe for VertexType
impl Send for VertexType
impl Sync for VertexType
impl Unpin for VertexType
impl UnsafeUnpin for VertexType
impl UnwindSafe for VertexType
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