ICompositionGpuInterop
trait · ferroui-base · v0.5.0
trait ICompositionGpuInterop
The import of GPU objects created outside of the framework into the compositor.
Members
render_compositorshared_context_idshared_context_generationsupported_image_handle_typessupported_semaphore_typesget_synchronization_capabilitiesimport_shared_imageimport_semaphoreimport_shared_semaphoreis_lostdevice_luidset_device_luiddevice_uuidset_device_uuid
render_compositor
fn render_compositor(self: &Self) -> Option<Rc<super::Compositor>>
Compositor whose render thread owns this interop context. Custom interop implementations may decline native producer jobs.
shared_context_id
fn shared_context_id(self: &Self) -> Option<u64>
shared_context_generation
fn shared_context_generation(self: &Self) -> u64
supported_image_handle_types
fn supported_image_handle_types(self: &Self) -> Vec<String>
Returns the list of image handle types supported by the current GPU backend, see KnownPlatformGraphicsExternalImageHandleTypes
supported_semaphore_types
fn supported_semaphore_types(self: &Self) -> Vec<String>
Returns the list of semaphore types supported by the current GPU backend, see KnownPlatformGraphicsExternalSemaphoreHandleTypes
get_synchronization_capabilities
fn get_synchronization_capabilities(self: &Self, image_handle_type: &str) -> CompositionGpuImportedImageSynchronizationCapabilities
Returns the supported ways to synchronize access to the imported GPU image
import_shared_image
fn import_shared_image(self: &Self, image: Arc<dyn ICompositionImportableSharedGpuContextImage>) -> Rc<dyn ICompositionImportedGpuImage>
Asynchronously imports a texture. The returned object is immediately usable. If import operation fails, the caller is responsible for destroying the handle
image is an image that belongs to the same GPU context or the same GPU context sharing group as one used by compositor
import_semaphore
fn import_semaphore(self: &Self, handle: Rc<dyn IPlatformHandle>) -> Rc<dyn ICompositionImportedGpuSemaphore>
Asynchronously imports a semaphore object. The returned object is immediately usable. If import operation fails, the caller is responsible for destroying the handle
import_shared_semaphore
fn import_shared_semaphore(self: &Self, image: Rc<dyn ICompositionImportableSharedGpuContextSemaphore>) -> Rc<dyn ICompositionImportedGpuImage>
Asynchronously imports a semaphore object. The returned object is immediately usable.
image is a semaphore that belongs to the same GPU context or the same GPU context sharing group as one used by compositor
is_lost
fn is_lost(self: &Self) -> bool
Indicates if the device context this instance is associated with is no longer available
device_luid
fn device_luid(self: &Self) -> Option<Vec<u8>>
The LUID of the graphics adapter used by the compositor
set_device_luid
fn set_device_luid(self: &Self, value: Option<Vec<u8>>)
device_uuid
fn device_uuid(self: &Self) -> Option<Vec<u8>>
The UUID of the graphics adapter used by the compositor
set_device_uuid
fn set_device_uuid(self: &Self, value: Option<Vec<u8>>)
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.