Metal Changes for Objective-C
Metal
MTLArgument.h
Modified MTLStructType.members
Declaration | |
---|---|
From | @property(readonly) NSArray *members |
To | @property(readonly, nonnull) NSArray<MTLStructMember *> *members |
MTLBlitCommandEncoder.h
Added MTLBlitOption
Added MTLBlitOptionNone
MTLComputeCommandEncoder.h
Declaration | |
---|---|
From | - (void)setBuffers:(const id<MTLBuffer> [])buffers offsets:(const NSUInteger [])offsets withRange:(NSRange)range |
To | - (void)setBuffers:(id<MTLBuffer> _Nullable const [])buffers offsets:(const NSUInteger [])offsets withRange:(NSRange)range |
Declaration | |
---|---|
From | - (void)setSamplerStates:(const id<MTLSamplerState> [])samplers lodMinClamps:(const float [])lodMinClamps lodMaxClamps:(const float [])lodMaxClamps withRange:(NSRange)range |
To | - (void)setSamplerStates:(id<MTLSamplerState> _Nullable const [])samplers lodMinClamps:(const float [])lodMinClamps lodMaxClamps:(const float [])lodMaxClamps withRange:(NSRange)range |
Declaration | |
---|---|
From | - (void)setSamplerStates:(const id<MTLSamplerState> [])samplers withRange:(NSRange)range |
To | - (void)setSamplerStates:(id<MTLSamplerState> _Nullable const [])samplers withRange:(NSRange)range |
Declaration | |
---|---|
From | - (void)setTextures:(const id<MTLTexture> [])textures withRange:(NSRange)range |
To | - (void)setTextures:(id<MTLTexture> _Nullable const [])textures withRange:(NSRange)range |
MTLComputePipeline.h
Declaration | |
---|---|
From | @property(readonly) NSArray *arguments |
To | @property(readonly, nonnull) NSArray<MTLArgument *> *arguments |
MTLDevice.h
Declaration | |
---|---|
From | - (void)newComputePipelineStateWithFunction:(id<MTLFunction>)computeFunction completionHandler:(void (^)(id<MTLComputePipelineState> computePipelineState, NSError *error))completionHandler |
To | - (void)newComputePipelineStateWithFunction:(id<MTLFunction> _Nonnull)computeFunction completionHandler:(MTLNewComputePipelineStateCompletionHandler _Nonnull)completionHandler |
Declaration | |
---|---|
From | - (void)newComputePipelineStateWithFunction:(id<MTLFunction>)computeFunction options:(MTLPipelineOption)options completionHandler:(void (^)(id<MTLComputePipelineState> computePipelineState, MTLComputePipelineReflection *reflection, NSError *error))completionHandler |
To | - (void)newComputePipelineStateWithFunction:(id<MTLFunction> _Nonnull)computeFunction options:(MTLPipelineOption)options completionHandler:(MTLNewComputePipelineStateWithReflectionCompletionHandler _Nonnull)completionHandler |
Declaration | |
---|---|
From | - (id<MTLComputePipelineState>)newComputePipelineStateWithFunction:(id<MTLFunction>)computeFunction options:(MTLPipelineOption)options reflection:(MTLComputePipelineReflection **)reflection error:(NSError **)error |
To | - (id<MTLComputePipelineState> _Nullable)newComputePipelineStateWithFunction:(id<MTLFunction> _Nonnull)computeFunction options:(MTLPipelineOption)options reflection:(MTLAutoreleasedComputePipelineReflection * _Nullable)reflection error:(NSError * _Nullable * _Nullable)error |
Declaration | |
---|---|
From | - (void)newLibraryWithSource:(NSString *)source options:(MTLCompileOptions *)options completionHandler:(void (^)(id<MTLLibrary> library, NSError *error))completionHandler |
To | - (void)newLibraryWithSource:(NSString * _Nonnull)source options:(MTLCompileOptions * _Nullable)options completionHandler:(MTLNewLibraryCompletionHandler _Nonnull)completionHandler |
Declaration | |
---|---|
From | - (void)newRenderPipelineStateWithDescriptor:(MTLRenderPipelineDescriptor *)descriptor completionHandler:(void (^)(id<MTLRenderPipelineState> renderPipelineState, NSError *error))completionHandler |
To | - (void)newRenderPipelineStateWithDescriptor:(MTLRenderPipelineDescriptor * _Nonnull)descriptor completionHandler:(MTLNewRenderPipelineStateCompletionHandler _Nonnull)completionHandler |
Declaration | |
---|---|
From | - (void)newRenderPipelineStateWithDescriptor:(MTLRenderPipelineDescriptor *)descriptor options:(MTLPipelineOption)options completionHandler:(void (^)(id<MTLRenderPipelineState> renderPipelineState, MTLRenderPipelineReflection *reflection, NSError *error))completionHandler |
To | - (void)newRenderPipelineStateWithDescriptor:(MTLRenderPipelineDescriptor * _Nonnull)descriptor options:(MTLPipelineOption)options completionHandler:(MTLNewRenderPipelineStateWithReflectionCompletionHandler _Nonnull)completionHandler |
Declaration | |
---|---|
From | - (id<MTLRenderPipelineState>)newRenderPipelineStateWithDescriptor:(MTLRenderPipelineDescriptor *)descriptor options:(MTLPipelineOption)options reflection:(MTLRenderPipelineReflection **)reflection error:(NSError **)error |
To | - (id<MTLRenderPipelineState> _Nullable)newRenderPipelineStateWithDescriptor:(MTLRenderPipelineDescriptor * _Nonnull)descriptor options:(MTLPipelineOption)options reflection:(MTLAutoreleasedRenderPipelineReflection * _Nullable)reflection error:(NSError * _Nullable * _Nullable)error |
MTLLibrary.h
Modified MTLCompileOptions.preprocessorMacros
Declaration | |
---|---|
From | @property(readwrite, copy, nonatomic) NSDictionary *preprocessorMacros |
To | @property(readwrite, copy, nonatomic, nullable) NSDictionary<NSString *,NSObject *> *preprocessorMacros |
Modified MTLFunction.vertexAttributes
Declaration | |
---|---|
From | @property(readonly) NSArray *vertexAttributes |
To | @property(readonly, nullable) NSArray<MTLVertexAttribute *> *vertexAttributes |
Modified MTLLibrary.functionNames
Declaration | |
---|---|
From | @property(readonly) NSArray *functionNames |
To | @property(readonly, nonnull) NSArray<NSString *> *functionNames |
MTLPixelFormat.h
MTLRenderCommandEncoder.h
Declaration | |
---|---|
From | - (void)setFragmentBuffers:(const id<MTLBuffer> [])buffers offsets:(const NSUInteger [])offset withRange:(NSRange)range |
To | - (void)setFragmentBuffers:(id<MTLBuffer> _Nullable const [])buffers offsets:(const NSUInteger [])offset withRange:(NSRange)range |
Declaration | |
---|---|
From | - (void)setFragmentSamplerStates:(const id<MTLSamplerState> [])samplers lodMinClamps:(const float [])lodMinClamps lodMaxClamps:(const float [])lodMaxClamps withRange:(NSRange)range |
To | - (void)setFragmentSamplerStates:(id<MTLSamplerState> _Nullable const [])samplers lodMinClamps:(const float [])lodMinClamps lodMaxClamps:(const float [])lodMaxClamps withRange:(NSRange)range |
Declaration | |
---|---|
From | - (void)setFragmentSamplerStates:(const id<MTLSamplerState> [])samplers withRange:(NSRange)range |
To | - (void)setFragmentSamplerStates:(id<MTLSamplerState> _Nullable const [])samplers withRange:(NSRange)range |
Declaration | |
---|---|
From | - (void)setFragmentTextures:(const id<MTLTexture> [])textures withRange:(NSRange)range |
To | - (void)setFragmentTextures:(id<MTLTexture> _Nullable const [])textures withRange:(NSRange)range |
Declaration | |
---|---|
From | - (void)setVertexBuffers:(const id<MTLBuffer> [])buffers offsets:(const NSUInteger [])offsets withRange:(NSRange)range |
To | - (void)setVertexBuffers:(id<MTLBuffer> _Nullable const [])buffers offsets:(const NSUInteger [])offsets withRange:(NSRange)range |
Declaration | |
---|---|
From | - (void)setVertexSamplerStates:(const id<MTLSamplerState> [])samplers lodMinClamps:(const float [])lodMinClamps lodMaxClamps:(const float [])lodMaxClamps withRange:(NSRange)range |
To | - (void)setVertexSamplerStates:(id<MTLSamplerState> _Nullable const [])samplers lodMinClamps:(const float [])lodMinClamps lodMaxClamps:(const float [])lodMaxClamps withRange:(NSRange)range |
Declaration | |
---|---|
From | - (void)setVertexSamplerStates:(const id<MTLSamplerState> [])samplers withRange:(NSRange)range |
To | - (void)setVertexSamplerStates:(id<MTLSamplerState> _Nullable const [])samplers withRange:(NSRange)range |
Declaration | |
---|---|
From | - (void)setVertexTextures:(const id<MTLTexture> [])textures withRange:(NSRange)range |
To | - (void)setVertexTextures:(id<MTLTexture> _Nullable const [])textures withRange:(NSRange)range |
MTLRenderPass.h
MTLRenderPipeline.h
Declaration | |
---|---|
From | @property(readonly) NSArray *fragmentArguments |
To | @property(readonly, nullable) NSArray<MTLArgument *> *fragmentArguments |
Declaration | |
---|---|
From | @property(readonly) NSArray *vertexArguments |
To | @property(readonly, nullable) NSArray<MTLArgument *> *vertexArguments |
MTLResource.h
Added MTLResource.storageMode
Added MTLStorageMode
Added MTLStorageModePrivate
Added MTLStorageModeShared
MTLSampler.h
MTLTexture.h
Added MTLTexture.buffer
Added MTLTexture.bufferOffset
Added MTLTexture.parentTexture
Added MTLTexture.usage
Added MTLTextureUsage
Added MTLTextureUsageUnknown