Skip to main content

ICompositionGpuImportedObject

Trait ICompositionGpuImportedObject 

Source
pub trait ICompositionGpuImportedObject {
    // Required methods
    fn import_completed(&self) -> ServerJobTask<()>;
    fn is_lost(&self) -> bool;
    fn dispose_async(&self) -> ServerJobTask<()>;
}
Expand description

An imported GPU object that’s usable by composition APIs

Required Methods§

Source

fn import_completed(&self) -> ServerJobTask<()>

Tracks the import status of the object. Once the task is completed, the user code is allowed to free the resource owner in case when a non-owning sharing handle was used.

Source

fn is_lost(&self) -> bool

Indicates if the device context this instance is associated with is no longer available

Source

fn dispose_async(&self) -> ServerJobTask<()>

Releases the object on the render thread (DisposeAsync).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§