mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Metal updates for MacSDK 14.4
Add MTLResource::setOwnerWithIdentity to ObjCBridgeMTLTexture and ObjCBridgeMTLBuffer
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
}
|
||||
|
||||
// MTLResource : based on the protocol defined in
|
||||
// Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h
|
||||
// Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h
|
||||
|
||||
- (nullable NSString *)label
|
||||
{
|
||||
@@ -132,6 +132,15 @@
|
||||
return [self.real isAliasable];
|
||||
}
|
||||
|
||||
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_14_4
|
||||
- (kern_return_t)setOwnerWithIdentity:(task_id_token_t)task_id_token
|
||||
API_AVAILABLE(ios(17.4), watchos(10.4), tvos(17.4), macos(14.4))
|
||||
{
|
||||
METAL_NOT_HOOKED();
|
||||
return [self.real setOwnerWithIdentity:task_id_token];
|
||||
}
|
||||
#endif
|
||||
|
||||
// MTLBuffer : based on the protocol defined in
|
||||
// Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLBuffer.h
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
}
|
||||
|
||||
// MTLResource : based on the protocol defined in
|
||||
// Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h
|
||||
// Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h
|
||||
|
||||
- (nullable NSString *)label
|
||||
{
|
||||
@@ -132,6 +132,15 @@
|
||||
return [self.real isAliasable];
|
||||
}
|
||||
|
||||
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_14_4
|
||||
- (kern_return_t)setOwnerWithIdentity:(task_id_token_t)task_id_token
|
||||
API_AVAILABLE(ios(17.4), watchos(10.4), tvos(17.4), macos(14.4))
|
||||
{
|
||||
METAL_NOT_HOOKED();
|
||||
return [self.real setOwnerWithIdentity:task_id_token];
|
||||
}
|
||||
#endif
|
||||
|
||||
// MTLTexture : based on the protocol defined in
|
||||
// Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h
|
||||
|
||||
|
||||
@@ -71,3 +71,7 @@ inline WrappedMTLResource *GetWrapped(id<MTLResource> objC)
|
||||
#ifndef __MAC_14_0
|
||||
#define __MAC_14_0 140000
|
||||
#endif
|
||||
|
||||
#ifndef __MAC_14_4
|
||||
#define __MAC_14_4 140400
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user