File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,9 @@ VkDevice create_logical_device(
70
70
#ifdef VK_KHR_portability_subset
71
71
VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME,
72
72
#endif /* VK_KHR_portability_subset */
73
+ #ifdef VK_ANDROID_external_memory_android_hardware_buffer
74
+ VK_ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_EXTENSION_NAME,
75
+ #endif /* VK_ANDROID_external_memory_android_hardware_buffer */
73
76
VK_KHR_16BIT_STORAGE_EXTENSION_NAME,
74
77
VK_KHR_8BIT_STORAGE_EXTENSION_NAME,
75
78
VK_KHR_SHADER_FLOAT16_INT8_EXTENSION_NAME,
Original file line number Diff line number Diff line change 10
10
11
11
#ifdef USE_VULKAN_WRAPPER
12
12
#ifdef USE_VULKAN_VOLK
13
+ #ifdef VK_ANDROID_external_memory_android_hardware_buffer
14
+ #include <android/hardware_buffer.h>
15
+ #include <vulkan/vulkan.h>
16
+ #include <vulkan/vulkan_android.h>
17
+ #endif /* VK_ANDROID_external_memory_android_hardware_buffer */
18
+
13
19
#include <volk.h>
14
20
#else
15
21
#include <vulkan_wrapper.h>
Original file line number Diff line number Diff line change @@ -142,10 +142,18 @@ def define_common_targets(is_fbcode = False):
142
142
VK_API_DEPS += [
143
143
"fbsource//third-party/volk:volk" ,
144
144
]
145
+ VK_API_DEPS += select ({
146
+ "DEFAULT" : [],
147
+ "ovr_config//os:android" : ["fbsource//third-party/toolchains:android" ],
148
+ })
145
149
VK_API_PREPROCESSOR_FLAGS += [
146
150
"-DUSE_VULKAN_WRAPPER" ,
147
151
"-DUSE_VULKAN_VOLK" ,
148
152
]
153
+ VK_API_PREPROCESSOR_FLAGS += select ({
154
+ "DEFAULT" : [],
155
+ "ovr_config//os:android" : ["-DVK_ANDROID_external_memory_android_hardware_buffer" ],
156
+ })
149
157
else :
150
158
VK_API_DEPS += [
151
159
"fbsource//third-party/swiftshader:swiftshader_vk_headers" ,
You can’t perform that action at this time.
0 commit comments