FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ICompositionGpuInterop

    trait · ferroui-base · v0.5.0

    trait ICompositionGpuInterop
    

    The import of GPU objects created outside of the framework into the compositor.

    View source

    Members

    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.

    Source

    shared_context_id

    fn shared_context_id(self: &Self) -> Option<u64>
    

    Source

    shared_context_generation

    fn shared_context_generation(self: &Self) -> u64
    

    Source

    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

    Source

    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

    Source

    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

    Source

    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

    Source

    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

    Source

    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

    Source

    is_lost

    fn is_lost(self: &Self) -> bool
    

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

    Source

    device_luid

    fn device_luid(self: &Self) -> Option<Vec<u8>>
    

    The LUID of the graphics adapter used by the compositor

    Source

    set_device_luid

    fn set_device_luid(self: &Self, value: Option<Vec<u8>>)
    

    Source

    device_uuid

    fn device_uuid(self: &Self) -> Option<Vec<u8>>
    

    The UUID of the graphics adapter used by the compositor

    Source

    set_device_uuid

    fn set_device_uuid(self: &Self, value: Option<Vec<u8>>)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.