Add updated iOS App support to the Vulkan examples (#1119)
* Fix clang Objective-C++ flags for macOS command line builds * Fix getAssetPath() and getShaderBasePath() for macOS command line builds * Protect debugUtilsMessageCallback() from failing when pMessageIdName is NULL * Fix a few clang function override and mismatched type warnings * Fix validation layer warnings on exit for computeraytracing example * Fix regression in text visibility toggle for textOverlay example * Support VK_USE_PLATFORM_METAL_EXT vs. deprecated VK_USE_PLATFORM_MACOS_MVK / DVK_USE_PLATFORM_IOS_MVK * Check dynamic state features before enabling capabilities in dynamicstate example * Fix vkCmdDraw() vertexCount argument (PARTICLE_COUNT) in particlesystem example * Update examples list and restore benchmarking script (to top level) * Fix validation warning in descriptorindexing example * Fix device max recursion depth validation warnings in ray tracing examples * Fix OpenMP build settings for texture3d example on all platforms * Update and simplify build instructions for macOS * Update CI script with correct library path for libomp on macOS x86_64 * Update CI scipt to install libomp prior to macOS builds * Trying one more time to get the CI script working for macOS libomp * Fix vertexCount argument using calculated size in particlesystem example * Fix combined image descriptor offset calculation in descriptorbuffer example * Add iOS App support for Vulkan examples on simulator and physical devices * Add continuous integration (CI) script for iOS * Update CI script to build iOS using Xcode 14 via macos-12 runner-image * Update iOS project docs for Xcode 14 and rename ios folder to apple * Update macOS docs and CI script to use LIBOMP_PREFIX for OpenMP library path * Delete benchmark-all-validate.py Delete benchmark script as per feedback from Sascha Willems * Update debugprintf example documentation in examples.h
This commit is contained in:
parent
3d4446fa15
commit
ba927eab6c
38 changed files with 2755 additions and 9 deletions
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
|
|
@ -42,7 +42,7 @@ jobs:
|
|||
cmake --build .
|
||||
|
||||
build_macOS:
|
||||
name: Build Mac
|
||||
name: Build macOS
|
||||
runs-on: macos-11
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
@ -57,8 +57,31 @@ jobs:
|
|||
cd ~/VulkanSDK/latest
|
||||
sudo python ./install_vulkan.py
|
||||
brew install libomp
|
||||
brew --prefix libomp
|
||||
- name: Build
|
||||
run: |
|
||||
cmake -G "Xcode" -DOpenMP_omp_LIBRARY=/usr/local/opt/libomp/lib/libomp.dylib
|
||||
export LIBOMP_PREFIX=$(brew --prefix libomp)
|
||||
cmake -G "Xcode" -DOpenMP_omp_LIBRARY=$LIBOMP_PREFIX/lib/libomp.dylib .
|
||||
cmake --build .
|
||||
|
||||
build_iOS:
|
||||
name: Build iOS
|
||||
runs-on: macos-12
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: Setup
|
||||
run: |
|
||||
curl -L "https://sdk.lunarg.com/sdk/download/latest/mac/vulkan-sdk.dmg" -o /tmp/vulkan-sdk.dmg
|
||||
hdiutil attach /tmp/vulkan-sdk.dmg -mountpoint /Volumes/vulkan-sdk
|
||||
/Volumes/vulkan-sdk/InstallVulkan.app/Contents/MacOS/InstallVulkan \
|
||||
--root ~/VulkanSDK/latest --accept-licenses --default-answer --confirm-command install
|
||||
cd ~/VulkanSDK/latest
|
||||
sudo python ./install_vulkan.py
|
||||
- name: Build
|
||||
run: |
|
||||
cd apple
|
||||
rm MoltenVK.xcframework
|
||||
ln -s ~/VulkanSDK/latest/macOS/lib/MoltenVK.xcframework
|
||||
xcodebuild -scheme examples-ios build CODE_SIGNING_ALLOWED=NO
|
||||
xcodebuild -scheme examples-macos build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue