17
17
extension MTLBlitCommandEncoder {
18
18
19
19
public func fill( buffer: MTLBuffer , range: Range < Int > , value: UInt8 ) {
20
- fill ( buffer : buffer, range: NSMakeRange ( range. lowerBound, range. count) , value: value)
20
+ __fill ( buffer, range: NSMakeRange ( range. lowerBound, range. count) , value: value)
21
21
}
22
22
}
23
23
@@ -28,13 +28,13 @@ extension MTLBuffer {
28
28
#if os(OSX)
29
29
@available ( macOS, introduced: 10.11 )
30
30
public func didModifyRange( _ range: Range < Int > ) {
31
- didModifyRange ( NSMakeRange ( range. lowerBound, range. count) )
31
+ __didModifyRange ( NSMakeRange ( range. lowerBound, range. count) )
32
32
}
33
33
#endif
34
34
35
35
@available ( macOS 10 . 12 , iOS 10 . 0 , tvOS 10 . 0 , * )
36
36
public func addDebugMarker( _ marker: String , range: Range < Int > ) {
37
- addDebugMarker ( marker, range: NSMakeRange ( range. lowerBound, range. count) )
37
+ __addDebugMarker ( marker, range: NSMakeRange ( range. lowerBound, range. count) )
38
38
}
39
39
}
40
40
@@ -44,28 +44,28 @@ extension MTLComputeCommandEncoder {
44
44
45
45
@available ( macOS 10 . 13 , iOS 11 . 0 , tvOS 11 . 0 , * )
46
46
public func useResources( _ resources: [ MTLResource ] , usage: MTLResourceUsage ) {
47
- useResources ( resources, count: resources. count, usage: usage)
47
+ __use ( resources, count: resources. count, usage: usage)
48
48
}
49
49
50
50
@available ( macOS 10 . 13 , iOS 11 . 0 , tvOS 11 . 0 , * )
51
51
public func useHeaps( _ heaps: [ MTLHeap ] ) {
52
- useHeaps ( heaps, count: heaps. count)
52
+ __use ( heaps, count: heaps. count)
53
53
}
54
54
55
55
public func setBuffers( _ buffers: [ MTLBuffer ? ] , offsets: [ Int ] , range: Range < Int > ) {
56
- setBuffers ( buffers, offsets: offsets, with: NSMakeRange ( range. lowerBound, range. count) )
56
+ __setBuffers ( buffers, offsets: offsets, with: NSMakeRange ( range. lowerBound, range. count) )
57
57
}
58
58
59
59
public func setTextures( _ textures: [ MTLTexture ? ] , range: Range < Int > ) {
60
- setTextures ( textures, with: NSMakeRange ( range. lowerBound, range. count) )
60
+ __setTextures ( textures, with: NSMakeRange ( range. lowerBound, range. count) )
61
61
}
62
62
63
63
public func setSamplerStates( _ samplers: [ MTLSamplerState ? ] , range: Range < Int > ) {
64
- setSamplerStates ( samplers, with: NSMakeRange ( range. lowerBound, range. count) )
64
+ __setSamplerStates ( samplers, with: NSMakeRange ( range. lowerBound, range. count) )
65
65
}
66
66
67
67
public func setSamplerStates( _ samplers: [ MTLSamplerState ? ] , lodMinClamps: [ Float ] , lodMaxClamps: [ Float ] , range: Range < Int > ) {
68
- setSamplerStates ( samplers, lodMinClamps: lodMinClamps, lodMaxClamps: lodMaxClamps, with: NSMakeRange ( range. lowerBound, range. count) )
68
+ __setSamplerStates ( samplers, lodMinClamps: lodMinClamps, lodMaxClamps: lodMaxClamps, with: NSMakeRange ( range. lowerBound, range. count) )
69
69
}
70
70
}
71
71
@@ -76,7 +76,7 @@ extension MTLDevice {
76
76
@available ( macOS 10 . 13 , iOS 11 . 0 , tvOS 11 . 0 , * )
77
77
public func getDefaultSamplePositions( sampleCount: Int ) -> [ MTLSamplePosition ] {
78
78
var positions = [ MTLSamplePosition] ( repeating: MTLSamplePosition ( x: 0 , y: 0 ) , count: sampleCount)
79
- getDefaultSamplePositions ( & positions, count: sampleCount)
79
+ __getDefaultSamplePositions ( & positions, count: sampleCount)
80
80
return positions
81
81
}
82
82
}
@@ -87,7 +87,7 @@ extension MTLDevice {
87
87
public func MTLCopyAllDevicesWithObserver( handler: @escaping MTLDeviceNotificationHandler ) -> ( devices: [ MTLDevice ] , observer: NSObject ) {
88
88
var resultTuple : ( devices: [ MTLDevice ] , observer: NSObject )
89
89
resultTuple. observer = NSObject ( )
90
- resultTuple. devices = MTLCopyAllDevicesWithObserver ( AutoreleasingUnsafeMutablePointer < NSObjectProtocol ? > ( & resultTuple. observer) , handler)
90
+ resultTuple. devices = __MTLCopyAllDevicesWithObserver ( AutoreleasingUnsafeMutablePointer < NSObjectProtocol ? > ( & resultTuple. observer) , handler)
91
91
return resultTuple
92
92
}
93
93
#endif
@@ -97,7 +97,7 @@ public func MTLCopyAllDevicesWithObserver(handler: @escaping MTLDeviceNotificati
97
97
extension MTLFunctionConstantValues {
98
98
99
99
public func setConstantValues( _ values: UnsafeRawPointer , type: MTLDataType , range: Range < Int > ) {
100
- setConstantValues ( values, type: type, with: NSMakeRange ( range. lowerBound, range. count) )
100
+ __setConstantValues ( values, type: type, with: NSMakeRange ( range. lowerBound, range. count) )
101
101
}
102
102
103
103
}
@@ -107,15 +107,15 @@ extension MTLFunctionConstantValues {
107
107
extension MTLArgumentEncoder {
108
108
109
109
public func setBuffers( _ buffers: [ MTLBuffer ? ] , offsets: [ Int ] , range: Range < Int > ) {
110
- setBuffers ( buffers, offsets: offsets, with: NSMakeRange ( range. lowerBound, range. count) )
110
+ __setBuffers ( buffers, offsets: offsets, with: NSMakeRange ( range. lowerBound, range. count) )
111
111
}
112
112
113
113
public func setTextures( _ textures: [ MTLTexture ? ] , range: Range < Int > ) {
114
- setTextures ( textures, with: NSMakeRange ( range. lowerBound, range. count) )
114
+ __setTextures ( textures, with: NSMakeRange ( range. lowerBound, range. count) )
115
115
}
116
116
117
117
public func setSamplerStates( _ samplers: [ MTLSamplerState ? ] , range: Range < Int > ) {
118
- setSamplerStates ( samplers, with: NSMakeRange ( range. lowerBound, range. count) )
118
+ __setSamplerStates ( samplers, with: NSMakeRange ( range. lowerBound, range. count) )
119
119
}
120
120
}
121
121
@@ -125,56 +125,56 @@ extension MTLRenderCommandEncoder {
125
125
126
126
@available ( macOS 10 . 13 , iOS 11 . 0 , tvOS 11 . 0 , * )
127
127
public func useResources( _ resources: [ MTLResource ] , usage: MTLResourceUsage ) {
128
- useResources ( resources, count: resources. count, usage: usage)
128
+ __use ( resources, count: resources. count, usage: usage)
129
129
}
130
130
131
131
@available ( macOS 10 . 13 , iOS 11 . 0 , tvOS 11 . 0 , * )
132
132
public func useHeaps( _ heaps: [ MTLHeap ] ) {
133
- useHeaps ( heaps, count: heaps. count)
133
+ __use ( heaps, count: heaps. count)
134
134
}
135
135
136
136
#if os(OSX)
137
137
@available ( macOS 10 . 13 , * )
138
138
public func setViewports( _ viewports: [ MTLViewport ] ) {
139
- setViewports ( viewports, count: viewports. count)
139
+ __setViewports ( viewports, count: viewports. count)
140
140
}
141
141
142
142
@available ( macOS 10 . 13 , * )
143
143
public func setScissorRects( _ scissorRects: [ MTLScissorRect ] ) {
144
- setScissorRects ( scissorRects, count: scissorRects. count)
144
+ __setScissorRects ( scissorRects, count: scissorRects. count)
145
145
}
146
146
#endif
147
147
148
148
public func setVertexBuffers( _ buffers: [ MTLBuffer ? ] , offsets: [ Int ] , range: Range < Int > ) {
149
- setVertexBuffers ( buffers, offsets: offsets, with: NSMakeRange ( range. lowerBound, range. count) )
149
+ __setVertexBuffers ( buffers, offsets: offsets, with: NSMakeRange ( range. lowerBound, range. count) )
150
150
}
151
151
152
152
public func setVertexTextures( _ textures: [ MTLTexture ? ] , range: Range < Int > ) {
153
- setVertexTextures ( textures, with: NSMakeRange ( range. lowerBound, range. count) )
153
+ __setVertexTextures ( textures, with: NSMakeRange ( range. lowerBound, range. count) )
154
154
}
155
155
156
156
public func setVertexSamplerStates( _ samplers: [ MTLSamplerState ? ] , range: Range < Int > ) {
157
- setVertexSamplerStates ( samplers, with: NSMakeRange ( range. lowerBound, range. count) )
157
+ __setVertexSamplerStates ( samplers, with: NSMakeRange ( range. lowerBound, range. count) )
158
158
}
159
159
160
160
public func setVertexSamplerStates( _ samplers: [ MTLSamplerState ? ] , lodMinClamps: [ Float ] , lodMaxClamps: [ Float ] , range: Range < Int > ) {
161
- setVertexSamplerStates ( samplers, lodMinClamps: lodMinClamps, lodMaxClamps: lodMaxClamps, with: NSMakeRange ( range. lowerBound, range. count) )
161
+ __setVertexSamplerStates ( samplers, lodMinClamps: lodMinClamps, lodMaxClamps: lodMaxClamps, with: NSMakeRange ( range. lowerBound, range. count) )
162
162
}
163
163
164
164
public func setFragmentBuffers( _ buffers: [ MTLBuffer ? ] , offsets: [ Int ] , range: Range < Int > ) {
165
- setFragmentBuffers ( buffers, offsets: offsets, with: NSMakeRange ( range. lowerBound, range. count) )
165
+ __setFragmentBuffers ( buffers, offsets: offsets, with: NSMakeRange ( range. lowerBound, range. count) )
166
166
}
167
167
168
168
public func setFragmentTextures( _ textures: [ MTLTexture ? ] , range: Range < Int > ) {
169
- setFragmentTextures ( textures, with: NSMakeRange ( range. lowerBound, range. count) )
169
+ __setFragmentTextures ( textures, with: NSMakeRange ( range. lowerBound, range. count) )
170
170
}
171
171
172
172
public func setFragmentSamplerStates( _ samplers: [ MTLSamplerState ? ] , range: Range < Int > ) {
173
- setFragmentSamplerStates ( samplers, with: NSMakeRange ( range. lowerBound, range. count) )
173
+ __setFragmentSamplerStates ( samplers, with: NSMakeRange ( range. lowerBound, range. count) )
174
174
}
175
175
176
176
public func setFragmentSamplerStates( _ samplers: [ MTLSamplerState ? ] , lodMinClamps: [ Float ] , lodMaxClamps: [ Float ] , range: Range < Int > ) {
177
- setFragmentSamplerStates ( samplers, lodMinClamps: lodMinClamps, lodMaxClamps: lodMaxClamps, with: NSMakeRange ( range. lowerBound, range. count) )
177
+ __setFragmentSamplerStates ( samplers, lodMinClamps: lodMinClamps, lodMaxClamps: lodMaxClamps, with: NSMakeRange ( range. lowerBound, range. count) )
178
178
}
179
179
180
180
#if os(iOS)
@@ -207,14 +207,14 @@ extension MTLRenderPassDescriptor {
207
207
208
208
@available ( macOS 10 . 13 , iOS 11 . 0 , tvOS 11 . 0 , * )
209
209
public func setSamplePositions( _ positions: [ MTLSamplePosition ] ) {
210
- setSamplePositions ( positions, count: positions. count)
210
+ __setSamplePositions ( positions, count: positions. count)
211
211
}
212
212
213
213
@available ( macOS 10 . 13 , iOS 11 . 0 , tvOS 11 . 0 , * )
214
214
public func getSamplePositions( ) -> [ MTLSamplePosition ] {
215
- let numPositions = getSamplePositions ( nil , count: 0 )
215
+ let numPositions = __getSamplePositions ( nil , count: 0 )
216
216
var positions = [ MTLSamplePosition] ( repeating: MTLSamplePosition ( x: 0 , y: 0 ) , count: numPositions)
217
- getSamplePositions ( & positions, count: numPositions)
217
+ __getSamplePositions ( & positions, count: numPositions)
218
218
return positions
219
219
}
220
220
@@ -226,6 +226,6 @@ extension MTLTexture {
226
226
227
227
@available ( macOS 10 . 11 , iOS 9 . 0 , tvOS 9 . 0 , * )
228
228
public func makeTextureView( pixelFormat: MTLPixelFormat , textureType: MTLTextureType , levels levelRange: Range < Int > , slices sliceRange: Range < Int > ) -> MTLTexture ? {
229
- return makeTextureView ( pixelFormat : pixelFormat, textureType: textureType, levels: NSMakeRange ( levelRange. lowerBound, levelRange. count) , slices: NSMakeRange ( sliceRange. lowerBound, sliceRange. count) )
229
+ return __newTextureView ( with : pixelFormat, textureType: textureType, levels: NSMakeRange ( levelRange. lowerBound, levelRange. count) , slices: NSMakeRange ( sliceRange. lowerBound, sliceRange. count) )
230
230
}
231
231
}
0 commit comments