Repository navigation
register ruis-render-metal in the monorepo build - #211
Merged
Merged
Conversation
igagis
reviewed
Dec 3, 2026
| * @return the CAMetalLayer of the window (as an opaque pointer, e.g. ObjC id<CAMetalLayer>), | ||
| * or nullptr if this window is not a Metal window. | ||
| */ | ||
| virtual void* get_native_metal_layer() const noexcept |
Member
There was a problem hiding this comment.
Instead of introducing this virtual method, can this be achieved by similar approach as surface class in vulkan renderer?
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #211 +/- ##
===========================
===========================
☔ View full report in Codecov by Harness. |
Add the ruis-render-metal submodule registration in the umbrella build. The Metal renderer gets its surface (the per-window CA::MetalLayer) through a dedicated surface provider created by the application glue, mirroring the Vulkan renderer's surface class — no native_window-specific method needed.
igagis-bot
force-pushed
the
add-native-metal-layer
branch
from
December 3, 2026 00:51
f09b82f to
868eea8
Compare
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.
Summary
ruis-render-metalsubmodule in the umbrella build (apps.cmake).CA::MetalLayer) through a dedicated surface provider created by the application glue, mirroring the Vulkan renderer's surface class — nonative_window-specific method is needed.This is a prerequisite for the
ruis-render-metallibrary and theruisapp-metalvariant.Per igagis's review on this PR: the
native_window::get_native_metal_layer()virtual was removed in favour of the surface-based approach.