pub fn end_command_buffer(&mut self) -> VkResult<vk::CommandBuffer> {
        let inner = self.inner.as_ref().unwrap();
        log::trace!("DynCommandWriter({}) end_command_buffer", inner.writer_id,);

        // Only valid to call end_writing() if we are writing a command buffer
        let command_buffer = self.currently_writing.take().unwrap();

        unsafe {
            inner
                .device_context
                .device()
                .end_command_buffer(command_buffer)?;
        }
        Ok(command_buffer)
    }
/// Finish writing the current command buffer by calling vkEndCommandBuffer on it.
Finish writing the current command buffer by calling vkEndCommandBuffer on it.
Finish writing the current command buffer by calling vkEndCommandBuffer on it .
pub fn end_command_buffer(&mut self) -> VkResult<vk::CommandBuffer> {
        let inner = self.inner.as_ref().unwrap();
        log::trace!("DynCommandWriter({}) end_command_buffer", inner.writer_id,);
        // Only valid to call end_writing() if we are writing a command buffer
        let command_buffer = self.currently_writing.take().unwrap();
        unsafe {
            inner
                .device_context
                .device()
                .end_command_buffer(command_buffer)?;
        }
        Ok(command_buffer)
    }
pub fn end_command_buffer ( & mut self ) -> VkResult < vk :: CommandBuffer > { let inner = self . inner . as_ref ( ) . unwrap ( ) ; log :: trace ! ( " " inner writer_id ) ; // Only valid to call end_writing() if we are writing a command buffer let command_buffer = self . currently_writing . take ( ) . unwrap ( ) ; unsafe { inner . device_context . device ( ) . end_command_buffer ( command_buffer ) ? ; } Ok ( command_buffer ) }
Finish writing the current command buffer by calling vkEndCommandBuffer on it.
Finish writing the current command buffer by calling vkEndCommandBuffer on it .
&mut self
&mut self