pub fn build(&self, device: Device) -> VdResult<DeviceMemory> {
        let handle = unsafe { device.allocate_memory(&self.allocate_info, None)? };

        Ok(DeviceMemory {
            inner: Arc::new(Inner {
                handle,
                device,
                allocation_size: self.allocate_info.allocation_size(),
                memory_type_index: self.allocate_info.memory_type_index(),
            })
        })
    }
/// Creates and returns a new `DeviceMemory`
Creates and returns a new `DeviceMemory`
Creates and returns a new ` DeviceMemory `
pub fn build(&self, device: Device) -> VdResult<DeviceMemory> {
        let handle = unsafe { device.allocate_memory(&self.allocate_info, None)? };
        Ok(DeviceMemory {
            inner: Arc::new(Inner {
                handle,
                device,
                allocation_size: self.allocate_info.allocation_size(),
                memory_type_index: self.allocate_info.memory_type_index(),
            })
        })
    }
pub fn build ( & self , device : Device ) -> VdResult < DeviceMemory > { let handle = unsafe { device . allocate_memory ( & self . allocate_info , None ) ? } ; Ok ( DeviceMemory { inner : Arc :: new ( Inner { handle , device , allocation_size : self . allocate_info . allocation_size ( ) , memory_type_index : self . allocate_info . memory_type_index ( ) , } ) } ) }
Creates and returns a new `DeviceMemory`
Creates and returns a new ` DeviceMemory `
&self
device
Device
&self
device
Device