News for hackers. Stuff that matters.
Re:Low overhead C++ interface for Apple's Metal API by comex on Monday November 22, 2021 @05:28PM (#29312305)
Huh, I'm surprised. I had just assumed without looking that this library provided wrapper classes where the copy constructor calls retain and the destructor calls release. Apparently not.
Re:Low overhead C++ interface for Apple's Metal API by lukeh on Monday November 22, 2021 @06:47PM (#29312986)
Yeah, kind of weird there's no smart ARC class, although I suppose you need a way to override it when you need a weak reference. I guess it would be trivial to add one?