pub fn build(&self, device: Device) -> VdResult<Buffer> {
        let handle = unsafe { device.create_buffer(&self.create_info, None)? };
        let memory_requirements = unsafe { device.get_buffer_memory_requirements(handle) };

        Ok(Buffer {
            inner: Arc::new(Inner {
                handle,
                device,
                memory_requirements,
            })
        })
    }
/// Creates and returns a new `Buffer`
Creates and returns a new `Buffer`
Creates and returns a new ` Buffer `
pub fn build(&self, device: Device) -> VdResult<Buffer> {
        let handle = unsafe { device.create_buffer(&self.create_info, None)? };
        let memory_requirements = unsafe { device.get_buffer_memory_requirements(handle) };
        Ok(Buffer {
            inner: Arc::new(Inner {
                handle,
                device,
                memory_requirements,
            })
        })
    }
pub fn build ( & self , device : Device ) -> VdResult < Buffer > { let handle = unsafe { device . create_buffer ( & self . create_info , None ) ? } ; let memory_requirements = unsafe { device . get_buffer_memory_requirements ( handle ) } ; Ok ( Buffer { inner : Arc :: new ( Inner { handle , device , memory_requirements , } ) } ) }
Creates and returns a new `Buffer`
Creates and returns a new ` Buffer `
&self
device
Device
&self
device
Device