Skip to content

ludus::platform::HostedAdapterIdentity

Ludus Wiki · API overview · Browse API

Struct

Identity of the GPU adapter and driver that import a hosted surface.
Vulkan: the consumer's VkPhysicalDeviceIDProperties::deviceUUID and driverUUID. Opaque memory handles import only on an adapter whose two UUIDs both equal the exporter's, so a producer that renders on this adapter can share its images with the consumer. Metal shares IOSurfaces across GPUs and has no adapter identity.

Declared in modules/platform/include/ludus/platform/hosted_surface.h

#include <ludus/platform/hosted_surface.h>
struct ludus::platform::HostedAdapterIdentity final

Fields

DeviceUuid

foundation::StaticArray<foundation::uint8, HOSTED_ADAPTER_UUID_BYTES> ludus::platform::HostedAdapterIdentity::DeviceUuid {}
deviceUUID: the physical device.

Related types: foundation::StaticArray · foundation::uint8 · HOSTED_ADAPTER_UUID_BYTES

Declared in modules/platform/include/ludus/platform/hosted_surface.h

DriverUuid

foundation::StaticArray<foundation::uint8, HOSTED_ADAPTER_UUID_BYTES> ludus::platform::HostedAdapterIdentity::DriverUuid {}
driverUUID: the driver that exposes it.

Related types: foundation::StaticArray · foundation::uint8 · HOSTED_ADAPTER_UUID_BYTES

Declared in modules/platform/include/ludus/platform/hosted_surface.h