pub unsafe fn upload_from_buffer<Buf>(&mut self, src: &Buf) -> Result<()>
    where
        Buf: Buffer,
    {
        let mipmap_extent = MipmapExtent {
            width: self.extent.width,
            height: self.extent.height,
        };
        self.upload_mipmaps_from_buffer(src, &[mipmap_extent])
    }
/// Upload a texture's data from a buffer.
///
/// This method is just an alias to [Self::upload_mipmaps_from_buffer]
/// which only updates the first mipmap. It's particularly convenient for
/// textures which only have a single mipmap level.
Upload a texture's data from a buffer.
This method is just an alias to [Self::upload_mipmaps_from_buffer]
which only updates the first mipmap. It's particularly convenient for
textures which only have a single mipmap level.
Upload a texture ' s data from a buffer . This method is just an alias to [ Self :: upload_mipmaps_from_buffer ] which only updates the first mipmap . It ' s particularly convenient for textures which only have a single mipmap level .
pub unsafe fn upload_from_buffer<Buf>(&mut self, src: &Buf) -> Result<()>
    where
        Buf: Buffer,
    {
        let mipmap_extent = MipmapExtent {
            width: self.extent.width,
            height: self.extent.height,
        };
        self.upload_mipmaps_from_buffer(src, &[mipmap_extent])
    }
pub unsafe fn upload_from_buffer < Buf > ( & mut self , src : & Buf ) -> Result < ( ) > where Buf : Buffer , { let mipmap_extent = MipmapExtent { width : self . extent . width , height : self . extent . height , } ; self . upload_mipmaps_from_buffer ( src , & [ mipmap_extent ] ) }
Upload a texture's data from a buffer.
Upload a texture ' s data from a buffer .
&mut self
src
&Buf