Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/MetalPerformanceShaders/MPSEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public enum MPSDataType : uint { // uint32_t
ComplexFloat32 = FloatBit | ComplexBit | 64,
[iOS (16, 2), MacCatalyst (16, 2), TV (16, 2)]
ComplexFloat16 = FloatBit | ComplexBit | 32,
[iOS (26, 4), MacCatalyst (26, 4), TV (26, 4)]
ComplexBFloat16 = AlternateEncodingBit | FloatBit | ComplexBit | 32,

/// <summary>To be added.</summary>
SignedBit = 0x20000000,
Expand Down
12 changes: 12 additions & 0 deletions src/metalperformanceshadersgraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,11 @@ interface MPSGraph_MPSGraphArithmeticOps {
[TV (17, 0), Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[Export ("complexTensorWithRealTensor:imaginaryTensor:name:")]
MPSGraphTensor ComplexTensor (MPSGraphTensor realTensor, MPSGraphTensor imaginaryTensor, [NullAllowed] string name);

/// <summary>Creates a planar tensor from a complex tensor, extracting the real and imaginary parts into a planar format.</summary>
[TV (26, 3), Mac (26, 3), iOS (26, 3), MacCatalyst (26, 3)]
[Export ("planarTensorWithComplexTensor:name:")]
MPSGraphTensor PlanarTensor (MPSGraphTensor tensor, [NullAllowed] string name);
}

// @interface MPSGraphConvolution2DOpDescriptor : NSObject <NSCopying>
Expand Down Expand Up @@ -2024,6 +2029,11 @@ interface MPSGraphCompilationDescriptor : NSCopying {
[iOS (26, 0), TV (26, 0), MacCatalyst (26, 0), Mac (26, 0)]
[Export ("reducedPrecisionFastMath")]
MPSGraphReducedPrecisionFastMath ReducedPrecisionFastMath { get; set; }

/// <summary>Converts the graph layout to NHWC (batch, height, width, channels) format.</summary>
[iOS (26, 4), TV (26, 4), MacCatalyst (26, 4), Mac (26, 4)]
[Export ("convertLayoutToNHWC")]
void ConvertLayoutToNhwc ();
}

// @interface MPSGraphDevice : NSObject
Expand Down Expand Up @@ -2950,6 +2960,8 @@ interface MPSGraph_MPSGraphScatterAlongAxisOps {
enum MPSGraphReducedPrecisionFastMath : ulong {
None = 0,
AllowFP16Conv2DWinogradTransformIntermediate = 1 << 1,
/// <summary>Allows converting operands from FP32 to FP19 format for reduced precision fast math operations.</summary>
AllowConvertingOperandsFromFP32ToFP19 = 1 << 2,
AllowFP16Intermediates = AllowFP16Conv2DWinogradTransformIntermediate,
Default = None,
}
Expand Down
5 changes: 3 additions & 2 deletions tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5217,6 +5217,7 @@ F:MetalPerformanceShaders.MPSCustomKernelIndex.UserDataIndex
F:MetalPerformanceShaders.MPSDataType.AlternateEncodingBit
F:MetalPerformanceShaders.MPSDataType.BFloat16
F:MetalPerformanceShaders.MPSDataType.Bool
F:MetalPerformanceShaders.MPSDataType.ComplexBFloat16
F:MetalPerformanceShaders.MPSDataType.ComplexBit
F:MetalPerformanceShaders.MPSDataType.ComplexFloat16
F:MetalPerformanceShaders.MPSDataType.ComplexFloat32
Expand Down Expand Up @@ -10101,9 +10102,9 @@ M:CarPlay.CPMapTemplateDelegate_Extensions.DidReceiveRequestForDestination(CarPl
M:CarPlay.CPMapTemplateDelegate_Extensions.DidReceiveUpdatedRouteSource(CarPlay.ICPMapTemplateDelegate,CarPlay.CPMapTemplate,CarPlay.CPRouteSource)
M:CarPlay.CPMapTemplateDelegate_Extensions.DidRequestToInsertWaypoint(CarPlay.ICPMapTemplateDelegate,CarPlay.CPMapTemplate,CarPlay.CPNavigationWaypoint,CarPlay.CPRouteSegment,CarPlay.CPMapTemplateDidRequestToInsertWaypointHandler)
M:CarPlay.CPMapTemplateDelegate_Extensions.DidShareDestination(CarPlay.ICPMapTemplateDelegate,CarPlay.CPMapTemplate,CarPlay.CPTrip)
M:CarPlay.CPMapTemplateDelegate_Extensions.MapTemplateWaypoint(CarPlay.ICPMapTemplateDelegate,CarPlay.CPMapTemplate,CarPlay.CPNavigationWaypoint,System.Boolean,CarPlay.CPRouteSegment)
M:CarPlay.CPMapTemplateDelegate_Extensions.ShouldProvideNavigationMetadata(CarPlay.ICPMapTemplateDelegate,CarPlay.CPMapTemplate)
M:CarPlay.CPMapTemplateDelegate_Extensions.ShouldProvideRouteSharing(CarPlay.ICPMapTemplateDelegate,CarPlay.CPMapTemplate)
M:CarPlay.CPMapTemplateDelegate_Extensions.MapTemplateWaypoint(CarPlay.ICPMapTemplateDelegate,CarPlay.CPMapTemplate,CarPlay.CPNavigationWaypoint,System.Boolean,CarPlay.CPRouteSegment)
M:CarPlay.CPMapTemplateDelegate_Extensions.WillShareDestination(CarPlay.ICPMapTemplateDelegate,CarPlay.CPMapTemplate,CarPlay.CPTrip)
M:CarPlay.CPMessageListItem.#ctor(System.String,System.String,CarPlay.CPMessageListItemLeadingConfiguration,CarPlay.CPMessageListItemTrailingConfiguration,System.String,System.String,CarPlay.CPMessageListItemType)
M:CarPlay.CPMessageListItem.#ctor(System.String,System.String,CarPlay.CPMessageListItemLeadingConfiguration,CarPlay.CPMessageListItemTrailingConfiguration,System.String,System.String)
Expand Down Expand Up @@ -10189,9 +10190,9 @@ M:CarPlay.ICPMapTemplateDelegate.DidReceiveRequestForDestination(CarPlay.CPMapTe
M:CarPlay.ICPMapTemplateDelegate.DidReceiveUpdatedRouteSource(CarPlay.CPMapTemplate,CarPlay.CPRouteSource)
M:CarPlay.ICPMapTemplateDelegate.DidRequestToInsertWaypoint(CarPlay.CPMapTemplate,CarPlay.CPNavigationWaypoint,CarPlay.CPRouteSegment,CarPlay.CPMapTemplateDidRequestToInsertWaypointHandler)
M:CarPlay.ICPMapTemplateDelegate.DidShareDestination(CarPlay.CPMapTemplate,CarPlay.CPTrip)
M:CarPlay.ICPMapTemplateDelegate.MapTemplateWaypoint(CarPlay.CPMapTemplate,CarPlay.CPNavigationWaypoint,System.Boolean,CarPlay.CPRouteSegment)
M:CarPlay.ICPMapTemplateDelegate.ShouldProvideNavigationMetadata(CarPlay.CPMapTemplate)
M:CarPlay.ICPMapTemplateDelegate.ShouldProvideRouteSharing(CarPlay.CPMapTemplate)
M:CarPlay.ICPMapTemplateDelegate.MapTemplateWaypoint(CarPlay.CPMapTemplate,CarPlay.CPNavigationWaypoint,System.Boolean,CarPlay.CPRouteSegment)
M:CarPlay.ICPMapTemplateDelegate.WillShareDestination(CarPlay.CPMapTemplate,CarPlay.CPTrip)
M:CarPlay.ICPNowPlayingTemplateObserver.AlbumArtistButtonTapped(CarPlay.CPNowPlayingTemplate)
M:CarPlay.ICPNowPlayingTemplateObserver.UpNextButtonTapped(CarPlay.CPNowPlayingTemplate)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading