pub unsafe fn destroy(&mut self, device: &Device) {
        //! This function does no checking that the semaphores are done being used,
        //! that is up to the owner. (for example, wait for the device to idle)
        device
            .logical_device
            .destroy_semaphore(self.image_available_semaphore, None);
        device
            .logical_device
            .destroy_semaphore(self.render_finished_semaphore, None);
        device
            .logical_device
            .destroy_fence(self.graphics_finished_fence, None);
    }
/// Called by the owner when all sync resources should be destroyed.
Called by the owner when all sync resources should be destroyed.
Called by the owner when all sync resources should be destroyed .
pub unsafe fn destroy(&mut self, device: &Device) {
        //! This function does no checking that the semaphores are done being used,
        //! that is up to the owner. (for example, wait for the device to idle)
        device
            .logical_device
            .destroy_semaphore(self.image_available_semaphore, None);
        device
            .logical_device
            .destroy_semaphore(self.render_finished_semaphore, None);
        device
            .logical_device
            .destroy_fence(self.graphics_finished_fence, None);
    }
pub unsafe fn destroy ( & mut self , device : & Device ) { //! This function does no checking that the semaphores are done being used, //! that is up to the owner. (for example, wait for the device to idle) device . logical_device . destroy_semaphore ( self . image_available_semaphore , None ) ; device . logical_device . destroy_semaphore ( self . render_finished_semaphore , None ) ; device . logical_device . destroy_fence ( self . graphics_finished_fence , None ) ; }
Called by the owner when all sync resources should be destroyed.
Called by the owner when all sync resources should be destroyed .
&mut self
device
&Device