File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
stdlib/public/Darwin/Metal Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ extension MTLDevice {
90
90
91
91
@available ( macOS 10 . 13 , iOS 11 . 0 , tvOS 11 . 0 , * )
92
92
public func getDefaultSamplePositions( sampleCount: Int ) -> [ MTLSamplePosition ] {
93
- return [ MTLSamplePosition] ( unsafeUninitializedCapacity: sampleCount) { buf, initializedCount
93
+ return [ MTLSamplePosition] ( unsafeUninitializedCapacity: sampleCount) { buf, initializedCount in
94
94
__getDefaultSamplePositions ( buf, count: sampleCount)
95
95
initializedCount = sampleCount
96
96
}
@@ -264,7 +264,7 @@ extension MTLRenderPassDescriptor {
264
264
@available ( macOS 10 . 13 , iOS 11 . 0 , tvOS 11 . 0 , * )
265
265
public func getSamplePositions( ) -> [ MTLSamplePosition ] {
266
266
let numPositions = __getSamplePositions ( nil , count: 0 )
267
- return [ MTLSamplePosition] ( unsafeUninitializedCapacity: numPositions) { buf, initializedCount
267
+ return [ MTLSamplePosition] ( unsafeUninitializedCapacity: numPositions) { buf, initializedCount in
268
268
__getSamplePositions ( buf, count: numPositions)
269
269
initializedCount = numPositions
270
270
}
You can’t perform that action at this time.
0 commit comments