Skip to content

Commit

Permalink
Improve Vulkan loading and organization
Browse files Browse the repository at this point in the history
Load the Vulkan library at runtime and build our own dispatch table. This alleviates the need for DYLD_FALLBACK_LIBRARY_PATH on Mac/MoltenVK, will allow us to continue targeting Android 21 (which doesn't have Vulkan libraries to link against), and removes our requirement for the $VULKAN_SDK environment variable during build.

Split out the lower level functionality within
PLSRenderContextVulkanImpl to a new "VulkanContext" class, which also hosts the Vulkan dispatch table.

Instead of using Vulkan APIs directly to initialize our context, use the vk-bootstrap library. (We only incorporate this library for tests and path_fiddle; it's not part of the core renderer.)

Split out the headless functionality from fiddle_context_vulkan into a separate class. We don't build GLFW on Android and will need a Vulkan context.

Diffs=
46a3045ae Improve Vulkan loading and organization (#7873)

Co-authored-by: Chris Dalton <[email protected]>
  • Loading branch information
csmartdalton and csmartdalton committed Aug 22, 2024
1 parent 6acee5a commit f5c9054
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
160d9eefb4d3e42b620053987fcc8654e98d40a6
46a3045ae0a8bc9ab0cbbc61f37a49d13e60a3ed
2 changes: 1 addition & 1 deletion build/build_rive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ case "$RIVE_BUILD_SYSTEM" in
if [[ $# = 0 ]]; then
echo 'No targets specified for xcode: Attempting to grok them from "xcodebuild -list".'
XCODE_SCHEMES=$(for f in $(xcodebuild -list -workspace $RIVE_OUT/rive.xcworkspace | grep '^ '); do printf " $f"; done)
echo " -> groked:$XCODE_SCHEMES"
echo " -> grokked:$XCODE_SCHEMES"
else
XCODE_SCHEMES="$@"
fi
Expand Down

0 comments on commit f5c9054

Please sign in to comment.