• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

shader-slang / slang-rhi / 25002654262

27 Apr 2026 03:00PM UTC coverage: 63.456% (-4.7%) from 68.13%
25002654262

push

github

web-flow
Metal: add GPU pointer support via untracked hazard mode and residency sets (#713)

Switch all Metal resources to MTLHazardTrackingModeUntracked and MTLStorageModeShared (replacing Managed), synchronize encoder transitions with MTLFence wait/update pairs, and track allocations in an MTLResidencySet committed before each submit. This enables GPU virtual addresses (gpuAddress) to be used as shader-visible pointers in argument buffers, which is required for Slang's pointer parameter support on Metal.

Requires Apple Silicon (GPU Family 6+) and macOS 15+ / iOS 18+. Bumps Metal C++ headers from macOS 14.2 to macOS 15.2 for the MTLResidencySet API. Adds Metal to the bind-pointers test suite with new test cases for ParameterBlock and struct-copy patterns.

Part of implementing shader-slang/slang#10841

11052 of 20106 branches covered (54.97%)

Branch coverage included in aggregate %.

10 of 187 new or added lines in 7 files covered. (5.35%)

2338 existing lines in 22 files now uncovered.

32404 of 48376 relevant lines covered (66.98%)

272459.15 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/metal/metal-command.cpp


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc