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§
Sourcefn import_completed(&self) -> ServerJobTask<()>
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.
Sourcefn is_lost(&self) -> bool
fn is_lost(&self) -> bool
Indicates if the device context this instance is associated with is no longer available
Sourcefn dispose_async(&self) -> ServerJobTask<()>
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".