pub unsafe fn change_state<U>(self, f: impl FnOnce(S) -> U) -> CommandBuffer<B, C, U, L, R> {
        CommandBuffer {
            raw: self.raw,
            capability: self.capability,
            state: f(self.state),
            level: self.level,
            reset: self.reset,
            family: self.family,
            relevant: self.relevant,
        }
    }
/// Change state of the command buffer.
///
/// # Safety
///
/// * This method must be used only to reflect state changed due to raw handle usage.
Change state of the command buffer.
Change state of the command buffer .
pub unsafe fn change_state<U>(self, f: impl FnOnce(S) -> U) -> CommandBuffer<B, C, U, L, R> {
        CommandBuffer {
            raw: self.raw,
            capability: self.capability,
            state: f(self.state),
            level: self.level,
            reset: self.reset,
            family: self.family,
            relevant: self.relevant,
        }
    }
pub unsafe fn change_state < U > ( self , f : impl FnOnce ( S ) -> U ) -> CommandBuffer < B , C , U , L , R > { CommandBuffer { raw : self . raw , capability : self . capability , state : f ( self . state ) , level : self . level , reset : self . reset , family : self . family , relevant : self . relevant , } }
Change state of the command buffer.
Change state of the command buffer .
self
f
impl FnOnce(S) -> U
self
f
impl FnOnce(S) -> U
safety
This method must be used only to reflect state changed due to raw handle usage.
This method must be used only to reflect state changed due to raw handle usage .