MetalKit Changes for Objective-C
MetalKit
MTKModel.h
Modified MTKMesh.name
| Declaration | |
|---|---|
| From | @property(nonatomic) NSString *name |
| To | @property(nonatomic, copy) NSString *name |
Modified MTKMeshBuffer
| Protocols | |
|---|---|
| From | MDLMeshBuffer |
| To | MDLMeshBuffer, MDLNamed |
Modified MTKSubmesh.name
| Declaration | |
|---|---|
| From | @property(nonatomic) NSString *name |
| To | @property(nonatomic, copy) NSString *name |
MTKTextureLoader.h
Added -[MTKTextureLoader newTexturesWithNames:scaleFactor:displayGamut:bundle:options:completionHandler:]
| Declaration | |
|---|---|
| From | - (void)newTextureWithCGImage:(CGImageRef)cgImage options:(NSDictionary<NSString *,NSNumber *> *)options completionHandler:(MTKTextureLoaderCallback)completionHandler |
| To | - (void)newTextureWithCGImage:(CGImageRef)cgImage options:(NSDictionary<NSString *,NSObject *> *)options completionHandler:(MTKTextureLoaderCallback)completionHandler |
| Declaration | |
|---|---|
| From | - (id<MTLTexture>)newTextureWithCGImage:(CGImageRef)cgImage options:(NSDictionary<NSString *,NSNumber *> *)options error:(NSError * _Nullable *)error |
| To | - (id<MTLTexture>)newTextureWithCGImage:(CGImageRef)cgImage options:(NSDictionary<NSString *,NSObject *> *)options error:(NSError * _Nullable *)error |
| Declaration | |
|---|---|
| From | - (void)newTextureWithContentsOfURL:(NSURL *)URL options:(NSDictionary<NSString *,NSNumber *> *)options completionHandler:(MTKTextureLoaderCallback)completionHandler |
| To | - (void)newTextureWithContentsOfURL:(NSURL *)URL options:(NSDictionary<NSString *,NSObject *> *)options completionHandler:(MTKTextureLoaderCallback)completionHandler |
| Declaration | |
|---|---|
| From | - (id<MTLTexture>)newTextureWithContentsOfURL:(NSURL *)URL options:(NSDictionary<NSString *,NSNumber *> *)options error:(NSError * _Nullable *)error |
| To | - (id<MTLTexture>)newTextureWithContentsOfURL:(NSURL *)URL options:(NSDictionary<NSString *,NSObject *> *)options error:(NSError * _Nullable *)error |
| Declaration | |
|---|---|
| From | - (void)newTextureWithData:(NSData *)data options:(NSDictionary<NSString *,NSNumber *> *)options completionHandler:(MTKTextureLoaderCallback)completionHandler |
| To | - (void)newTextureWithData:(NSData *)data options:(NSDictionary<NSString *,NSObject *> *)options completionHandler:(MTKTextureLoaderCallback)completionHandler |
| Declaration | |
|---|---|
| From | - (id<MTLTexture>)newTextureWithData:(NSData *)data options:(NSDictionary<NSString *,NSNumber *> *)options error:(NSError * _Nullable *)error |
| To | - (id<MTLTexture>)newTextureWithData:(NSData *)data options:(NSDictionary<NSString *,NSObject *> *)options error:(NSError * _Nullable *)error |
MTKView.h
Added MTKView.colorspace