Metal macOS 10.13 Beta 2 to Beta 3 API Differences

MTLArgument.h
MTLArgumentEncoder.h
Optional
FromOptional
ToRequired

MTLComputeCommandEncoder.h
Declaration
From- (void)setBuffers:(nullable id<MTLBuffer> _Nullable const [])buffers offsets:(nonnull const NSUInteger [])offsets withRange:(NSRange)range
To- (void)setBuffers:(nonnull id<MTLBuffer> _Nullable const [])buffers offsets:(nonnull const NSUInteger [])offsets withRange:(NSRange)range

Declaration
From- (void)setTextures:(nullable id<MTLTexture> _Nullable const [])textures withRange:(NSRange)range
To- (void)setTextures:(nonnull id<MTLTexture> _Nullable const [])textures withRange:(NSRange)range

Declaration
From- (void)setSamplerStates:(nullable id<MTLSamplerState> _Nullable const [])samplers withRange:(NSRange)range
To- (void)setSamplerStates:(nonnull id<MTLSamplerState> _Nullable const [])samplers withRange:(NSRange)range

Declaration
From- (void)setSamplerStates:(nullable id<MTLSamplerState> _Nullable const [])samplers lodMinClamps:(nullable const float [])lodMinClamps lodMaxClamps:(nullable const float [])lodMaxClamps withRange:(NSRange)range
To- (void)setSamplerStates:(nonnull id<MTLSamplerState> _Nullable const [])samplers lodMinClamps:(nonnull const float [])lodMinClamps lodMaxClamps:(nonnull const float [])lodMaxClamps withRange:(NSRange)range

MTLDevice.h
Removed MTLNotificationName
Declaration
Fromconst MTLNotificationName _Nonnull MTLDeviceWasAddedNotification
Toconst MTLDeviceNotificationName _Nonnull MTLDeviceWasAddedNotification

Declaration
Fromconst MTLNotificationName _Nonnull MTLDeviceRemovalRequestedNotification
Toconst MTLDeviceNotificationName _Nonnull MTLDeviceRemovalRequestedNotification

Declaration
Fromconst MTLNotificationName _Nonnull MTLDeviceWasRemovedNotification
Toconst MTLDeviceNotificationName _Nonnull MTLDeviceWasRemovedNotification

Declaration
Fromtypedef void (^MTLDeviceNotificationHandler)(id<MTLDevice> _Nonnull device, MTLNotificationName _Nonnull notifyName)
Totypedef void (^MTLDeviceNotificationHandler)(id<MTLDevice> _Nonnull device, MTLDeviceNotificationName _Nonnull notifyName)

Optional
FromOptional
ToRequired

Optional
FromOptional
ToRequired

Optional
FromOptional
ToRequired

MTLParallelRenderCommandEncoder.h
MTLRenderCommandEncoder.h
Declaration
From- (void)setVertexBuffers:(nullable id<MTLBuffer> _Nullable const [])buffers offsets:(nullable const NSUInteger [])offsets withRange:(NSRange)range
To- (void)setVertexBuffers:(nonnull id<MTLBuffer> _Nullable const [])buffers offsets:(nonnull const NSUInteger [])offsets withRange:(NSRange)range

Declaration
From- (void)setVertexTextures:(nullable id<MTLTexture> _Nullable const [])textures withRange:(NSRange)range
To- (void)setVertexTextures:(nonnull id<MTLTexture> _Nullable const [])textures withRange:(NSRange)range

Declaration
From- (void)setVertexSamplerStates:(nullable id<MTLSamplerState> _Nullable const [])samplers withRange:(NSRange)range
To- (void)setVertexSamplerStates:(nonnull id<MTLSamplerState> _Nullable const [])samplers withRange:(NSRange)range

Declaration
From- (void)setVertexSamplerStates:(nullable id<MTLSamplerState> _Nullable const [])samplers lodMinClamps:(nullable const float [])lodMinClamps lodMaxClamps:(nullable const float [])lodMaxClamps withRange:(NSRange)range
To- (void)setVertexSamplerStates:(nonnull id<MTLSamplerState> _Nullable const [])samplers lodMinClamps:(nonnull const float [])lodMinClamps lodMaxClamps:(nonnull const float [])lodMaxClamps withRange:(NSRange)range

Declaration
From- (void)setFragmentBuffers:(nullable id<MTLBuffer> _Nullable const [])buffers offsets:(nullable const NSUInteger [])offsets withRange:(NSRange)range
To- (void)setFragmentBuffers:(nonnull id<MTLBuffer> _Nullable const [])buffers offsets:(nonnull const NSUInteger [])offsets withRange:(NSRange)range

Declaration
From- (void)setFragmentTextures:(nullable id<MTLTexture> _Nullable const [])textures withRange:(NSRange)range
To- (void)setFragmentTextures:(nonnull id<MTLTexture> _Nullable const [])textures withRange:(NSRange)range

Declaration
From- (void)setFragmentSamplerStates:(nullable id<MTLSamplerState> _Nullable const [])samplers withRange:(NSRange)range
To- (void)setFragmentSamplerStates:(nonnull id<MTLSamplerState> _Nullable const [])samplers withRange:(NSRange)range

Declaration
From- (void)setFragmentSamplerStates:(nullable id<MTLSamplerState> _Nullable const [])samplers lodMinClamps:(nullable const float [])lodMinClamps lodMaxClamps:(nullable const float [])lodMaxClamps withRange:(NSRange)range
To- (void)setFragmentSamplerStates:(nonnull id<MTLSamplerState> _Nullable const [])samplers lodMinClamps:(nonnull const float [])lodMinClamps lodMaxClamps:(nonnull const float [])lodMaxClamps withRange:(NSRange)range

MTLRenderPass.h