From 3634518e491e6f50370807038cb40a5f91c66b35 Mon Sep 17 00:00:00 2001 From: Jason Macnak Date: Wed, 20 Oct 2021 07:11:32 -0700 Subject: [PATCH] Add android platform to external memory cfgs (#1726) --- vulkano/src/memory/device_memory.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vulkano/src/memory/device_memory.rs b/vulkano/src/memory/device_memory.rs index dd98b77d..52219717 100644 --- a/vulkano/src/memory/device_memory.rs +++ b/vulkano/src/memory/device_memory.rs @@ -22,6 +22,7 @@ use crate::VulkanObject; use std::error; use std::fmt; #[cfg(any( + target_os = "android", target_os = "linux", target_os = "dragonflybsd", target_os = "freebsd", @@ -36,6 +37,7 @@ use std::ops::DerefMut; use std::ops::Range; use std::os::raw::c_void; #[cfg(any( + target_os = "android", target_os = "linux", target_os = "dragonflybsd", target_os = "freebsd", @@ -203,6 +205,7 @@ impl<'a> DeviceMemoryBuilder<'a> { /// /// - Panics if the import info has already been set. #[cfg(any( + target_os = "android", target_os = "linux", target_os = "dragonflybsd", target_os = "freebsd", @@ -465,6 +468,7 @@ impl DeviceMemory { /// Same as `alloc`, but allows exportable file descriptor on Linux/BSD. #[inline] #[cfg(any( + target_os = "android", target_os = "linux", target_os = "dragonflybsd", target_os = "freebsd", @@ -491,6 +495,7 @@ impl DeviceMemory { /// Same as `dedicated_alloc`, but allows exportable file descriptor on Linux/BSD. #[inline] #[cfg(any( + target_os = "android", target_os = "linux", target_os = "dragonflybsd", target_os = "freebsd", @@ -519,6 +524,7 @@ impl DeviceMemory { /// Same as `alloc_and_map`, but allows exportable file descriptor on Linux/BSD. #[inline] #[cfg(any( + target_os = "android", target_os = "linux", target_os = "dragonflybsd", target_os = "freebsd", @@ -541,6 +547,7 @@ impl DeviceMemory { /// Same as `dedicated_alloc_and_map`, but allows exportable file descriptor on Linux/BSD. #[inline] #[cfg(any( + target_os = "android", target_os = "linux", target_os = "dragonflybsd", target_os = "freebsd", @@ -615,6 +622,7 @@ impl DeviceMemory { /// - Panics if the user requests an invalid handle type for this device memory object. #[inline] #[cfg(any( + target_os = "android", target_os = "linux", target_os = "dragonflybsd", target_os = "freebsd",