pub struct VertexBufferDescriptor {
pub data_offset: u32,
pub vertex_count: u32,
pub vertex_size: u32,
pub attributes: Vec<VertexAttribute>,
pub unk1: u32,
pub unk2: u32,
pub unk3: u32,
}Fields§
§data_offset: u32The offset into buffer.
vertex_count: u32§vertex_size: u32The size or stride of the vertex in bytes.
attributes: Vec<VertexAttribute>A tightly packed list of attributes for the data for this buffer.
unk1: u32§unk2: u32§unk3: u32Trait Implementations§
Source§impl BinRead for VertexBufferDescriptor
impl BinRead for VertexBufferDescriptor
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<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_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 VertexBufferDescriptor
impl Clone for VertexBufferDescriptor
Source§fn clone(&self) -> VertexBufferDescriptor
fn clone(&self) -> VertexBufferDescriptor
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 moreSource§impl Debug for VertexBufferDescriptor
impl Debug for VertexBufferDescriptor
Source§impl PartialEq for VertexBufferDescriptor
impl PartialEq for VertexBufferDescriptor
Source§fn eq(&self, other: &VertexBufferDescriptor) -> bool
fn eq(&self, other: &VertexBufferDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Xc3Write for VertexBufferDescriptor
impl Xc3Write for VertexBufferDescriptor
Source§type Offsets<'offsets> = VertexBufferDescriptorOffsets<'offsets>
type Offsets<'offsets> = VertexBufferDescriptorOffsets<'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 Eq for VertexBufferDescriptor
impl StructuralPartialEq for VertexBufferDescriptor
Auto Trait Implementations§
impl Freeze for VertexBufferDescriptor
impl RefUnwindSafe for VertexBufferDescriptor
impl Send for VertexBufferDescriptor
impl Sync for VertexBufferDescriptor
impl Unpin for VertexBufferDescriptor
impl UnsafeUnpin for VertexBufferDescriptor
impl UnwindSafe for VertexBufferDescriptor
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> 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