Extending Metal-cpp to Other Apple Frameworks
Source Code on GitHub Back for the release of iOS 15, Apple released Metal-cpp, a C++ binding primarly for the Metal framework, but also for some select symbols in Foundation and QuartzCore frequently used in conjunction with Metal. Thus, instead of writing the following non-ARC Obj-C: - (void)gameLoop { @autoreleasepool { MTLTextureDescriptor *textureDesc = [[[MTLTextureDescriptor alloc] init] autorelease]; textureDesc.pixelFormat = MTLPixelFormatRGBA8Unorm_sRGB; NSLog(@"width: %d", textureDesc.width); } } you can write the following C++:...