[][src]Struct rafx_resources::VertexDataSet

pub struct VertexDataSet { /* fields omitted */ }

Implementations

impl VertexDataSet[src]

pub fn new(data: Vec<VertexData>) -> Result<Self, &'static str>[src]

pub fn new_memzero(layouts: &[VertexDataLayout], vertex_count: usize) -> Self[src]

pub fn new_from_slice<T: Copy>(
    src_layout: &VertexDataLayout,
    src_data: &[T]
) -> Self
[src]

pub fn reinitialize_from(&mut self, other: &Self) -> Result<(), VertexCopyError>[src]

pub fn reinitialize_from_slice<T: Copy>(
    &mut self,
    src_layout: &VertexDataLayout,
    src_data: &[T]
) -> Result<(), VertexCopyError>
[src]

pub fn copy_from(&mut self, other: &Self) -> Result<(), VertexCopyError>[src]

pub fn copy_to(&self, other: &mut Self) -> Result<(), VertexCopyError>[src]

pub fn copy_from_single(
    &mut self,
    other: &VertexData
) -> Result<(), VertexCopyError>
[src]

pub fn copy_to_single(
    &self,
    other: &mut VertexData
) -> Result<(), VertexCopyError>
[src]

pub fn copy_between_vertex_data(
    src_vertex_count: usize,
    src_data: &[VertexData],
    dst_vertex_count: usize,
    dst_data: &mut [VertexData]
) -> Result<(), VertexCopyError>
[src]

pub fn copy_from_slice<T: Copy>(
    &mut self,
    src_layout: &VertexDataLayout,
    src_data: &[T]
) -> Result<(), VertexCopyError>
[src]

pub fn copy_to_slice<T: Copy>(
    &self,
    dst_layout: &VertexDataLayout,
    dst_data: &mut [T]
) -> Result<(), VertexCopyError>
[src]

pub unsafe fn data(&self) -> &[VertexData][src]

pub unsafe fn data_mut(&mut self) -> &mut [VertexData][src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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

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

impl<T> Resource for T where
    T: Downcast + Send + Sync
[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.