Repository navigation
fix(gpu): the native Metal backend is chosen only from macOS 13 and iOS 16, and older systems draw with wgpu - #1590
Merged
Merged
Conversation
…OS 16, and older systems draw with wgpu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #588
Part 3 of #588: the native Metal backend no longer runs on systems it can't build pipelines for.
What was wrong
rune-gpu/src/backend.rsmadeGpuBackend::Metalthe default on every macOS whenmetal-backendis on, which it is by default.metal/device.rsmsl_versionfalls to 3.0 below macOS 14), and its precompiled libraries are built with-mmacosx-version-min=13.0(render/metallib.rs).metal/pipeline.rspanics and an app with default features opens no window.What changed
os_majorreadskern.osproductversiononce. An unknown version keeps the choice.RUNE_GPU_BACKEND=metalandApp::gpu_backend(Metal)too.describegives the reason.Tests
backend::tests::the_native_backend_falls_back_to_wgpu_below_its_os_floor(macOS 11, 12, 13, 26, unknown).cargo run -p rune --example <any>withRUNE_GPU_LOG=1and check that it sayswgpu Metal … (Rune's Metal backend needs macOS 13 or iOS 16).