1 #ifndef DAWNNATIVE_VULKAN_EXTERNALHANDLE_H_ 2 #define DAWNNATIVE_VULKAN_EXTERNALHANDLE_H_ 3 4 #include "common/vulkan_platform.h" 5 6 namespace dawn_native { namespace vulkan { 7 8 #if DAWN_PLATFORM_LINUX 9 // File descriptor 10 using ExternalMemoryHandle = int; 11 // File descriptor 12 using ExternalSemaphoreHandle = int; 13 #elif DAWN_PLATFORM_FUCHSIA 14 // Really a Zircon vmo handle. 15 using ExternalMemoryHandle = zx_handle_t; 16 // Really a Zircon event handle. 17 using ExternalSemaphoreHandle = zx_handle_t; 18 #else 19 // Generic types so that the Null service can compile, not used for real handles 20 using ExternalMemoryHandle = void*; 21 using ExternalSemaphoreHandle = void*; 22 #endif 23 24 }} // namespace dawn_native::vulkan 25 26 #endif // DAWNNATIVE_VULKAN_EXTERNALHANDLE_H_ 27