fix(metal4): borrow model staging bytes #476

Open
github-bot wants to merge 1 commit from github-bot/gh-476 into master AGit
Owner

@⁠maple-quartz18 on GitHub · 2026-11-27 15:47 UTC · original
maple-quartz18:fix/metal4-buffer-byte-slices → master · +2 −2 · 1 files · 1 commits · open

Summary

  • Pass borrowed byte slices to Metal-Rust's new_buffer_with_bytes for model vertex and index staging buffers.
  • Fixes the metal4-poc debug build against the pinned Metal-Rust API.

Validation

  • cargo build --locked -p sixng-gui --features metal4-poc (macOS arm64)
  • git diff --check

cargo fmt --check was also attempted; the repository currently has unrelated formatting differences across existing files, so no broad formatting changes were applied.

**@⁠maple-quartz18** on GitHub · 2026-11-27 15:47 UTC · [original](https://github.com/holdmysocks/SixNG/pull/476) `maple-quartz18:fix/metal4-buffer-byte-slices` → `master` · +2 −2 · 1 files · 1 commits · open ## Summary - Pass borrowed byte slices to Metal-Rust's `new_buffer_with_bytes` for model vertex and index staging buffers. - Fixes the `metal4-poc` debug build against the pinned Metal-Rust API. ## Validation - `cargo build --locked -p sixng-gui --features metal4-poc` (macOS arm64) - `git diff --check` `cargo fmt --check` was also attempted; the repository currently has unrelated formatting differences across existing files, so no broad formatting changes were applied.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 15:53:39 +00:00
Author
Owner

@⁠maple-quartz18 on GitHub · 2026-11-27 15:50 UTC · original

Sorry one bug remained in my previous code, I have fix it now.

**@⁠maple-quartz18** on GitHub · 2026-11-27 15:50 UTC · [original](https://github.com/holdmysocks/SixNG/pull/476#issuecomment-7222551456) _Sorry one bug remained in my previous code, I have fix it now._
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/476/head:github-bot/gh-476'
git switch 'github-bot/gh-476'

Merge

Merge the changes and update on Forgejo.
git switch 'master'
git merge --no-ff 'github-bot/gh-476'
git switch 'github-bot/gh-476'
git rebase 'master'
git switch 'master'
git merge --ff-only 'github-bot/gh-476'
git switch 'github-bot/gh-476'
git rebase 'master'
git switch 'master'
git merge --no-ff 'github-bot/gh-476'
git switch 'master'
git merge --squash 'github-bot/gh-476'
git switch 'master'
git merge --ff-only 'github-bot/gh-476'
git switch 'master'
git merge 'github-bot/gh-476'
git push origin 'master'
This discussion has been locked. Commenting is limited to contributors.
No description provided.