[][src]Struct meshopt::utilities::VertexDataAdapter

pub struct VertexDataAdapter<'a> {
    pub reader: Cursor<&'a [u8]>,
    pub vertex_count: usize,
    pub vertex_stride: usize,
    pub position_offset: usize,
}

Fields

reader: Cursor<&'a [u8]>vertex_count: usizevertex_stride: usizeposition_offset: usize

Methods

impl<'a> VertexDataAdapter<'a>[src]

pub fn new(
    data: &'a [u8],
    vertex_stride: usize,
    position_offset: usize
) -> Result<VertexDataAdapter<'a>>
[src]

pub fn xyz_f32_at(&mut self, vertex: usize) -> Result<&[f32]>[src]

pub fn pos_ptr(&self) -> *const f32[src]

pub fn pos_mut_ptr(&self) -> *mut f32[src]

Trait Implementations

impl<'a> Read for VertexDataAdapter<'a>[src]

Auto Trait Implementations

impl<'a> Send for VertexDataAdapter<'a>

impl<'a> Sync for VertexDataAdapter<'a>

impl<'a> Unpin for VertexDataAdapter<'a>

impl<'a> UnwindSafe for VertexDataAdapter<'a>

impl<'a> RefUnwindSafe for VertexDataAdapter<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]