[SR-8882] Swift's overlay of MTLCopyAllDevicesWithObserver shouldn't return an NSObject observer token #51388
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
SDKOverlay
Environment
Swift 4.2
macOS 10.14 SDK
Additional Detail from JIRA
md5: 930a99f52878686f430b9822b3b3c26c
Issue Description:
Currently Swift's Metal overlay for
MTLCopyAllDevicesWithObserver
has the following signature:The observer is returned as an
NSObject
. However, the underlying Obj-C API returns it as anid<NSObject>
, which is imported into Swift asNSObjectProtocol
. This mismatch means the overlay currently needs to force cast toNSObject
.Ideally we should change the Swift overlay such that it's returned as an
NSObjectProtocol
, or possibly evenAny
.The text was updated successfully, but these errors were encountered: