File tree 2 files changed +18
-2
lines changed
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 9
9
10
10
### acf_shaders ### : for acf lib and tests
11
11
if (ACF_BUILD_OGLES_GPGPU)
12
+
12
13
add_library (acf_shaders ${ACF_GPU_SRCS} ${ACF_GPU_HDRS} )
13
14
target_link_libraries (acf_shaders PUBLIC ogles_gpgpu::ogles_gpgpu)
14
15
set (acf_modules acf_shaders)
16
+
17
+ # Allow parallel texture fetches on iOS by default, but allow
18
+ # the user to disable. This is a hedge as iOS texture cache
19
+ # stuff has almost no documentation.
20
+ if (IOS)
21
+ set (acf_parallel_textures ON )
22
+ else ()
23
+ set (acf_parallel_textures OFF )
24
+ endif ()
25
+ option (ACF_PARALLEL_TEXTURE_FETCH "Fetch textures in parallel" ${acf_parallel_textures} )
26
+
27
+ if (ACF_PARALLEL_TEXTURE_FETCH)
28
+ target_compile_definitions (acf_shaders PUBLIC ACF_PARALLEL_TEXTURE_FETCH=1)
29
+ endif ()
30
+
15
31
endif ()
16
32
17
33
### acf ###
Original file line number Diff line number Diff line change @@ -826,8 +826,8 @@ cv::Mat ACF::getChannelsImpl()
826
826
}
827
827
}; // clang-format on
828
828
829
- #if OGLES_GPGPU_IOS
830
- // iOS texture cache can be queried in parallel:
829
+ #if defined(ACF_PARALLEL_TEXTURE_FETCH)
830
+ // iOS texture cache can be queried in parallel (at least) :
831
831
cv::parallel_for_ ({ 0 , int (planeIndex.size ()) }, worker);
832
832
#else
833
833
worker ({ 0 , int (planeIndex.size ()) });
You can’t perform that action at this time.
0 commit comments