Apple Metal C++ Bindings Memory Leak in Hello World Program
I am trying to write an Apple Metal application in C++ using the metal-cpp binding. However, in a simple hello, world program I get a memory leak from simply importing the libraries. I followed the setup on Apple's official "Get started with Metal-cpp". #define NS_PRIVATE_IMPLEMENTATION #define CA_PRIVATE_IMPLEMENTATION #define MTL_PRIVATE_IMPLEMENTATION #include <Foundation/Foundation.hpp> #include <Metal/Metal.hpp> #include <QuartzCore/QuartzCore.hpp> #include <iostream> int main(int argc, const char * argv[]) { // insert code here... std::cout << "Checking for metal-cpp memory leaks..." <<
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.