fn build(&self, device: &VkDevice) -> VkResult<Self::ObjectType> {

        debug_assert_ne!(self.inner.usage, vk::BufferUsageFlags::empty(), "the usage member of vk::BufferCreateInfo must not be 0!");

        let buffer = unsafe {
            device.logic.handle.create_buffer(self.as_ref(), None)
                .map_err(|_| VkError::create("Buffer"))?
        };

        let requirement = unsafe {
            device.logic.handle.get_buffer_memory_requirements(buffer)
        };

        Ok((buffer, requirement))
    }
/// Create `vk::Buffer` object, and return its handle and memory requirement.
Create `vk::Buffer` object, and return its handle and memory requirement.
Create ` vk :: Buffer ` object and return its handle and memory requirement .
fn build(&self, device: &VkDevice) -> VkResult<Self::ObjectType> {
        debug_assert_ne!(self.inner.usage, vk::BufferUsageFlags::empty(), "the usage member of vk::BufferCreateInfo must not be 0!");
        let buffer = unsafe {
            device.logic.handle.create_buffer(self.as_ref(), None)
                .map_err(|_| VkError::create("Buffer"))?
        };
        let requirement = unsafe {
            device.logic.handle.get_buffer_memory_requirements(buffer)
        };
        Ok((buffer, requirement))
    }
fn build ( & self , device : & VkDevice ) -> VkResult < Self :: ObjectType > { debug_assert_ne ! ( self inner usage vk BufferUsageFlags empty ( ) " " ) ; let buffer = unsafe { device . logic . handle . create_buffer ( self . as_ref ( ) , None ) . map_err ( | _ | VkError :: create ( " " ) ) ? } ; let requirement = unsafe { device . logic . handle . get_buffer_memory_requirements ( buffer ) } ; Ok ( ( buffer , requirement ) ) }
Create `vk::Buffer` object, and return its handle and memory requirement.
Create ` vk :: Buffer ` object and return its handle and memory requirement .
&self
device
&VkDevice
&self
device
&VkDevice