Commit 961e7821 authored by Elly Fong-Jones's avatar Elly Fong-Jones Committed by Commit Bot

mac newsdk: proxy new metal methods

These methods are present as of 10.15 and need to be proxied on
MTLDeviceProxy.

Bug: 973128
Change-Id: Ib4bf6e2f52d0101fb639bd848346c2c00bfeee9b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1906331Reviewed-by: default avatardanakj <danakj@chromium.org>
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#713919}
parent 3283da00
...@@ -382,6 +382,7 @@ PROXY_METHOD2_SLOW(nullable id<MTLLibrary>, ...@@ -382,6 +382,7 @@ PROXY_METHOD2_SLOW(nullable id<MTLLibrary>,
dispatch_data_t, dispatch_data_t,
error, error,
__autoreleasing NSError**) __autoreleasing NSError**)
- (nullable id<MTLLibrary>) - (nullable id<MTLLibrary>)
newLibraryWithSource:(NSString*)source newLibraryWithSource:(NSString*)source
options:(nullable MTLCompileOptions*)options options:(nullable MTLCompileOptions*)options
...@@ -549,6 +550,7 @@ PROXY_METHOD2(void, ...@@ -549,6 +550,7 @@ PROXY_METHOD2(void,
PROXY_METHOD1_SLOW(nullable id<MTLArgumentEncoder>, PROXY_METHOD1_SLOW(nullable id<MTLArgumentEncoder>,
newArgumentEncoderWithArguments, newArgumentEncoderWithArguments,
NSArray<MTLArgumentDescriptor*>*) NSArray<MTLArgumentDescriptor*>*)
#if defined(MAC_OS_X_VERSION_10_14) #if defined(MAC_OS_X_VERSION_10_14)
PROXY_METHOD1_SLOW(nullable id<MTLTexture>, PROXY_METHOD1_SLOW(nullable id<MTLTexture>,
newSharedTextureWithDescriptor, newSharedTextureWithDescriptor,
...@@ -573,6 +575,27 @@ PROXY_METHOD0(nullable id<MTLSharedEvent>, newSharedEvent) ...@@ -573,6 +575,27 @@ PROXY_METHOD0(nullable id<MTLSharedEvent>, newSharedEvent)
PROXY_METHOD1(nullable id<MTLSharedEvent>, PROXY_METHOD1(nullable id<MTLSharedEvent>,
newSharedEventWithHandle, newSharedEventWithHandle,
MTLSharedEventHandle*) MTLSharedEventHandle*)
#endif #endif // MAC_OS_X_VERSION_10_14
#if defined(MAC_OS_X_VERSION_10_15)
PROXY_METHOD0(BOOL, hasUnifiedMemory)
PROXY_METHOD0(MTLDeviceLocation, location)
PROXY_METHOD0(NSUInteger, locationNumber)
PROXY_METHOD0(uint64_t, maxTransferRate)
PROXY_METHOD0(BOOL, areBarycentricCoordsSupported)
PROXY_METHOD0(BOOL, supportsShaderBarycentricCoordinates)
PROXY_METHOD0(uint64_t, peerGroupID)
PROXY_METHOD0(uint32_t, peerIndex)
PROXY_METHOD0(uint32_t, peerCount)
PROXY_METHOD0(nullable NSArray<id<MTLCounterSet>>*, counterSets)
PROXY_METHOD1(BOOL, supportsFamily, MTLGPUFamily)
PROXY_METHOD2_SLOW(nullable id<MTLCounterSampleBuffer>,
newCounterSampleBufferWithDescriptor,
MTLCounterSampleBufferDescriptor*,
error,
NSError**)
PROXY_METHOD2(void, sampleTimestamps, NSUInteger*, gpuTimestamp, NSUInteger*)
#endif // MAC_OS_X_VERSION_10_15
#pragma clang diagnostic pop #pragma clang diagnostic pop
@end @end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment