@@ -112,47 +112,47 @@ extension MDLAnimatedScalarArray {
112
112
@available ( iOS, introduced: 11.0 )
113
113
@available ( tvOS, introduced: 11.0 )
114
114
extension MDLAnimatedVector3Array {
115
- @nonobjc public func set( float3Array array: [ float3 ] , atTime time: TimeInterval ) {
115
+ @nonobjc public func set( float3Array array: [ SIMD3 < Float > ] , atTime time: TimeInterval ) {
116
116
__setFloat3 ( array, count: array. count, atTime: time)
117
117
}
118
118
119
- @nonobjc public func set( double3Array array: [ double3 ] , atTime time: TimeInterval ) {
119
+ @nonobjc public func set( double3Array array: [ SIMD3 < Double > ] , atTime time: TimeInterval ) {
120
120
__setDouble3 ( array, count: array. count, atTime: time)
121
121
}
122
122
123
- @nonobjc public func float3Array( atTime time: TimeInterval ) -> [ float3 ] {
124
- var values = [ float3 ] ( repeating: float3 ( ) , count: Int ( elementCount) )
123
+ @nonobjc public func float3Array( atTime time: TimeInterval ) -> [ SIMD3 < Float > ] {
124
+ var values = [ SIMD3 < Float > ] ( repeating: SIMD3 < Float > ( ) , count: Int ( elementCount) )
125
125
__getFloat3Array ( & values[ 0 ] , maxCount: elementCount, atTime: time)
126
126
return values
127
127
}
128
128
129
- @nonobjc public func double3Array( atTime time: TimeInterval ) -> [ double3 ] {
130
- var values = [ double3 ] ( repeating: double3 ( ) , count: Int ( elementCount) )
129
+ @nonobjc public func double3Array( atTime time: TimeInterval ) -> [ SIMD3 < Double > ] {
130
+ var values = [ SIMD3 < Double > ] ( repeating: SIMD3 < Double > ( ) , count: Int ( elementCount) )
131
131
__getDouble3Array ( & values[ 0 ] , maxCount: elementCount, atTime: time)
132
132
return values
133
133
}
134
134
135
- @nonobjc public func reset( float3Array array: [ float3 ] , atTimes times: [ TimeInterval ] ) {
135
+ @nonobjc public func reset( float3Array array: [ SIMD3 < Float > ] , atTimes times: [ TimeInterval ] ) {
136
136
__reset ( withFloat3Array: array, count: array. count, atTimes: times, count: times. count)
137
137
}
138
138
139
- @nonobjc public func reset( double3Array array: [ double3 ] , atTimes times: [ TimeInterval ] ) {
139
+ @nonobjc public func reset( double3Array array: [ SIMD3 < Double > ] , atTimes times: [ TimeInterval ] ) {
140
140
__reset ( withDouble3Array: array, count: array. count, atTimes: times, count: times. count)
141
141
}
142
142
143
- @nonobjc public var float3Array : [ float3 ] {
143
+ @nonobjc public var float3Array : [ SIMD3 < Float > ] {
144
144
get {
145
145
let count = elementCount * timeSampleCount
146
- var values = [ float3 ] ( repeating: float3 ( ) , count: Int ( count) )
146
+ var values = [ SIMD3 < Float > ] ( repeating: SIMD3 < Float > ( ) , count: Int ( count) )
147
147
__getFloat3Array ( & values[ 0 ] , maxCount: count)
148
148
return values
149
149
}
150
150
}
151
151
152
- @nonobjc public var double3Array : [ double3 ] {
152
+ @nonobjc public var double3Array : [ SIMD3 < Double > ] {
153
153
get {
154
154
let count = elementCount * timeSampleCount
155
- var values = [ double3 ] ( repeating: double3 ( ) , count: Int ( count) )
155
+ var values = [ SIMD3 < Double > ] ( repeating: SIMD3 < Double > ( ) , count: Int ( count) )
156
156
__getDouble3Array ( & values[ 0 ] , maxCount: count)
157
157
return values
158
158
}
@@ -243,25 +243,25 @@ extension MDLAnimatedScalar {
243
243
@available ( iOS, introduced: 11.0 )
244
244
@available ( tvOS, introduced: 11.0 )
245
245
extension MDLAnimatedVector2 {
246
- @nonobjc public func reset( float2Array array: [ float2 ] , atTimes times: [ TimeInterval ] ) {
246
+ @nonobjc public func reset( float2Array array: [ SIMD2 < Float > ] , atTimes times: [ TimeInterval ] ) {
247
247
__reset ( withFloat2Array: array, atTimes: times, count: times. count)
248
248
}
249
249
250
- @nonobjc public func reset( double2Array array: [ double2 ] , atTimes times: [ TimeInterval ] ) {
250
+ @nonobjc public func reset( double2Array array: [ SIMD2 < Double > ] , atTimes times: [ TimeInterval ] ) {
251
251
__reset ( withDouble2Array: array, atTimes: times, count: times. count)
252
252
}
253
253
254
- @nonobjc public var float2Array : [ float2 ] {
254
+ @nonobjc public var float2Array : [ SIMD2 < Float > ] {
255
255
get {
256
- var values = [ float2 ] ( repeating: float2 ( ) , count: Int ( timeSampleCount) )
256
+ var values = [ SIMD2 < Float > ] ( repeating: SIMD2 < Float > ( ) , count: Int ( timeSampleCount) )
257
257
__getFloat2Array ( & values[ 0 ] , maxCount: timeSampleCount)
258
258
return values
259
259
}
260
260
}
261
261
262
- @nonobjc public var double2Array : [ double2 ] {
262
+ @nonobjc public var double2Array : [ SIMD2 < Double > ] {
263
263
get {
264
- var values = [ double2 ] ( repeating: double2 ( ) , count: Int ( timeSampleCount) )
264
+ var values = [ SIMD2 < Double > ] ( repeating: SIMD2 < Double > ( ) , count: Int ( timeSampleCount) )
265
265
__getDouble2Array ( & values[ 0 ] , maxCount: timeSampleCount)
266
266
return values
267
267
}
@@ -272,25 +272,25 @@ extension MDLAnimatedVector2 {
272
272
@available ( iOS, introduced: 11.0 )
273
273
@available ( tvOS, introduced: 11.0 )
274
274
extension MDLAnimatedVector3 {
275
- @nonobjc public func reset( float3Array array: [ float3 ] , atTimes times: [ TimeInterval ] ) {
275
+ @nonobjc public func reset( float3Array array: [ SIMD3 < Float > ] , atTimes times: [ TimeInterval ] ) {
276
276
__reset ( withFloat3Array: array, atTimes: times, count: times. count)
277
277
}
278
278
279
- @nonobjc public func reset( double3Array array: [ double3 ] , atTimes times: [ TimeInterval ] ) {
279
+ @nonobjc public func reset( double3Array array: [ SIMD3 < Double > ] , atTimes times: [ TimeInterval ] ) {
280
280
__reset ( withDouble3Array: array, atTimes: times, count: times. count)
281
281
}
282
282
283
- @nonobjc public var float3Array : [ float3 ] {
283
+ @nonobjc public var float3Array : [ SIMD3 < Float > ] {
284
284
get {
285
- var values = [ float3 ] ( repeating: float3 ( ) , count: Int ( timeSampleCount) )
285
+ var values = [ SIMD3 < Float > ] ( repeating: SIMD3 < Float > ( ) , count: Int ( timeSampleCount) )
286
286
__getFloat3Array ( & values[ 0 ] , maxCount: timeSampleCount)
287
287
return values
288
288
}
289
289
}
290
290
291
- @nonobjc public var double3Array : [ double3 ] {
291
+ @nonobjc public var double3Array : [ SIMD3 < Double > ] {
292
292
get {
293
- var values = [ double3 ] ( repeating: double3 ( ) , count: Int ( timeSampleCount) )
293
+ var values = [ SIMD3 < Double > ] ( repeating: SIMD3 < Double > ( ) , count: Int ( timeSampleCount) )
294
294
__getDouble3Array ( & values[ 0 ] , maxCount: timeSampleCount)
295
295
return values
296
296
}
@@ -301,25 +301,25 @@ extension MDLAnimatedVector3 {
301
301
@available ( iOS, introduced: 11.0 )
302
302
@available ( tvOS, introduced: 11.0 )
303
303
extension MDLAnimatedVector4 {
304
- @nonobjc public func reset( float4Array array: [ float4 ] , atTimes times: [ TimeInterval ] ) {
304
+ @nonobjc public func reset( float4Array array: [ SIMD4 < Float > ] , atTimes times: [ TimeInterval ] ) {
305
305
__reset ( withFloat4Array: array, atTimes: times, count: times. count)
306
306
}
307
307
308
- @nonobjc public func reset( double4Array array: [ double4 ] , atTimes times: [ TimeInterval ] ) {
308
+ @nonobjc public func reset( double4Array array: [ SIMD4 < Double > ] , atTimes times: [ TimeInterval ] ) {
309
309
__reset ( withDouble4Array: array, atTimes: times, count: times. count)
310
310
}
311
311
312
- @nonobjc public var float4Array : [ float4 ] {
312
+ @nonobjc public var float4Array : [ SIMD4 < Float > ] {
313
313
get {
314
- var values = [ float4 ] ( repeating: float4 ( ) , count: Int ( timeSampleCount) )
314
+ var values = [ SIMD4 < Float > ] ( repeating: SIMD4 < Float > ( ) , count: Int ( timeSampleCount) )
315
315
__getFloat4Array ( & values[ 0 ] , maxCount: timeSampleCount)
316
316
return values
317
317
}
318
318
}
319
319
320
- @nonobjc public var double4Array : [ double4 ] {
320
+ @nonobjc public var double4Array : [ SIMD4 < Double > ] {
321
321
get {
322
- var values = [ double4 ] ( repeating: double4 ( ) , count: Int ( timeSampleCount) )
322
+ var values = [ SIMD4 < Double > ] ( repeating: SIMD4 < Double > ( ) , count: Int ( timeSampleCount) )
323
323
__getDouble4Array ( & values[ 0 ] , maxCount: timeSampleCount)
324
324
return values
325
325
}
0 commit comments