Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Aug 24, 2024
1 parent f876e4a commit 7361a1d
Show file tree
Hide file tree
Showing 71 changed files with 182 additions and 182 deletions.
2 changes: 1 addition & 1 deletion src/SharpMetal.Generator/Instances/ClassInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public List<ObjectiveCInstance> Generate(List<ClassInstance> classCache, List<En
context.WriteLine("[SupportedOSPlatform(\"macos\")]");

// TODO: Handle LibraryImport usage on MTLDevice (requires partial)
var classDecl = $"public struct {Name}: IDisposable";
var classDecl = $"public struct {Name} : IDisposable";

context.WriteLine(classDecl);

Expand Down
2 changes: 1 addition & 1 deletion src/SharpMetal/Foundation/NSArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace SharpMetal.Foundation
{
[SupportedOSPlatform("macos")]
public struct NSArray: IDisposable
public struct NSArray : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSArray obj) => obj.NativePtr;
Expand Down
2 changes: 1 addition & 1 deletion src/SharpMetal/Foundation/NSAutoreleasePool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace SharpMetal.Foundation
{
[SupportedOSPlatform("macos")]
public struct NSAutoreleasePool: IDisposable
public struct NSAutoreleasePool : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSAutoreleasePool obj) => obj.NativePtr;
Expand Down
2 changes: 1 addition & 1 deletion src/SharpMetal/Foundation/NSBundle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace SharpMetal.Foundation
{
[SupportedOSPlatform("macos")]
public struct NSBundle: IDisposable
public struct NSBundle : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSBundle obj) => obj.NativePtr;
Expand Down
2 changes: 1 addition & 1 deletion src/SharpMetal/Foundation/NSData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace SharpMetal.Foundation
{
[SupportedOSPlatform("macos")]
public struct NSData: IDisposable
public struct NSData : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSData obj) => obj.NativePtr;
Expand Down
2 changes: 1 addition & 1 deletion src/SharpMetal/Foundation/NSDate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace SharpMetal.Foundation
{
[SupportedOSPlatform("macos")]
public struct NSDate: IDisposable
public struct NSDate : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSDate obj) => obj.NativePtr;
Expand Down
2 changes: 1 addition & 1 deletion src/SharpMetal/Foundation/NSDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace SharpMetal.Foundation
{
[SupportedOSPlatform("macos")]
public struct NSDictionary: IDisposable
public struct NSDictionary : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSDictionary obj) => obj.NativePtr;
Expand Down
4 changes: 2 additions & 2 deletions src/SharpMetal/Foundation/NSEnumerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public struct NSFastEnumerationState
}

[SupportedOSPlatform("macos")]
public struct NSFastEnumeration: IDisposable
public struct NSFastEnumeration : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSFastEnumeration obj) => obj.NativePtr;
Expand All @@ -33,7 +33,7 @@ public ulong CountByEnumerating(NSFastEnumerationState pState, NSObject pBuffer,
}

[SupportedOSPlatform("macos")]
public struct NSEnumerator: IDisposable
public struct NSEnumerator : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSEnumerator obj) => obj.NativePtr;
Expand Down
2 changes: 1 addition & 1 deletion src/SharpMetal/Foundation/NSError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace SharpMetal.Foundation
{
[SupportedOSPlatform("macos")]
public struct NSError: IDisposable
public struct NSError : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSError obj) => obj.NativePtr;
Expand Down
4 changes: 2 additions & 2 deletions src/SharpMetal/Foundation/NSLock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace SharpMetal.Foundation
{
[SupportedOSPlatform("macos")]
public struct NSLocking: IDisposable
public struct NSLocking : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSLocking obj) => obj.NativePtr;
Expand All @@ -18,7 +18,7 @@ public void Dispose()
}

[SupportedOSPlatform("macos")]
public struct NSCondition: IDisposable
public struct NSCondition : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSCondition obj) => obj.NativePtr;
Expand Down
4 changes: 2 additions & 2 deletions src/SharpMetal/Foundation/NSNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace SharpMetal.Foundation
{
[SupportedOSPlatform("macos")]
public struct NSNotification: IDisposable
public struct NSNotification : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSNotification obj) => obj.NativePtr;
Expand All @@ -28,7 +28,7 @@ public void Dispose()
}

[SupportedOSPlatform("macos")]
public struct NSNotificationCenter: IDisposable
public struct NSNotificationCenter : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSNotificationCenter obj) => obj.NativePtr;
Expand Down
4 changes: 2 additions & 2 deletions src/SharpMetal/Foundation/NSNumber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace SharpMetal.Foundation
{
[SupportedOSPlatform("macos")]
public struct NSValue: IDisposable
public struct NSValue : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSValue obj) => obj.NativePtr;
Expand Down Expand Up @@ -67,7 +67,7 @@ public bool IsEqualToValue(NSValue pValue)
}

[SupportedOSPlatform("macos")]
public struct NSNumber: IDisposable
public struct NSNumber : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSNumber obj) => obj.NativePtr;
Expand Down
6 changes: 3 additions & 3 deletions src/SharpMetal/Foundation/NSObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace SharpMetal.Foundation
[SupportedOSPlatform("macos")]

[SupportedOSPlatform("macos")]
public struct NSCopying: IDisposable
public struct NSCopying : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSCopying obj) => obj.NativePtr;
Expand All @@ -21,7 +21,7 @@ public void Dispose()
}

[SupportedOSPlatform("macos")]
public struct NSSecureCoding: IDisposable
public struct NSSecureCoding : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSSecureCoding obj) => obj.NativePtr;
Expand All @@ -35,7 +35,7 @@ public void Dispose()
}

[SupportedOSPlatform("macos")]
public struct NSObject: IDisposable
public struct NSObject : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSObject obj) => obj.NativePtr;
Expand Down
2 changes: 1 addition & 1 deletion src/SharpMetal/Foundation/NSProcessInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public enum NSActivityOptions : ulong
}

[SupportedOSPlatform("macos")]
public struct NSProcessInfo: IDisposable
public struct NSProcessInfo : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSProcessInfo obj) => obj.NativePtr;
Expand Down
2 changes: 1 addition & 1 deletion src/SharpMetal/Foundation/NSSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace SharpMetal.Foundation
{
[SupportedOSPlatform("macos")]
public struct NSSet: IDisposable
public struct NSSet : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSSet obj) => obj.NativePtr;
Expand Down
2 changes: 1 addition & 1 deletion src/SharpMetal/Foundation/NSString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public enum NSStringCompareOptions : ulong
}

[SupportedOSPlatform("macos")]
public struct NSString: IDisposable
public struct NSString : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSString obj) => obj.NativePtr;
Expand Down
2 changes: 1 addition & 1 deletion src/SharpMetal/Foundation/NSURL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace SharpMetal.Foundation
{
[SupportedOSPlatform("macos")]
public struct NSURL: IDisposable
public struct NSURL : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(NSURL obj) => obj.NativePtr;
Expand Down
26 changes: 13 additions & 13 deletions src/SharpMetal/Metal/MTLAccelerationStructure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public struct MTLIndirectAccelerationStructureMotionInstanceDescriptor
}

[SupportedOSPlatform("macos")]
public struct MTLAccelerationStructureDescriptor: IDisposable
public struct MTLAccelerationStructureDescriptor : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLAccelerationStructureDescriptor obj) => obj.NativePtr;
Expand Down Expand Up @@ -166,7 +166,7 @@ public MTLAccelerationStructureUsage Usage
}

[SupportedOSPlatform("macos")]
public struct MTLAccelerationStructureGeometryDescriptor: IDisposable
public struct MTLAccelerationStructureGeometryDescriptor : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLAccelerationStructureGeometryDescriptor obj) => obj.NativePtr;
Expand Down Expand Up @@ -251,7 +251,7 @@ public ulong PrimitiveDataElementSize
}

[SupportedOSPlatform("macos")]
public struct MTLPrimitiveAccelerationStructureDescriptor: IDisposable
public struct MTLPrimitiveAccelerationStructureDescriptor : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLPrimitiveAccelerationStructureDescriptor obj) => obj.NativePtr;
Expand Down Expand Up @@ -330,7 +330,7 @@ public MTLAccelerationStructureUsage Usage
}

[SupportedOSPlatform("macos")]
public struct MTLAccelerationStructureTriangleGeometryDescriptor: IDisposable
public struct MTLAccelerationStructureTriangleGeometryDescriptor : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLAccelerationStructureTriangleGeometryDescriptor obj) => obj.NativePtr;
Expand Down Expand Up @@ -497,7 +497,7 @@ public ulong PrimitiveDataElementSize
}

[SupportedOSPlatform("macos")]
public struct MTLAccelerationStructureBoundingBoxGeometryDescriptor: IDisposable
public struct MTLAccelerationStructureBoundingBoxGeometryDescriptor : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLAccelerationStructureBoundingBoxGeometryDescriptor obj) => obj.NativePtr;
Expand Down Expand Up @@ -616,7 +616,7 @@ public ulong PrimitiveDataElementSize
}

[SupportedOSPlatform("macos")]
public struct MTLMotionKeyframeData: IDisposable
public struct MTLMotionKeyframeData : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLMotionKeyframeData obj) => obj.NativePtr;
Expand Down Expand Up @@ -654,7 +654,7 @@ public ulong Offset
}

[SupportedOSPlatform("macos")]
public struct MTLAccelerationStructureMotionTriangleGeometryDescriptor: IDisposable
public struct MTLAccelerationStructureMotionTriangleGeometryDescriptor : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLAccelerationStructureMotionTriangleGeometryDescriptor obj) => obj.NativePtr;
Expand Down Expand Up @@ -813,7 +813,7 @@ public ulong PrimitiveDataElementSize
}

[SupportedOSPlatform("macos")]
public struct MTLAccelerationStructureMotionBoundingBoxGeometryDescriptor: IDisposable
public struct MTLAccelerationStructureMotionBoundingBoxGeometryDescriptor : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLAccelerationStructureMotionBoundingBoxGeometryDescriptor obj) => obj.NativePtr;
Expand Down Expand Up @@ -924,7 +924,7 @@ public ulong PrimitiveDataElementSize
}

[SupportedOSPlatform("macos")]
public struct MTLAccelerationStructureCurveGeometryDescriptor: IDisposable
public struct MTLAccelerationStructureCurveGeometryDescriptor : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLAccelerationStructureCurveGeometryDescriptor obj) => obj.NativePtr;
Expand Down Expand Up @@ -1147,7 +1147,7 @@ public ulong PrimitiveDataElementSize
}

[SupportedOSPlatform("macos")]
public struct MTLAccelerationStructureMotionCurveGeometryDescriptor: IDisposable
public struct MTLAccelerationStructureMotionCurveGeometryDescriptor : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLAccelerationStructureMotionCurveGeometryDescriptor obj) => obj.NativePtr;
Expand Down Expand Up @@ -1354,7 +1354,7 @@ public ulong PrimitiveDataElementSize
}

[SupportedOSPlatform("macos")]
public struct MTLInstanceAccelerationStructureDescriptor: IDisposable
public struct MTLInstanceAccelerationStructureDescriptor : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLInstanceAccelerationStructureDescriptor obj) => obj.NativePtr;
Expand Down Expand Up @@ -1457,7 +1457,7 @@ public MTLAccelerationStructureUsage Usage
}

[SupportedOSPlatform("macos")]
public struct MTLIndirectInstanceAccelerationStructureDescriptor: IDisposable
public struct MTLIndirectInstanceAccelerationStructureDescriptor : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLIndirectInstanceAccelerationStructureDescriptor obj) => obj.NativePtr;
Expand Down Expand Up @@ -1584,7 +1584,7 @@ public MTLAccelerationStructureUsage Usage
}

[SupportedOSPlatform("macos")]
public struct MTLAccelerationStructure: IDisposable
public struct MTLAccelerationStructure : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLAccelerationStructure obj) => obj.NativePtr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public enum MTLAccelerationStructureRefitOptions : ulong
}

[SupportedOSPlatform("macos")]
public struct MTLAccelerationStructureCommandEncoder: IDisposable
public struct MTLAccelerationStructureCommandEncoder : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLAccelerationStructureCommandEncoder obj) => obj.NativePtr;
Expand Down Expand Up @@ -148,7 +148,7 @@ public void PopDebugGroup()
}

[SupportedOSPlatform("macos")]
public struct MTLAccelerationStructurePassSampleBufferAttachmentDescriptor: IDisposable
public struct MTLAccelerationStructurePassSampleBufferAttachmentDescriptor : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLAccelerationStructurePassSampleBufferAttachmentDescriptor obj) => obj.NativePtr;
Expand Down Expand Up @@ -193,7 +193,7 @@ public ulong EndOfEncoderSampleIndex
}

[SupportedOSPlatform("macos")]
public struct MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray: IDisposable
public struct MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray obj) => obj.NativePtr;
Expand Down Expand Up @@ -226,7 +226,7 @@ public void SetObject(MTLAccelerationStructurePassSampleBufferAttachmentDescript
}

[SupportedOSPlatform("macos")]
public struct MTLAccelerationStructurePassDescriptor: IDisposable
public struct MTLAccelerationStructurePassDescriptor : IDisposable
{
public IntPtr NativePtr;
public static implicit operator IntPtr(MTLAccelerationStructurePassDescriptor obj) => obj.NativePtr;
Expand Down
Loading

0 comments on commit 7361a1d

Please sign in to comment.