fix(metal4): borrow model staging bytes #476

Manually merged
github merged 1 commit from github-bot/gh-476 into gh-pr/476/base 2026-11-27 17:33:54 +00:00 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 · merged 2026-11-27 17:32 UTC

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 · merged 2026-11-27 17:32 UTC ## 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._
github-bot changed target branch from master to gh-pr/476/base 2026-11-27 17:33:53 +00:00
github manually merged commit 3740986410 into gh-pr/476/base 2026-11-27 17:33:54 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.