Managing Metal Cpp Lifetimes

ALWAYS use when writing or porting Metal object lifetime management code in metal-cpp — including crashes on release, use-after-free, memory leaks, autorelease pool placement, NS::TransferPtr vs NS::RetainPtr ownership, bridge casts at ARC/metal-cpp boundaries, or any question about when and how Metal objects are retained, released, or destroyed.

apple 7b7198f 6.2 KB Updated

File contents

apple/game-porting-toolkit/tree/main/game-porting-skills/skills/managing-metal-cpp-lifetimes commit 7b7198fa5a

Frequently asked questions

npx skillmds@latest add apple/managing-metal-cpp-lifetimes