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

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

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

        let requirement = unsafe {
            device.logic.handle.get_image_memory_requirements(image)
        };

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