pub fn image_create_from_buffer_with_info<T: PreAllocatedBufferInfo + Drop>(
        &self,
        mut buffer_info: Box<T>,
    ) -> Result<Image, Error> {
        self.image_create_from_buffer(
            buffer_info.format().into(),
            buffer_info.width_pixels(),
            buffer_info.height_pixels(),
            buffer_info.stride_bytes(),
            buffer_info.buffer(),
            buffer_info.buffer_size(),
            Box::new(move |_| {
                let _ = buffer_info;
            }),
        )
    }
/// Create an image from a pre-allocated buffer
Create an image from a pre-allocated buffer
Create an image from a pre - allocated buffer
pub fn image_create_from_buffer_with_info<T: PreAllocatedBufferInfo + Drop>(
        &self,
        mut buffer_info: Box<T>,
    ) -> Result<Image, Error> {
        self.image_create_from_buffer(
            buffer_info.format().into(),
            buffer_info.width_pixels(),
            buffer_info.height_pixels(),
            buffer_info.stride_bytes(),
            buffer_info.buffer(),
            buffer_info.buffer_size(),
            Box::new(move |_| {
                let _ = buffer_info;
            }),
        )
    }
pub fn image_create_from_buffer_with_info < T : PreAllocatedBufferInfo + Drop > ( & self , mut buffer_info : Box < T > , ) -> Result < Image , Error > { self . image_create_from_buffer ( buffer_info . format ( ) . into ( ) , buffer_info . width_pixels ( ) , buffer_info . height_pixels ( ) , buffer_info . stride_bytes ( ) , buffer_info . buffer ( ) , buffer_info . buffer_size ( ) , Box :: new ( move | _ | { let _ = buffer_info ; } ) , ) }
Create an image from a pre-allocated buffer
Create an image from a pre - allocated buffer
&self
buffer_info
Box<T>
&self
buffer_info
Box<T>