Struct FlushInfo
pub struct FlushInfo { /* private fields */ }Expand description
Struct to supply options to flush calls.
After issuing all commands, the semaphores set via FlushInfo::set_signal_semaphores()
will be signaled by the gpu. The client passes in an array of
crate::gpu::BackendSemaphores. In general these can be either initialized or not. If they
are initialized, the backend uses the passed in semaphore. If it is not initialized, a new
semaphore is created and the crate::gpu::BackendSemaphore object is initialized with
that semaphore. The semaphores are not sent to the GPU until the next submit call is made.
See crate::gpu::DirectContext::submit() for more information.
The client will own and be responsible for deleting the underlying semaphores that are
stored and returned in initialized crate::gpu::BackendSemaphore objects. The
crate::gpu::BackendSemaphore objects themselves can be deleted as soon as the flush
call returns.
Implementations§
§impl FlushInfo
impl FlushInfo
pub unsafe fn set_signal_semaphores(
&mut self,
semaphores: &mut [Handle<GrBackendSemaphore>],
) -> &mut FlushInfo
pub unsafe fn set_signal_semaphores( &mut self, semaphores: &mut [Handle<GrBackendSemaphore>], ) -> &mut FlushInfo
Sets the signal-semaphore array Skia will signal when work submitted by the next flush call has executed on the GPU. Each entry is treated as in/out by Skia: initialized semaphores are signaled directly, uninitialized entries are filled with a freshly-created semaphore.
§Safety
semaphores must outlive any flush call that consumes this
FlushInfo. The flush operation may write back into the slice,
so the caller must keep it borrowed mutably until the flush
returns.
Trait Implementations§
Auto Trait Implementations§
impl !Send for FlushInfo
impl !Sync for FlushInfo
impl Freeze for FlushInfo
impl RefUnwindSafe for FlushInfo
impl Unpin for FlushInfo
impl UnsafeUnpin for FlushInfo
impl UnwindSafe for FlushInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.