Repository navigation
Conversation
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.
Silky’s Metal drawer currently creates its own layer and submits a cleared frame, so an application cannot add Silky UI to existing Metal rendering. Add an external drawer that borrows the application’s device and records into its color target and command buffer. Both
newSilkyconstructors accept a supplied drawer, and ordinaryendUipreserves the scene without presenting or submitting.Each external pass uses its own vertex buffer, allowing several UI passes before submission. Borrowed atlas textures now have mipmaps, with explicit dirty-only
prepareAtlasencoding before application shaders sample them. A genericisolatedDrawingscope preserves queued UI geometry, deferred clip captures, layouts, and layers while the application bakes offscreen content. Standalone rendering remains the default; application-owned lifetime and synchronization are documented.Validation:
newSilky/beginUi/endUiwith input hooks and UI scaling.nim checkpass with isolated dependencies. CI runs drawing-scope tests and compiles the Metal GPU test.The Shady dependency is pinned to
de68342from treeform/shady#41. Metal modulo and array texture operations are emitted inline, so generated shaders no longer receive the universal helper-function preamble. Silky's shader generation, Metal compositing/texture pixel tests, and desktop/WebGL shader linking pass with this compiler.