Skip to content

Commit af65a95

Browse files
authored
[MetalPerformanceShadersGraph] Update bindings to Xcode 26 beta 1-5. (#23417)
1 parent 75e1982 commit af65a95

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

src/metalperformanceshadersgraph.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,6 +2023,10 @@ interface MPSGraphCompilationDescriptor : NSCopying {
20232023
[Export ("callables")]
20242024
[NullAllowed]
20252025
NSDictionary<NSString, MPSGraphExecutable> Callables { get; set; }
2026+
2027+
[iOS (26, 0), TV (26, 0), MacCatalyst (26, 0), Mac (26, 0)]
2028+
[Export ("reducedPrecisionFastMath")]
2029+
MPSGraphReducedPrecisionFastMath ReducedPrecisionFastMath { get; set; }
20262030
}
20272031

20282032
// @interface MPSGraphDevice : NSObject
@@ -2296,6 +2300,10 @@ interface MPSGraphTensorData {
22962300
[Export ("initWithMTLBuffer:shape:dataType:rowBytes:")]
22972301
NativeHandle Constructor (IMTLBuffer buffer, [BindAs (typeof (int []))] NSNumber [] shape, MPSDataType dataType, nuint rowBytes);
22982302

2303+
[TV (26, 0), iOS (26, 0), MacCatalyst (26, 0), Mac (26, 0)]
2304+
[Export ("initWithMTLTensor:")]
2305+
NativeHandle Constructor (IMTLTensor tensor);
2306+
22992307
// -(MPSNDArray * _Nonnull)mpsndarray;
23002308
[Export ("mpsndarray")]
23012309
MPSNDArray MPSNDArray { get; }
@@ -2940,4 +2948,12 @@ interface MPSGraph_MPSGraphScatterAlongAxisOps {
29402948
MPSGraphTensor ScatterAlongAxis (MPSGraphTensor axisTensor, MPSGraphTensor dataTensor, MPSGraphTensor updatesTensor, MPSGraphTensor indicesTensor, MPSGraphScatterMode mode, [NullAllowed] string name);
29412949
}
29422950

2951+
[iOS (26, 0), TV (26, 0), MacCatalyst (26, 0), Mac (26, 0)]
2952+
[Native]
2953+
enum MPSGraphReducedPrecisionFastMath : ulong {
2954+
None = 0,
2955+
AllowFP16Conv2DWinogradTransformIntermediate = 1 << 1,
2956+
AllowFP16Intermediates = AllowFP16Conv2DWinogradTransformIntermediate,
2957+
Default = None,
2958+
}
29432959
}

tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-MetalPerformanceShadersGraph.todo

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/iOS-MetalPerformanceShadersGraph.todo

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/macOS-MetalPerformanceShadersGraph.todo

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/tvOS-MetalPerformanceShadersGraph.todo

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)