Load Metal shader libraries from memory #650
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by fruvs on 2026-11-29T04:10:00Z.
Refs #649
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.