Load Metal shader libraries from memory #654
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!654
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-650"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@fruvs on GitHub · 2026-11-29 04:10 UTC · original
fruvs:codex/in-memory-metal-libraries→main· +7 −17 · 3 files · 1 commits · draftRefs #653
Load metallib bytes with
MTLDevice.newLibraryWithDatausing an owned dispatch-data buffer. The common loader no longer creates a temporary file for vertex, pixel, mesh or compute libraries. The existing compiled-library cache and Metal error reporting still apply.Verification
Verified on an Apple M5 Pro using an upstream main control and the three-file patch applied to the same revision.
metal::tests::queue_b_waits_for_queue_a_over_the_same_buffertest passed on main with a writable temporary directory and failed withOperation not permitted (os error 1)when process writes were denied.indexed_draw_with_depth_test_and_depth_sampling. Both tests check GPU outputs.To reproduce, build the existing synthetic tests with
cargo test --locked --release -p victory-metal --lib --test render --no-run. SetVICTORY_MSC_DYLIBto the installed Metal Shader Converter andVICTORY_NO_PIPELINE_ARCHIVE=1. Invoke each test executable throughsandbox-exec -p '(version 1) (allow default) (deny file-write*)', passing the corresponding test name and--exact.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.