pub unsafe fn write_data<T>(&mut self, data: &[T]) -> Result<()>
    where
        T: Sized + Copy + std::fmt::Debug,
    {
        self.write_data_arrays(&[data])?;

        Ok(())
    }
/// Write the provided data into the vertex buffer.
///
/// Unsafe because this method can replace both the buffer and the backing
/// memory. It is the responsibility of the application to ensure that
/// neither resource is being used when this method is called.
///
/// No explicit flush is required because the memory is allocated as
/// HOST_COHERENT.
Write the provided data into the vertex buffer.
Unsafe because this method can replace both the buffer and the backing
memory. It is the responsibility of the application to ensure that
neither resource is being used when this method is called.

No explicit flush is required because the memory is allocated as
HOST_COHERENT.
Write the provided data into the vertex buffer . Unsafe because this method can replace both the buffer and the backing memory . It is the responsibility of the application to ensure that neither resource is being used when this method is called . No explicit flush is required because the memory is allocated as HOST_COHERENT .
pub unsafe fn write_data<T>(&mut self, data: &[T]) -> Result<()>
    where
        T: Sized + Copy + std::fmt::Debug,
    {
        self.write_data_arrays(&[data])?;
        Ok(())
    }
pub unsafe fn write_data < T > ( & mut self , data : & [ T ] ) -> Result < ( ) > where T : Sized + Copy + std :: fmt :: Debug , { self . write_data_arrays ( & [ data ] ) ? ; Ok ( ( ) ) }
Write the provided data into the vertex buffer.
Write the provided data into the vertex buffer .
&mut self
data
&[T]