pub fn cancel_present(
        self,
        result: VkResult<()>,
    ) {
        //TODO: AFAIK there is no way to simply trigger the semaphore and skip calling do_present
        // with no command buffers. The downside of doing this is that we end up with both the
        // end user's result and a result from do_present and have no sensible way of merging them
        let _ = self.do_present(&[]);
        self.result_tx.send(result).unwrap();
    }
// Can be called by the end user to end the frame early and defer a result to the next acquire
// image call
Can be called by the end user to end the frame early and defer a result to the next acquire
image call
Can be called by the end user to end the frame early and defer a result to the next acquire image call
pub fn cancel_present(
        self,
        result: VkResult<()>,
    ) {
        //TODO: AFAIK there is no way to simply trigger the semaphore and skip calling do_present
        // with no command buffers. The downside of doing this is that we end up with both the
        // end user's result and a result from do_present and have no sensible way of merging them
        let _ = self.do_present(&[]);
        self.result_tx.send(result).unwrap();
    }
pub fn cancel_present ( self , result : VkResult < ( ) > , ) { //TODO: AFAIK there is no way to simply trigger the semaphore and skip calling do_present // with no command buffers. The downside of doing this is that we end up with both the // end user's result and a result from do_present and have no sensible way of merging them let _ = self . do_present ( & [ ] ) ; self . result_tx . send ( result ) . unwrap ( ) ; }
Can be called by the end user to end the frame early and defer a result to the next acquire
image call
Can be called by the end user to end the frame early and defer a result to the next acquire image call
self
result
VkResult<()>
self
result
VkResult<()>