@octane-xplat/macos-renderer 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +95 -20
- package/package.json +15 -2
- package/src/appearance.ts +2 -0
- package/src/fonts.ts +2 -0
- package/src/formatted-text.ts +147 -0
- package/src/gestures.ts +196 -0
- package/src/host-globals.d.ts +55 -0
- package/src/html-text.ts +88 -0
- package/src/image.ts +91 -16
- package/src/index.d.ts +9 -0
- package/src/index.ts +5030 -678
- package/src/layer.ts +11 -9
- package/src/list-template.ts +266 -0
- package/src/list-view.ts +445 -0
- package/src/portal-components.macos.tsx +86 -0
- package/src/presentation.ts +48 -15
- package/src/scroll-view.ts +124 -0
- package/src/tab-view.ts +512 -0
- package/src/template-props.ts +402 -0
- package/src/vendor/listview/LICENSE +19 -0
- package/src/vendor/listview/README.md +1 -0
- package/src/vendor/listview/binding-options.ts +189 -0
- package/src/vendor/listview/expressions.ts +285 -0
- package/src/webview.ts +36 -7
- package/types/ARKitCore.d.ts +199 -0
- package/types/AVFAudio.d.ts +2304 -0
- package/types/AVFoundation.d.ts +6974 -0
- package/types/AVKit.d.ts +215 -0
- package/types/AVRouting.d.ts +7 -0
- package/types/Accelerate.d.ts +4776 -0
- package/types/Accessibility.d.ts +69 -0
- package/types/Accounts.d.ts +134 -0
- package/types/AdSupport.d.ts +12 -0
- package/types/AddressBook.d.ts +1012 -0
- package/types/AppKit.d.ts +34247 -0
- package/types/AppTrackingTransparency.d.ts +23 -0
- package/types/AppleScriptKit.d.ts +6 -0
- package/types/ApplicationServices.d.ts +6346 -0
- package/types/AudioToolbox.d.ts +7129 -0
- package/types/AudioVideoBridging.d.ts +613 -0
- package/types/AuthenticationServices.d.ts +982 -0
- package/types/AutomaticAssessmentConfiguration.d.ts +46 -0
- package/types/Automator.d.ts +248 -0
- package/types/BackgroundAssets.d.ts +9 -0
- package/types/BrowserEngineKit.d.ts +166 -0
- package/types/BusinessChat.d.ts +29 -0
- package/types/CFNetwork.d.ts +931 -0
- package/types/CalendarStore.d.ts +354 -0
- package/types/CallKit.d.ts +30 -0
- package/types/Carbon.d.ts +16207 -0
- package/types/ClassKit.d.ts +281 -0
- package/types/CloudKit.d.ts +1565 -0
- package/types/Collaboration.d.ts +123 -0
- package/types/ColorSync.d.ts +562 -0
- package/types/CompositorServices.d.ts +60 -0
- package/types/ComputeGraph.d.ts +16 -0
- package/types/Contacts.d.ts +1558 -0
- package/types/ContactsUI.d.ts +39 -0
- package/types/CoreAudio.d.ts +1376 -0
- package/types/CoreAudioKit.d.ts +122 -0
- package/types/CoreAudioTypes.d.ts +1003 -0
- package/types/CoreBluetooth.d.ts +657 -0
- package/types/CoreData.d.ts +2479 -0
- package/types/CoreFoundation.d.ts +5546 -0
- package/types/CoreGraphics.d.ts +3676 -0
- package/types/CoreHaptics.d.ts +361 -0
- package/types/CoreImage.d.ts +4781 -0
- package/types/CoreLocation.d.ts +564 -0
- package/types/CoreMIDI.d.ts +1538 -0
- package/types/CoreML.d.ts +905 -0
- package/types/CoreMedia.d.ts +2615 -0
- package/types/CoreMediaIO.d.ts +1046 -0
- package/types/CoreMotion.d.ts +316 -0
- package/types/CoreServices.d.ts +24810 -0
- package/types/CoreSpotlight.d.ts +789 -0
- package/types/CoreTelephony.d.ts +31 -0
- package/types/CoreText.d.ts +3973 -0
- package/types/CoreTransferable.d.ts +3 -0
- package/types/CoreVideo.d.ts +1162 -0
- package/types/CoreWLAN.d.ts +556 -0
- package/types/CryptoTokenKit.d.ts +548 -0
- package/types/DVDPlayback.d.ts +931 -0
- package/types/DataDetection.d.ts +66 -0
- package/types/DeviceCheck.d.ts +46 -0
- package/types/DeviceDiscoveryExtension.d.ts +142 -0
- package/types/DirectoryService.d.ts +966 -0
- package/types/DiscRecording.d.ts +2345 -0
- package/types/DiscRecordingUI.d.ts +288 -0
- package/types/DiskArbitration.d.ts +366 -0
- package/types/DriverKit.d.ts +639 -0
- package/types/EventKit.d.ts +640 -0
- package/types/ExceptionHandling.d.ts +56 -0
- package/types/ExecutionPolicy.d.ts +30 -0
- package/types/ExternalAccessory.d.ts +98 -0
- package/types/FSKit.d.ts +237 -0
- package/types/FileProvider.d.ts +495 -0
- package/types/FileProviderUI.d.ts +31 -0
- package/types/FinderSync.d.ts +165 -0
- package/types/FocusEngine.d.ts +133 -0
- package/types/ForceFeedback.d.ts +399 -0
- package/types/Foundation.d.ts +18216 -0
- package/types/GLKit.d.ts +937 -0
- package/types/GLUT.d.ts +1018 -0
- package/types/GSS.d.ts +855 -0
- package/types/GameController.d.ts +1394 -0
- package/types/GameKit.d.ts +1958 -0
- package/types/GameSave.d.ts +54 -0
- package/types/GameplayKit.d.ts +1645 -0
- package/types/HealthKit.d.ts +278 -0
- package/types/Hypervisor.d.ts +2079 -0
- package/types/ICADevices.d.ts +1400 -0
- package/types/IOBluetooth.d.ts +6094 -0
- package/types/IOBluetoothUI.d.ts +250 -0
- package/types/IOKit.d.ts +25804 -0
- package/types/IOSurface.d.ts +435 -0
- package/types/IOUSBHost.d.ts +809 -0
- package/types/ImageCaptureCore.d.ts +1104 -0
- package/types/ImageIO.d.ts +1697 -0
- package/types/InputMethodKit.d.ts +264 -0
- package/types/InstallerPlugins.d.ts +102 -0
- package/types/InstantMessage.d.ts +229 -0
- package/types/Intents.d.ts +1833 -0
- package/types/IntentsUI.d.ts +5 -0
- package/types/JavaRuntimeSupport.d.ts +520 -0
- package/types/JavaScriptCore.d.ts +934 -0
- package/types/Kerberos.d.ts +3754 -0
- package/types/Kernel.d.ts +33698 -0
- package/types/KernelManagement.d.ts +5 -0
- package/types/LatentSemanticMapping.d.ts +152 -0
- package/types/LinkPresentation.d.ts +57 -0
- package/types/LocalAuthentication.d.ts +94 -0
- package/types/MLCompute.d.ts +2343 -0
- package/types/MapKit.d.ts +2125 -0
- package/types/Matter.d.ts +151 -0
- package/types/MediaAccessibility.d.ts +137 -0
- package/types/MediaLibrary.d.ts +394 -0
- package/types/MediaPlayer.d.ts +475 -0
- package/types/MediaToolbox.d.ts +70 -0
- package/types/Metal.d.ts +4542 -0
- package/types/MetalFX.d.ts +107 -0
- package/types/MetalKit.d.ts +524 -0
- package/types/MetalPerformanceShaders.d.ts +9306 -0
- package/types/MetalPerformanceShadersGraph.d.ts +1394 -0
- package/types/MetricKit.d.ts +231 -0
- package/types/ModelIO.d.ts +2908 -0
- package/types/MultipeerConnectivity.d.ts +348 -0
- package/types/NaturalLanguage.d.ts +556 -0
- package/types/NearbyInteraction.d.ts +51 -0
- package/types/NetFS.d.ts +99 -0
- package/types/Network.d.ts +1622 -0
- package/types/NetworkExtension.d.ts +1574 -0
- package/types/NotificationCenter.d.ts +103 -0
- package/types/OSAKit.d.ts +260 -0
- package/types/OSLog.d.ts +208 -0
- package/types/OpenAL.d.ts +314 -0
- package/types/OpenCL.d.ts +2489 -0
- package/types/OpenDirectory.d.ts +1919 -0
- package/types/OpenGL.d.ts +11322 -0
- package/types/PCSC.d.ts +534 -0
- package/types/PDFKit.d.ts +1575 -0
- package/types/PHASE.d.ts +166 -0
- package/types/ParavirtualizedGraphics.d.ts +153 -0
- package/types/PassKit.d.ts +1287 -0
- package/types/PencilKit.d.ts +201 -0
- package/types/Photos.d.ts +1125 -0
- package/types/PhotosUI.d.ts +397 -0
- package/types/PreferencePanes.d.ts +68 -0
- package/types/ProximityReaderStub.d.ts +5 -0
- package/types/PushKit.d.ts +45 -0
- package/types/Quartz.d.ts +1642 -0
- package/types/QuartzCore.d.ts +1398 -0
- package/types/QuickLook.d.ts +212 -0
- package/types/QuickLookThumbnailing.d.ts +131 -0
- package/types/QuickLookUI.d.ts +117 -0
- package/types/REVISION.json +5 -0
- package/types/ReplayKit.d.ts +294 -0
- package/types/Runtime.d.ts +51605 -0
- package/types/SafariServices.d.ts +430 -0
- package/types/SafetyKit.d.ts +7 -0
- package/types/SceneKit.d.ts +4996 -0
- package/types/ScreenCaptureKit.d.ts +16 -0
- package/types/ScreenSaver.d.ts +41 -0
- package/types/ScreenTime.d.ts +41 -0
- package/types/ScriptingBridge.d.ts +96 -0
- package/types/Security.d.ts +14336 -0
- package/types/SecurityFoundation.d.ts +53 -0
- package/types/SecurityInterface.d.ts +297 -0
- package/types/SensorKit.d.ts +7 -0
- package/types/ServiceManagement.d.ts +71 -0
- package/types/SharedWithYou.d.ts +9 -0
- package/types/SharedWithYouCore.d.ts +5 -0
- package/types/ShazamKit.d.ts +12 -0
- package/types/Social.d.ts +306 -0
- package/types/SoundAnalysis.d.ts +177 -0
- package/types/Speech.d.ts +246 -0
- package/types/SpriteKit.d.ts +2766 -0
- package/types/StoreKit.d.ts +509 -0
- package/types/SyncServices.d.ts +551 -0
- package/types/SystemConfiguration.d.ts +1415 -0
- package/types/SystemExtensions.d.ts +89 -0
- package/types/TWAIN.d.ts +380 -0
- package/types/Tcl.d.ts +4013 -0
- package/types/ThreadNetwork.d.ts +77 -0
- package/types/Tk.d.ts +3750 -0
- package/types/UIUtilities.d.ts +31 -0
- package/types/UniformTypeIdentifiers.d.ts +358 -0
- package/types/UserNotifications.d.ts +538 -0
- package/types/UserNotificationsUI.d.ts +38 -0
- package/types/VideoDecodeAcceleration.d.ts +50 -0
- package/types/VideoSubscriberAccount.d.ts +139 -0
- package/types/VideoToolbox.d.ts +907 -0
- package/types/Virtualization.d.ts +302 -0
- package/types/Vision.d.ts +1723 -0
- package/types/WebKit.d.ts +5195 -0
- package/types/WidgetKit.d.ts +9 -0
- package/types/_LocationEssentials.d.ts +159 -0
- package/types/_ScreenCaptureKit_SwiftUI.d.ts +5 -0
- package/types/iTunesLibrary.d.ts +528 -0
- package/types/index.d.ts +9 -0
- package/types/vecLib.d.ts +33586 -0
- package/types/vmnet.d.ts +178 -0
- package/src/appkit.d.ts +0 -472
package/types/Metal.d.ts
ADDED
|
@@ -0,0 +1,4542 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const MTLDynamicLibraryDomain: string
|
|
5
|
+
|
|
6
|
+
declare const MTLCommonCounterSetTimestamp: string
|
|
7
|
+
|
|
8
|
+
declare const MTLCommonCounterClipperInvocations: string
|
|
9
|
+
|
|
10
|
+
declare const MTLBinaryArchiveDomain: string
|
|
11
|
+
|
|
12
|
+
declare const MTLCommandBufferErrorDomain: string
|
|
13
|
+
|
|
14
|
+
declare const MTLDeviceRemovalRequestedNotification: string
|
|
15
|
+
|
|
16
|
+
declare const MTLDeviceWasAddedNotification: string
|
|
17
|
+
|
|
18
|
+
declare const MTLCommonCounterSetStatistic: string
|
|
19
|
+
|
|
20
|
+
declare const MTLCommonCounterRenderTargetWriteCycles: string
|
|
21
|
+
|
|
22
|
+
declare const MTLCommonCounterFragmentCycles: string
|
|
23
|
+
|
|
24
|
+
declare const MTLCommonCounterPostTessellationVertexCycles: string
|
|
25
|
+
|
|
26
|
+
declare const MTLCommonCounterTessellationCycles: string
|
|
27
|
+
|
|
28
|
+
declare const MTLCommonCounterVertexCycles: string
|
|
29
|
+
|
|
30
|
+
declare const MTLCommonCounterTotalCycles: string
|
|
31
|
+
|
|
32
|
+
declare const MTLCommonCounterComputeKernelInvocations: string
|
|
33
|
+
|
|
34
|
+
declare const MTLCommonCounterFragmentsPassed: string
|
|
35
|
+
|
|
36
|
+
declare const MTLCommonCounterFragmentInvocations: string
|
|
37
|
+
|
|
38
|
+
declare const MTLCommonCounterClipperPrimitivesOut: string
|
|
39
|
+
|
|
40
|
+
declare const MTLCommonCounterVertexInvocations: string
|
|
41
|
+
|
|
42
|
+
declare const MTLDeviceWasRemovedNotification: string
|
|
43
|
+
|
|
44
|
+
declare const MTLCommonCounterTessellationInputPatches: string
|
|
45
|
+
|
|
46
|
+
declare const MTLCommonCounterSetStageUtilization: string
|
|
47
|
+
|
|
48
|
+
declare const MTLCaptureErrorDomain: string
|
|
49
|
+
|
|
50
|
+
declare const MTLCounterErrorDomain: string
|
|
51
|
+
|
|
52
|
+
declare const MTLCommonCounterPostTessellationVertexInvocations: string
|
|
53
|
+
|
|
54
|
+
declare const MTLCommonCounterTimestamp: string
|
|
55
|
+
|
|
56
|
+
declare const MTLLibraryErrorDomain: string
|
|
57
|
+
|
|
58
|
+
declare const MTLCommandBufferEncoderInfoErrorKey: string
|
|
59
|
+
|
|
60
|
+
declare const MTLTextureUsage: {
|
|
61
|
+
Unknown: 0
|
|
62
|
+
ShaderRead: 1
|
|
63
|
+
ShaderWrite: 2
|
|
64
|
+
RenderTarget: 4
|
|
65
|
+
PixelFormatView: 16
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare const MTLLoadAction: {
|
|
69
|
+
DontCare: 0
|
|
70
|
+
Load: 1
|
|
71
|
+
Clear: 2
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare const MTLPatchType: {
|
|
75
|
+
None: 0
|
|
76
|
+
Triangle: 1
|
|
77
|
+
Quad: 2
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare const MTLFunctionOptions: {
|
|
81
|
+
None: 0
|
|
82
|
+
CompileToBinary: 1
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
declare const MTLIOCompressionMethod: {
|
|
86
|
+
Zlib: 0
|
|
87
|
+
LZFSE: 1
|
|
88
|
+
LZ4: 2
|
|
89
|
+
LZMA: 3
|
|
90
|
+
LZBitmap: 4
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare const MTLMultisampleDepthResolveFilter: {
|
|
94
|
+
Sample0: 0
|
|
95
|
+
Min: 1
|
|
96
|
+
Max: 2
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
declare const MTLVertexStepFunction: {
|
|
100
|
+
Constant: 0
|
|
101
|
+
PerVertex: 1
|
|
102
|
+
PerInstance: 2
|
|
103
|
+
PerPatch: 3
|
|
104
|
+
PerPatchControlPoint: 4
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare const MTLStoreAction: {
|
|
108
|
+
DontCare: 0
|
|
109
|
+
Store: 1
|
|
110
|
+
MultisampleResolve: 2
|
|
111
|
+
StoreAndMultisampleResolve: 3
|
|
112
|
+
Unknown: 4
|
|
113
|
+
CustomSampleDepthStore: 5
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
declare const MTLIndexType: {
|
|
117
|
+
Int16: 0
|
|
118
|
+
Int32: 1
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
declare const MTLIntersectionFunctionSignature: {
|
|
122
|
+
None: 0
|
|
123
|
+
Instancing: 1
|
|
124
|
+
TriangleData: 2
|
|
125
|
+
WorldSpaceData: 4
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
declare const MTLDynamicLibraryError: {
|
|
129
|
+
None: 0
|
|
130
|
+
InvalidFile: 1
|
|
131
|
+
CompilationFailure: 2
|
|
132
|
+
UnresolvedInstallName: 3
|
|
133
|
+
DependencyLoadFailure: 4
|
|
134
|
+
Unsupported: 5
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
declare const MTLFunctionLogType: {
|
|
138
|
+
MTLFunctionLogTypeValidation: 0
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
declare const MTLHeapType: {
|
|
142
|
+
Automatic: 0
|
|
143
|
+
Placement: 1
|
|
144
|
+
Sparse: 2
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
declare const MTLAccelerationStructureUsage: {
|
|
148
|
+
None: 0
|
|
149
|
+
Refit: 1
|
|
150
|
+
PreferFastBuild: 2
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
declare const MTLTessellationFactorStepFunction: {
|
|
154
|
+
Constant: 0
|
|
155
|
+
PerPatch: 1
|
|
156
|
+
PerInstance: 2
|
|
157
|
+
PerPatchAndPerInstance: 3
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
declare const MTLPrimitiveTopologyClass: {
|
|
161
|
+
Unspecified: 0
|
|
162
|
+
Point: 1
|
|
163
|
+
Line: 2
|
|
164
|
+
Triangle: 3
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
declare const MTLColorWriteMask: {
|
|
168
|
+
None: 0
|
|
169
|
+
Red: 8
|
|
170
|
+
Green: 4
|
|
171
|
+
Blue: 2
|
|
172
|
+
Alpha: 1
|
|
173
|
+
All: 15
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
declare const MTLRenderStages: {
|
|
177
|
+
Vertex: 1
|
|
178
|
+
Fragment: 2
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
declare const MTLTriangleFillMode: {
|
|
182
|
+
Fill: 0
|
|
183
|
+
Lines: 1
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
declare const MTLDepthClipMode: {
|
|
187
|
+
Clip: 0
|
|
188
|
+
Clamp: 1
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
declare const MTLWinding: {
|
|
192
|
+
MTLWindingClockwise: 0
|
|
193
|
+
Counter: 1
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
declare const MTLCullMode: {
|
|
197
|
+
None: 0
|
|
198
|
+
Front: 1
|
|
199
|
+
Back: 2
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare const MTLVisibilityResultMode: {
|
|
203
|
+
Disabled: 0
|
|
204
|
+
Boolean: 1
|
|
205
|
+
Counting: 2
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
declare const MTLPrimitiveType: {
|
|
209
|
+
Point: 0
|
|
210
|
+
Line: 1
|
|
211
|
+
LineStrip: 2
|
|
212
|
+
Triangle: 3
|
|
213
|
+
TriangleStrip: 4
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
declare const MTLVertexFormat: {
|
|
217
|
+
Invalid: 0
|
|
218
|
+
UChar2: 1
|
|
219
|
+
UChar3: 2
|
|
220
|
+
UChar4: 3
|
|
221
|
+
Char2: 4
|
|
222
|
+
Char3: 5
|
|
223
|
+
Char4: 6
|
|
224
|
+
UChar2Normalized: 7
|
|
225
|
+
UChar3Normalized: 8
|
|
226
|
+
UChar4Normalized: 9
|
|
227
|
+
Char2Normalized: 10
|
|
228
|
+
Char3Normalized: 11
|
|
229
|
+
Char4Normalized: 12
|
|
230
|
+
UShort2: 13
|
|
231
|
+
UShort3: 14
|
|
232
|
+
UShort4: 15
|
|
233
|
+
Short2: 16
|
|
234
|
+
Short3: 17
|
|
235
|
+
Short4: 18
|
|
236
|
+
UShort2Normalized: 19
|
|
237
|
+
UShort3Normalized: 20
|
|
238
|
+
UShort4Normalized: 21
|
|
239
|
+
Short2Normalized: 22
|
|
240
|
+
Short3Normalized: 23
|
|
241
|
+
Short4Normalized: 24
|
|
242
|
+
Half2: 25
|
|
243
|
+
Half3: 26
|
|
244
|
+
Half4: 27
|
|
245
|
+
Float: 28
|
|
246
|
+
Float2: 29
|
|
247
|
+
Float3: 30
|
|
248
|
+
Float4: 31
|
|
249
|
+
Int: 32
|
|
250
|
+
Int2: 33
|
|
251
|
+
Int3: 34
|
|
252
|
+
Int4: 35
|
|
253
|
+
UInt: 36
|
|
254
|
+
UInt2: 37
|
|
255
|
+
UInt3: 38
|
|
256
|
+
UInt4: 39
|
|
257
|
+
Int1010102Normalized: 40
|
|
258
|
+
UInt1010102Normalized: 41
|
|
259
|
+
UChar4Normalized_BGRA: 42
|
|
260
|
+
UChar: 45
|
|
261
|
+
Char: 46
|
|
262
|
+
UCharNormalized: 47
|
|
263
|
+
CharNormalized: 48
|
|
264
|
+
UShort: 49
|
|
265
|
+
Short: 50
|
|
266
|
+
UShortNormalized: 51
|
|
267
|
+
ShortNormalized: 52
|
|
268
|
+
Half: 53
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
declare const MTLStencilOperation: {
|
|
272
|
+
Keep: 0
|
|
273
|
+
Zero: 1
|
|
274
|
+
Replace: 2
|
|
275
|
+
IncrementClamp: 3
|
|
276
|
+
DecrementClamp: 4
|
|
277
|
+
Invert: 5
|
|
278
|
+
IncrementWrap: 6
|
|
279
|
+
DecrementWrap: 7
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
declare const MTLCompareFunction: {
|
|
283
|
+
Never: 0
|
|
284
|
+
Less: 1
|
|
285
|
+
Equal: 2
|
|
286
|
+
LessEqual: 3
|
|
287
|
+
Greater: 4
|
|
288
|
+
NotEqual: 5
|
|
289
|
+
GreaterEqual: 6
|
|
290
|
+
Always: 7
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
declare const MTLDispatchType: {
|
|
294
|
+
Serial: 0
|
|
295
|
+
Concurrent: 1
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
declare const MTLCommandBufferErrorOption: {
|
|
299
|
+
None: 0
|
|
300
|
+
EncoderExecutionStatus: 1
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
declare const MTLCommandBufferError: {
|
|
304
|
+
None: 0
|
|
305
|
+
Internal: 1
|
|
306
|
+
Timeout: 2
|
|
307
|
+
PageFault: 3
|
|
308
|
+
Blacklisted: 4
|
|
309
|
+
AccessRevoked: 4
|
|
310
|
+
NotPermitted: 7
|
|
311
|
+
OutOfMemory: 8
|
|
312
|
+
InvalidResource: 9
|
|
313
|
+
Memoryless: 10
|
|
314
|
+
DeviceRemoved: 11
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
declare const MTLLibraryType: {
|
|
318
|
+
Executable: 0
|
|
319
|
+
Dynamic: 1
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
declare const MTLCommandBufferStatus: {
|
|
323
|
+
NotEnqueued: 0
|
|
324
|
+
Enqueued: 1
|
|
325
|
+
Committed: 2
|
|
326
|
+
Scheduled: 3
|
|
327
|
+
Completed: 4
|
|
328
|
+
Error: 5
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
declare const MTLBlitOption: {
|
|
332
|
+
None: 0
|
|
333
|
+
DepthFromDepthStencil: 1
|
|
334
|
+
StencilFromDepthStencil: 2
|
|
335
|
+
RowLinearPVRTC: 4
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
declare const MTLSparseTextureMappingMode: {
|
|
339
|
+
Map: 0
|
|
340
|
+
Unmap: 1
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
declare const MTLSparseTextureRegionAlignmentMode: {
|
|
344
|
+
Outward: 0
|
|
345
|
+
Inward: 1
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
declare const MTLArgumentBuffersTier: {
|
|
349
|
+
Tier1: 0
|
|
350
|
+
Tier2: 1
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
declare const MTLDeviceLocation: {
|
|
354
|
+
BuiltIn: 0
|
|
355
|
+
Slot: 1
|
|
356
|
+
External: 2
|
|
357
|
+
Unspecified: -1
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
declare const MTLGPUFamily: {
|
|
361
|
+
Apple1: 1001
|
|
362
|
+
Apple2: 1002
|
|
363
|
+
Apple3: 1003
|
|
364
|
+
Apple4: 1004
|
|
365
|
+
Apple5: 1005
|
|
366
|
+
Apple6: 1006
|
|
367
|
+
Apple7: 1007
|
|
368
|
+
Apple8: 1008
|
|
369
|
+
Apple9: 1009
|
|
370
|
+
Apple10: 1010
|
|
371
|
+
Apple11: 1011
|
|
372
|
+
Mac1: 2001
|
|
373
|
+
Mac2: 2002
|
|
374
|
+
Common1: 3001
|
|
375
|
+
Common2: 3002
|
|
376
|
+
Common3: 3003
|
|
377
|
+
MacCatalyst1: 4001
|
|
378
|
+
MacCatalyst2: 4002
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
declare const MTL4CompilerTaskStatus: {
|
|
382
|
+
None: 0
|
|
383
|
+
Scheduled: 1
|
|
384
|
+
Compiling: 2
|
|
385
|
+
Finished: 3
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
declare const MTLLibraryError: {
|
|
389
|
+
Unsupported: 1
|
|
390
|
+
Internal: 2
|
|
391
|
+
CompileFailure: 3
|
|
392
|
+
CompileWarning: 4
|
|
393
|
+
FunctionNotFound: 5
|
|
394
|
+
FileNotFound: 6
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
declare const MTLFloatingPointConversionRoundingMode: {
|
|
398
|
+
ToNearestEven: 0
|
|
399
|
+
TowardZero: 1
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
declare const MTLMathFloatingPointFunctions: {
|
|
403
|
+
Fast: 0
|
|
404
|
+
Precise: 1
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
declare const MTLBindingAccess: {
|
|
408
|
+
BindingAccessReadOnly: 0
|
|
409
|
+
BindingAccessReadWrite: 1
|
|
410
|
+
BindingAccessWriteOnly: 2
|
|
411
|
+
ArgumentAccessReadOnly: 0
|
|
412
|
+
ArgumentAccessReadWrite: 1
|
|
413
|
+
ArgumentAccessWriteOnly: 2
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
declare const MTLArgumentType: {
|
|
417
|
+
Buffer: 0
|
|
418
|
+
ThreadgroupMemory: 1
|
|
419
|
+
Texture: 2
|
|
420
|
+
Sampler: 3
|
|
421
|
+
ImageblockData: 16
|
|
422
|
+
Imageblock: 17
|
|
423
|
+
VisibleFunctionTable: 24
|
|
424
|
+
PrimitiveAccelerationStructure: 25
|
|
425
|
+
InstanceAccelerationStructure: 26
|
|
426
|
+
IntersectionFunctionTable: 27
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
declare const MTLBindingType: {
|
|
430
|
+
Buffer: 0
|
|
431
|
+
ThreadgroupMemory: 1
|
|
432
|
+
Texture: 2
|
|
433
|
+
Sampler: 3
|
|
434
|
+
ImageblockData: 16
|
|
435
|
+
Imageblock: 17
|
|
436
|
+
VisibleFunctionTable: 24
|
|
437
|
+
PrimitiveAccelerationStructure: 25
|
|
438
|
+
InstanceAccelerationStructure: 26
|
|
439
|
+
IntersectionFunctionTable: 27
|
|
440
|
+
ObjectPayload: 34
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
declare const MTLTessellationFactorFormat: {
|
|
444
|
+
MTLTessellationFactorFormatHalf: 0
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
declare const MTLTextureSwizzle: {
|
|
448
|
+
Zero: 0
|
|
449
|
+
One: 1
|
|
450
|
+
Red: 2
|
|
451
|
+
Green: 3
|
|
452
|
+
Blue: 4
|
|
453
|
+
Alpha: 5
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
declare const MTLPixelFormat: {
|
|
457
|
+
Invalid: 0
|
|
458
|
+
A8Unorm: 1
|
|
459
|
+
R8Unorm: 10
|
|
460
|
+
R8Unorm_sRGB: 11
|
|
461
|
+
R8Snorm: 12
|
|
462
|
+
R8Uint: 13
|
|
463
|
+
R8Sint: 14
|
|
464
|
+
R16Unorm: 20
|
|
465
|
+
R16Snorm: 22
|
|
466
|
+
R16Uint: 23
|
|
467
|
+
R16Sint: 24
|
|
468
|
+
R16Float: 25
|
|
469
|
+
RG8Unorm: 30
|
|
470
|
+
RG8Unorm_sRGB: 31
|
|
471
|
+
RG8Snorm: 32
|
|
472
|
+
RG8Uint: 33
|
|
473
|
+
RG8Sint: 34
|
|
474
|
+
B5G6R5Unorm: 40
|
|
475
|
+
A1BGR5Unorm: 41
|
|
476
|
+
ABGR4Unorm: 42
|
|
477
|
+
BGR5A1Unorm: 43
|
|
478
|
+
R32Uint: 53
|
|
479
|
+
R32Sint: 54
|
|
480
|
+
R32Float: 55
|
|
481
|
+
RG16Unorm: 60
|
|
482
|
+
RG16Snorm: 62
|
|
483
|
+
RG16Uint: 63
|
|
484
|
+
RG16Sint: 64
|
|
485
|
+
RG16Float: 65
|
|
486
|
+
RGBA8Unorm: 70
|
|
487
|
+
RGBA8Unorm_sRGB: 71
|
|
488
|
+
RGBA8Snorm: 72
|
|
489
|
+
RGBA8Uint: 73
|
|
490
|
+
RGBA8Sint: 74
|
|
491
|
+
BGRA8Unorm: 80
|
|
492
|
+
BGRA8Unorm_sRGB: 81
|
|
493
|
+
RGB10A2Unorm: 90
|
|
494
|
+
RGB10A2Uint: 91
|
|
495
|
+
RG11B10Float: 92
|
|
496
|
+
RGB9E5Float: 93
|
|
497
|
+
BGR10A2Unorm: 94
|
|
498
|
+
BGR10_XR: 554
|
|
499
|
+
BGR10_XR_sRGB: 555
|
|
500
|
+
RG32Uint: 103
|
|
501
|
+
RG32Sint: 104
|
|
502
|
+
RG32Float: 105
|
|
503
|
+
RGBA16Unorm: 110
|
|
504
|
+
RGBA16Snorm: 112
|
|
505
|
+
RGBA16Uint: 113
|
|
506
|
+
RGBA16Sint: 114
|
|
507
|
+
RGBA16Float: 115
|
|
508
|
+
BGRA10_XR: 552
|
|
509
|
+
BGRA10_XR_sRGB: 553
|
|
510
|
+
RGBA32Uint: 123
|
|
511
|
+
RGBA32Sint: 124
|
|
512
|
+
RGBA32Float: 125
|
|
513
|
+
BC1_RGBA: 130
|
|
514
|
+
BC1_RGBA_sRGB: 131
|
|
515
|
+
BC2_RGBA: 132
|
|
516
|
+
BC2_RGBA_sRGB: 133
|
|
517
|
+
BC3_RGBA: 134
|
|
518
|
+
BC3_RGBA_sRGB: 135
|
|
519
|
+
BC4_RUnorm: 140
|
|
520
|
+
BC4_RSnorm: 141
|
|
521
|
+
BC5_RGUnorm: 142
|
|
522
|
+
BC5_RGSnorm: 143
|
|
523
|
+
BC6H_RGBFloat: 150
|
|
524
|
+
BC6H_RGBUfloat: 151
|
|
525
|
+
BC7_RGBAUnorm: 152
|
|
526
|
+
BC7_RGBAUnorm_sRGB: 153
|
|
527
|
+
PVRTC_RGB_2BPP: 160
|
|
528
|
+
PVRTC_RGB_2BPP_sRGB: 161
|
|
529
|
+
PVRTC_RGB_4BPP: 162
|
|
530
|
+
PVRTC_RGB_4BPP_sRGB: 163
|
|
531
|
+
PVRTC_RGBA_2BPP: 164
|
|
532
|
+
PVRTC_RGBA_2BPP_sRGB: 165
|
|
533
|
+
PVRTC_RGBA_4BPP: 166
|
|
534
|
+
PVRTC_RGBA_4BPP_sRGB: 167
|
|
535
|
+
EAC_R11Unorm: 170
|
|
536
|
+
EAC_R11Snorm: 172
|
|
537
|
+
EAC_RG11Unorm: 174
|
|
538
|
+
EAC_RG11Snorm: 176
|
|
539
|
+
EAC_RGBA8: 178
|
|
540
|
+
EAC_RGBA8_sRGB: 179
|
|
541
|
+
ETC2_RGB8: 180
|
|
542
|
+
ETC2_RGB8_sRGB: 181
|
|
543
|
+
ETC2_RGB8A1: 182
|
|
544
|
+
ETC2_RGB8A1_sRGB: 183
|
|
545
|
+
ASTC_4x4_sRGB: 186
|
|
546
|
+
ASTC_5x4_sRGB: 187
|
|
547
|
+
ASTC_5x5_sRGB: 188
|
|
548
|
+
ASTC_6x5_sRGB: 189
|
|
549
|
+
ASTC_6x6_sRGB: 190
|
|
550
|
+
ASTC_8x5_sRGB: 192
|
|
551
|
+
ASTC_8x6_sRGB: 193
|
|
552
|
+
ASTC_8x8_sRGB: 194
|
|
553
|
+
ASTC_10x5_sRGB: 195
|
|
554
|
+
ASTC_10x6_sRGB: 196
|
|
555
|
+
ASTC_10x8_sRGB: 197
|
|
556
|
+
ASTC_10x10_sRGB: 198
|
|
557
|
+
ASTC_12x10_sRGB: 199
|
|
558
|
+
ASTC_12x12_sRGB: 200
|
|
559
|
+
ASTC_4x4_LDR: 204
|
|
560
|
+
ASTC_5x4_LDR: 205
|
|
561
|
+
ASTC_5x5_LDR: 206
|
|
562
|
+
ASTC_6x5_LDR: 207
|
|
563
|
+
ASTC_6x6_LDR: 208
|
|
564
|
+
ASTC_8x5_LDR: 210
|
|
565
|
+
ASTC_8x6_LDR: 211
|
|
566
|
+
ASTC_8x8_LDR: 212
|
|
567
|
+
ASTC_10x5_LDR: 213
|
|
568
|
+
ASTC_10x6_LDR: 214
|
|
569
|
+
ASTC_10x8_LDR: 215
|
|
570
|
+
ASTC_10x10_LDR: 216
|
|
571
|
+
ASTC_12x10_LDR: 217
|
|
572
|
+
ASTC_12x12_LDR: 218
|
|
573
|
+
ASTC_4x4_HDR: 222
|
|
574
|
+
ASTC_5x4_HDR: 223
|
|
575
|
+
ASTC_5x5_HDR: 224
|
|
576
|
+
ASTC_6x5_HDR: 225
|
|
577
|
+
ASTC_6x6_HDR: 226
|
|
578
|
+
ASTC_8x5_HDR: 228
|
|
579
|
+
ASTC_8x6_HDR: 229
|
|
580
|
+
ASTC_8x8_HDR: 230
|
|
581
|
+
ASTC_10x5_HDR: 231
|
|
582
|
+
ASTC_10x6_HDR: 232
|
|
583
|
+
ASTC_10x8_HDR: 233
|
|
584
|
+
ASTC_10x10_HDR: 234
|
|
585
|
+
ASTC_12x10_HDR: 235
|
|
586
|
+
ASTC_12x12_HDR: 236
|
|
587
|
+
GBGR422: 240
|
|
588
|
+
BGRG422: 241
|
|
589
|
+
Depth16Unorm: 250
|
|
590
|
+
Depth32Float: 252
|
|
591
|
+
Stencil8: 253
|
|
592
|
+
Depth24Unorm_Stencil8: 255
|
|
593
|
+
Depth32Float_Stencil8: 260
|
|
594
|
+
X32_Stencil8: 261
|
|
595
|
+
X24_Stencil8: 262
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
declare const MTLTextureType: {
|
|
599
|
+
Type1D: 0
|
|
600
|
+
Type1DArray: 1
|
|
601
|
+
Type2D: 2
|
|
602
|
+
Type2DArray: 3
|
|
603
|
+
Type2DMultisample: 4
|
|
604
|
+
TypeCube: 5
|
|
605
|
+
TypeCubeArray: 6
|
|
606
|
+
Type3D: 7
|
|
607
|
+
Type2DMultisampleArray: 8
|
|
608
|
+
TypeTextureBuffer: 9
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
declare const MTLDataType: {
|
|
612
|
+
None: 0
|
|
613
|
+
Struct: 1
|
|
614
|
+
Array: 2
|
|
615
|
+
Float: 3
|
|
616
|
+
Float2: 4
|
|
617
|
+
Float3: 5
|
|
618
|
+
Float4: 6
|
|
619
|
+
Float2x2: 7
|
|
620
|
+
Float2x3: 8
|
|
621
|
+
Float2x4: 9
|
|
622
|
+
Float3x2: 10
|
|
623
|
+
Float3x3: 11
|
|
624
|
+
Float3x4: 12
|
|
625
|
+
Float4x2: 13
|
|
626
|
+
Float4x3: 14
|
|
627
|
+
Float4x4: 15
|
|
628
|
+
Half: 16
|
|
629
|
+
Half2: 17
|
|
630
|
+
Half3: 18
|
|
631
|
+
Half4: 19
|
|
632
|
+
Half2x2: 20
|
|
633
|
+
Half2x3: 21
|
|
634
|
+
Half2x4: 22
|
|
635
|
+
Half3x2: 23
|
|
636
|
+
Half3x3: 24
|
|
637
|
+
Half3x4: 25
|
|
638
|
+
Half4x2: 26
|
|
639
|
+
Half4x3: 27
|
|
640
|
+
Half4x4: 28
|
|
641
|
+
Int: 29
|
|
642
|
+
Int2: 30
|
|
643
|
+
Int3: 31
|
|
644
|
+
Int4: 32
|
|
645
|
+
UInt: 33
|
|
646
|
+
UInt2: 34
|
|
647
|
+
UInt3: 35
|
|
648
|
+
UInt4: 36
|
|
649
|
+
Short: 37
|
|
650
|
+
Short2: 38
|
|
651
|
+
Short3: 39
|
|
652
|
+
Short4: 40
|
|
653
|
+
UShort: 41
|
|
654
|
+
UShort2: 42
|
|
655
|
+
UShort3: 43
|
|
656
|
+
UShort4: 44
|
|
657
|
+
Char: 45
|
|
658
|
+
Char2: 46
|
|
659
|
+
Char3: 47
|
|
660
|
+
Char4: 48
|
|
661
|
+
UChar: 49
|
|
662
|
+
UChar2: 50
|
|
663
|
+
UChar3: 51
|
|
664
|
+
UChar4: 52
|
|
665
|
+
Bool: 53
|
|
666
|
+
Bool2: 54
|
|
667
|
+
Bool3: 55
|
|
668
|
+
Bool4: 56
|
|
669
|
+
Texture: 58
|
|
670
|
+
Sampler: 59
|
|
671
|
+
Pointer: 60
|
|
672
|
+
R8Unorm: 62
|
|
673
|
+
R8Snorm: 63
|
|
674
|
+
R16Unorm: 64
|
|
675
|
+
R16Snorm: 65
|
|
676
|
+
RG8Unorm: 66
|
|
677
|
+
RG8Snorm: 67
|
|
678
|
+
RG16Unorm: 68
|
|
679
|
+
RG16Snorm: 69
|
|
680
|
+
RGBA8Unorm: 70
|
|
681
|
+
RGBA8Unorm_sRGB: 71
|
|
682
|
+
RGBA8Snorm: 72
|
|
683
|
+
RGBA16Unorm: 73
|
|
684
|
+
RGBA16Snorm: 74
|
|
685
|
+
RGB10A2Unorm: 75
|
|
686
|
+
RG11B10Float: 76
|
|
687
|
+
RGB9E5Float: 77
|
|
688
|
+
RenderPipeline: 78
|
|
689
|
+
ComputePipeline: 79
|
|
690
|
+
IndirectCommandBuffer: 80
|
|
691
|
+
VisibleFunctionTable: 115
|
|
692
|
+
IntersectionFunctionTable: 116
|
|
693
|
+
PrimitiveAccelerationStructure: 117
|
|
694
|
+
InstanceAccelerationStructure: 118
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
declare const MTLHazardTrackingMode: {
|
|
698
|
+
Default: 0
|
|
699
|
+
Untracked: 1
|
|
700
|
+
Tracked: 2
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
declare const MTLCPUCacheMode: {
|
|
704
|
+
DefaultCache: 0
|
|
705
|
+
WriteCombined: 1
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
declare const MTLPurgeableState: {
|
|
709
|
+
KeepCurrent: 1
|
|
710
|
+
NonVolatile: 2
|
|
711
|
+
Volatile: 3
|
|
712
|
+
Empty: 4
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
declare const MTLBarrierScope: {
|
|
716
|
+
Buffers: 1
|
|
717
|
+
Textures: 2
|
|
718
|
+
RenderTargets: 4
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
declare const MTLCaptureError: {
|
|
722
|
+
NotSupported: 1
|
|
723
|
+
AlreadyCapturing: 2
|
|
724
|
+
InvalidDescriptor: 3
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
declare const MTLCounterSamplingPoint: {
|
|
728
|
+
Stage: 0
|
|
729
|
+
Draw: 1
|
|
730
|
+
Dispatch: 2
|
|
731
|
+
TileDispatch: 3
|
|
732
|
+
Blit: 4
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
declare const MTLReadWriteTextureTier: {
|
|
736
|
+
TierNone: 0
|
|
737
|
+
Tier1: 1
|
|
738
|
+
Tier2: 2
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
declare const MTLLanguageVersion: {
|
|
742
|
+
Version1_1: 65537
|
|
743
|
+
Version1_2: 65538
|
|
744
|
+
Version2_0: 131072
|
|
745
|
+
Version2_1: 131073
|
|
746
|
+
Version2_2: 131074
|
|
747
|
+
Version2_3: 131075
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
declare const MTLAttributeFormat: {
|
|
751
|
+
Invalid: 0
|
|
752
|
+
UChar2: 1
|
|
753
|
+
UChar3: 2
|
|
754
|
+
UChar4: 3
|
|
755
|
+
Char2: 4
|
|
756
|
+
Char3: 5
|
|
757
|
+
Char4: 6
|
|
758
|
+
UChar2Normalized: 7
|
|
759
|
+
UChar3Normalized: 8
|
|
760
|
+
UChar4Normalized: 9
|
|
761
|
+
Char2Normalized: 10
|
|
762
|
+
Char3Normalized: 11
|
|
763
|
+
Char4Normalized: 12
|
|
764
|
+
UShort2: 13
|
|
765
|
+
UShort3: 14
|
|
766
|
+
UShort4: 15
|
|
767
|
+
Short2: 16
|
|
768
|
+
Short3: 17
|
|
769
|
+
Short4: 18
|
|
770
|
+
UShort2Normalized: 19
|
|
771
|
+
UShort3Normalized: 20
|
|
772
|
+
UShort4Normalized: 21
|
|
773
|
+
Short2Normalized: 22
|
|
774
|
+
Short3Normalized: 23
|
|
775
|
+
Short4Normalized: 24
|
|
776
|
+
Half2: 25
|
|
777
|
+
Half3: 26
|
|
778
|
+
Half4: 27
|
|
779
|
+
Float: 28
|
|
780
|
+
Float2: 29
|
|
781
|
+
Float3: 30
|
|
782
|
+
Float4: 31
|
|
783
|
+
Int: 32
|
|
784
|
+
Int2: 33
|
|
785
|
+
Int3: 34
|
|
786
|
+
Int4: 35
|
|
787
|
+
UInt: 36
|
|
788
|
+
UInt2: 37
|
|
789
|
+
UInt3: 38
|
|
790
|
+
UInt4: 39
|
|
791
|
+
Int1010102Normalized: 40
|
|
792
|
+
UInt1010102Normalized: 41
|
|
793
|
+
UChar4Normalized_BGRA: 42
|
|
794
|
+
UChar: 45
|
|
795
|
+
Char: 46
|
|
796
|
+
UCharNormalized: 47
|
|
797
|
+
CharNormalized: 48
|
|
798
|
+
UShort: 49
|
|
799
|
+
Short: 50
|
|
800
|
+
UShortNormalized: 51
|
|
801
|
+
ShortNormalized: 52
|
|
802
|
+
Half: 53
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
declare const MTLStoreActionOptions: {
|
|
806
|
+
None: 0
|
|
807
|
+
CustomSamplePositions: 1
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
declare const MTLMutability: {
|
|
811
|
+
Default: 0
|
|
812
|
+
Mutable: 1
|
|
813
|
+
Immutable: 2
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
declare const MTLMathMode: {
|
|
817
|
+
Safe: 0
|
|
818
|
+
Relaxed: 1
|
|
819
|
+
Fast: 2
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
declare const MTLTessellationControlPointIndexType: {
|
|
823
|
+
None: 0
|
|
824
|
+
UInt16: 1
|
|
825
|
+
UInt32: 2
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
declare const MTLCounterSampleBufferError: {
|
|
829
|
+
OutOfMemory: 0
|
|
830
|
+
Invalid: 1
|
|
831
|
+
Internal: 2
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
declare const MTLCaptureDestination: {
|
|
835
|
+
DeveloperTools: 1
|
|
836
|
+
GPUTraceDocument: 2
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
declare const MTLSamplerMipFilter: {
|
|
840
|
+
NotMipmapped: 0
|
|
841
|
+
Nearest: 1
|
|
842
|
+
Linear: 2
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
declare const MTLCommandEncoderErrorState: {
|
|
846
|
+
Unknown: 0
|
|
847
|
+
Completed: 1
|
|
848
|
+
Affected: 2
|
|
849
|
+
Pending: 3
|
|
850
|
+
Faulted: 4
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
declare const MTLTessellationPartitionMode: {
|
|
854
|
+
Pow2: 0
|
|
855
|
+
Integer: 1
|
|
856
|
+
FractionalOdd: 2
|
|
857
|
+
FractionalEven: 3
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
declare const MTLResourceOptions: {
|
|
861
|
+
CPUCacheModeDefaultCache: 0
|
|
862
|
+
CPUCacheModeWriteCombined: 1
|
|
863
|
+
StorageModeShared: 0
|
|
864
|
+
StorageModeManaged: 16
|
|
865
|
+
StorageModePrivate: 32
|
|
866
|
+
StorageModeMemoryless: 48
|
|
867
|
+
HazardTrackingModeDefault: 0
|
|
868
|
+
HazardTrackingModeUntracked: 256
|
|
869
|
+
HazardTrackingModeTracked: 512
|
|
870
|
+
OptionCPUCacheModeDefault: 0
|
|
871
|
+
OptionCPUCacheModeWriteCombined: 1
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
declare const MTL4LogicalToPhysicalColorAttachmentMappingState: {
|
|
875
|
+
Identity: 0
|
|
876
|
+
Inherited: 1
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
declare const MTLAccelerationStructureInstanceOptions: {
|
|
880
|
+
None: 0
|
|
881
|
+
DisableTriangleCulling: 1
|
|
882
|
+
TriangleFrontFacingWindingCounterClockwise: 2
|
|
883
|
+
Opaque: 4
|
|
884
|
+
NonOpaque: 8
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
declare const MTLSamplerMinMagFilter: {
|
|
888
|
+
Nearest: 0
|
|
889
|
+
Linear: 1
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
declare const MTLFeatureSet: {
|
|
893
|
+
Set_macOS_GPUFamily1_v1: 10000
|
|
894
|
+
Set_OSX_GPUFamily1_v1: 10000
|
|
895
|
+
Set_macOS_GPUFamily1_v2: 10001
|
|
896
|
+
Set_OSX_GPUFamily1_v2: 10001
|
|
897
|
+
Set_macOS_ReadWriteTextureTier2: 10002
|
|
898
|
+
Set_OSX_ReadWriteTextureTier2: 10002
|
|
899
|
+
Set_macOS_GPUFamily1_v3: 10003
|
|
900
|
+
Set_macOS_GPUFamily1_v4: 10004
|
|
901
|
+
Set_macOS_GPUFamily2_v1: 10005
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
declare const MTLBlendOperation: {
|
|
905
|
+
Add: 0
|
|
906
|
+
Subtract: 1
|
|
907
|
+
ReverseSubtract: 2
|
|
908
|
+
Min: 3
|
|
909
|
+
Max: 4
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
declare const MTLMultisampleStencilResolveFilter: {
|
|
913
|
+
Sample0: 0
|
|
914
|
+
DepthResolvedSample: 1
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
declare const MTLBinaryArchiveError: {
|
|
918
|
+
None: 0
|
|
919
|
+
InvalidFile: 1
|
|
920
|
+
UnexpectedElement: 2
|
|
921
|
+
CompilationFailure: 3
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
declare const MTLSamplerBorderColor: {
|
|
925
|
+
TransparentBlack: 0
|
|
926
|
+
OpaqueBlack: 1
|
|
927
|
+
OpaqueWhite: 2
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
declare const MTLIndirectCommandType: {
|
|
931
|
+
Draw: 1
|
|
932
|
+
DrawIndexed: 2
|
|
933
|
+
DrawPatches: 4
|
|
934
|
+
DrawIndexedPatches: 8
|
|
935
|
+
ConcurrentDispatch: 32
|
|
936
|
+
ConcurrentDispatchThreads: 64
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
declare const MTLStorageMode: {
|
|
940
|
+
Shared: 0
|
|
941
|
+
Managed: 1
|
|
942
|
+
Private: 2
|
|
943
|
+
Memoryless: 3
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
declare const MTLPipelineOption: {
|
|
947
|
+
None: 0
|
|
948
|
+
ArgumentInfo: 1
|
|
949
|
+
BindingInfo: 1
|
|
950
|
+
BufferTypeInfo: 2
|
|
951
|
+
FailOnBinaryArchiveMiss: 4
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
declare const MTLBlendFactor: {
|
|
955
|
+
Zero: 0
|
|
956
|
+
One: 1
|
|
957
|
+
SourceColor: 2
|
|
958
|
+
OneMinusSourceColor: 3
|
|
959
|
+
SourceAlpha: 4
|
|
960
|
+
OneMinusSourceAlpha: 5
|
|
961
|
+
DestinationColor: 6
|
|
962
|
+
OneMinusDestinationColor: 7
|
|
963
|
+
DestinationAlpha: 8
|
|
964
|
+
OneMinusDestinationAlpha: 9
|
|
965
|
+
SourceAlphaSaturated: 10
|
|
966
|
+
BlendColor: 11
|
|
967
|
+
OneMinusBlendColor: 12
|
|
968
|
+
BlendAlpha: 13
|
|
969
|
+
OneMinusBlendAlpha: 14
|
|
970
|
+
Source1Color: 15
|
|
971
|
+
OneMinusSource1Color: 16
|
|
972
|
+
Source1Alpha: 17
|
|
973
|
+
OneMinusSource1Alpha: 18
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
declare const MTLResourceUsage: {
|
|
977
|
+
Read: 1
|
|
978
|
+
Write: 2
|
|
979
|
+
Sample: 4
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
declare const MTLFunctionType: {
|
|
983
|
+
Vertex: 1
|
|
984
|
+
Fragment: 2
|
|
985
|
+
Kernel: 3
|
|
986
|
+
Visible: 5
|
|
987
|
+
Intersection: 6
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
declare const MTLStepFunction: {
|
|
991
|
+
Constant: 0
|
|
992
|
+
PerVertex: 1
|
|
993
|
+
PerInstance: 2
|
|
994
|
+
PerPatch: 3
|
|
995
|
+
PerPatchControlPoint: 4
|
|
996
|
+
ThreadPositionInGridX: 5
|
|
997
|
+
ThreadPositionInGridY: 6
|
|
998
|
+
ThreadPositionInGridXIndexed: 7
|
|
999
|
+
ThreadPositionInGridYIndexed: 8
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
declare const MTLSamplerAddressMode: {
|
|
1003
|
+
ClampToEdge: 0
|
|
1004
|
+
MirrorClampToEdge: 1
|
|
1005
|
+
Repeat: 2
|
|
1006
|
+
MirrorRepeat: 3
|
|
1007
|
+
ClampToZero: 4
|
|
1008
|
+
ClampToBorderColor: 5
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
declare class MTLTextureSwizzleChannels {
|
|
1012
|
+
constructor(init?: MTLTextureSwizzleChannels)
|
|
1013
|
+
red: interop.Enum<typeof MTLTextureSwizzle>
|
|
1014
|
+
green: interop.Enum<typeof MTLTextureSwizzle>
|
|
1015
|
+
blue: interop.Enum<typeof MTLTextureSwizzle>
|
|
1016
|
+
alpha: interop.Enum<typeof MTLTextureSwizzle>
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
declare class MTLResourceID {
|
|
1020
|
+
constructor(init?: MTLResourceID)
|
|
1021
|
+
_impl: number
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
declare class MTLIntersectionFunctionBufferArguments {
|
|
1025
|
+
constructor(init?: MTLIntersectionFunctionBufferArguments)
|
|
1026
|
+
intersectionFunctionBuffer: number
|
|
1027
|
+
intersectionFunctionBufferSize: number
|
|
1028
|
+
intersectionFunctionStride: number
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
declare class MTLIndirectCommandBufferExecutionRange {
|
|
1032
|
+
constructor(init?: MTLIndirectCommandBufferExecutionRange)
|
|
1033
|
+
location: number
|
|
1034
|
+
length: number
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
declare class MTL4UpdateSparseTextureMappingOperation {
|
|
1038
|
+
constructor(init?: MTL4UpdateSparseTextureMappingOperation)
|
|
1039
|
+
mode: interop.Enum<typeof MTLSparseTextureMappingMode>
|
|
1040
|
+
textureRegion: MTLRegion
|
|
1041
|
+
textureLevel: number
|
|
1042
|
+
textureSlice: number
|
|
1043
|
+
heapOffset: number
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
declare class MTLAccelerationStructureInstanceDescriptor {
|
|
1047
|
+
constructor(init?: MTLAccelerationStructureInstanceDescriptor)
|
|
1048
|
+
transformationMatrix: _MTLPackedFloat4x3
|
|
1049
|
+
options: interop.Enum<typeof MTLAccelerationStructureInstanceOptions>
|
|
1050
|
+
mask: number
|
|
1051
|
+
intersectionFunctionTableOffset: number
|
|
1052
|
+
accelerationStructureIndex: number
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
declare class MTLPackedFloatQuaternion {
|
|
1056
|
+
constructor(init?: MTLPackedFloatQuaternion)
|
|
1057
|
+
x: number
|
|
1058
|
+
y: number
|
|
1059
|
+
z: number
|
|
1060
|
+
w: number
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
declare class unnamed_9929133997123268838 {
|
|
1064
|
+
constructor(init?: unnamed_9929133997123268838)
|
|
1065
|
+
x: number
|
|
1066
|
+
y: number
|
|
1067
|
+
z: number
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
declare class _MTLPackedFloat3 {
|
|
1071
|
+
constructor(init?: _MTLPackedFloat3)
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
declare class MTLTriangleTessellationFactorsHalf {
|
|
1075
|
+
constructor(init?: MTLTriangleTessellationFactorsHalf)
|
|
1076
|
+
edgeTessellationFactor: unknown /* const array */
|
|
1077
|
+
insideTessellationFactor: number
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
declare class MTLDrawPatchIndirectArguments {
|
|
1081
|
+
constructor(init?: MTLDrawPatchIndirectArguments)
|
|
1082
|
+
patchCount: number
|
|
1083
|
+
instanceCount: number
|
|
1084
|
+
patchStart: number
|
|
1085
|
+
baseInstance: number
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
declare class MTLVertexAmplificationViewMapping {
|
|
1089
|
+
constructor(init?: MTLVertexAmplificationViewMapping)
|
|
1090
|
+
viewportArrayIndexOffset: number
|
|
1091
|
+
renderTargetArrayIndexOffset: number
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
declare class MTLDrawIndexedPrimitivesIndirectArguments {
|
|
1095
|
+
constructor(init?: MTLDrawIndexedPrimitivesIndirectArguments)
|
|
1096
|
+
indexCount: number
|
|
1097
|
+
instanceCount: number
|
|
1098
|
+
indexStart: number
|
|
1099
|
+
baseVertex: number
|
|
1100
|
+
baseInstance: number
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
declare class MTLViewport {
|
|
1104
|
+
constructor(init?: MTLViewport)
|
|
1105
|
+
originX: number
|
|
1106
|
+
originY: number
|
|
1107
|
+
width: number
|
|
1108
|
+
height: number
|
|
1109
|
+
znear: number
|
|
1110
|
+
zfar: number
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
declare class MTLStageInRegionIndirectArguments {
|
|
1114
|
+
constructor(init?: MTLStageInRegionIndirectArguments)
|
|
1115
|
+
stageInOrigin: unknown /* const array */
|
|
1116
|
+
stageInSize: unknown /* const array */
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
declare class MTL4TimestampHeapEntry {
|
|
1120
|
+
constructor(init?: MTL4TimestampHeapEntry)
|
|
1121
|
+
timestamp: number
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
declare class MTLCounterResultStageUtilization {
|
|
1125
|
+
constructor(init?: MTLCounterResultStageUtilization)
|
|
1126
|
+
totalCycles: number
|
|
1127
|
+
vertexCycles: number
|
|
1128
|
+
tessellationCycles: number
|
|
1129
|
+
postTessellationVertexCycles: number
|
|
1130
|
+
fragmentCycles: number
|
|
1131
|
+
renderTargetCycles: number
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
declare class MTLRegion {
|
|
1135
|
+
constructor(init?: MTLRegion)
|
|
1136
|
+
origin: MTLOrigin
|
|
1137
|
+
size: MTLSize
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
declare class MTLOrigin {
|
|
1141
|
+
constructor(init?: MTLOrigin)
|
|
1142
|
+
x: number
|
|
1143
|
+
y: number
|
|
1144
|
+
z: number
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
declare class MTLDispatchThreadgroupsIndirectArguments {
|
|
1148
|
+
constructor(init?: MTLDispatchThreadgroupsIndirectArguments)
|
|
1149
|
+
threadgroupsPerGrid: unknown /* const array */
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
declare class MTL4UpdateSparseBufferMappingOperation {
|
|
1153
|
+
constructor(init?: MTL4UpdateSparseBufferMappingOperation)
|
|
1154
|
+
mode: interop.Enum<typeof MTLSparseTextureMappingMode>
|
|
1155
|
+
bufferRange: _NSRange
|
|
1156
|
+
heapOffset: number
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
declare class MTLScissorRect {
|
|
1160
|
+
constructor(init?: MTLScissorRect)
|
|
1161
|
+
x: number
|
|
1162
|
+
y: number
|
|
1163
|
+
width: number
|
|
1164
|
+
height: number
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
declare class MTLCounterResultStatistic {
|
|
1168
|
+
constructor(init?: MTLCounterResultStatistic)
|
|
1169
|
+
tessellationInputPatches: number
|
|
1170
|
+
vertexInvocations: number
|
|
1171
|
+
postTessellationVertexInvocations: number
|
|
1172
|
+
clipperInvocations: number
|
|
1173
|
+
clipperPrimitivesOut: number
|
|
1174
|
+
fragmentInvocations: number
|
|
1175
|
+
fragmentsPassed: number
|
|
1176
|
+
computeKernelInvocations: number
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
declare class _MTLAxisAlignedBoundingBox {
|
|
1180
|
+
constructor(init?: _MTLAxisAlignedBoundingBox)
|
|
1181
|
+
min: _MTLPackedFloat3
|
|
1182
|
+
max: _MTLPackedFloat3
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
declare class MTLMapIndirectArguments {
|
|
1186
|
+
constructor(init?: MTLMapIndirectArguments)
|
|
1187
|
+
regionOriginX: number
|
|
1188
|
+
regionOriginY: number
|
|
1189
|
+
regionOriginZ: number
|
|
1190
|
+
regionSizeWidth: number
|
|
1191
|
+
regionSizeHeight: number
|
|
1192
|
+
regionSizeDepth: number
|
|
1193
|
+
mipMapLevel: number
|
|
1194
|
+
sliceId: number
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
declare class MTLAccelerationStructureUserIDInstanceDescriptor {
|
|
1198
|
+
constructor(init?: MTLAccelerationStructureUserIDInstanceDescriptor)
|
|
1199
|
+
transformationMatrix: _MTLPackedFloat4x3
|
|
1200
|
+
options: interop.Enum<typeof MTLAccelerationStructureInstanceOptions>
|
|
1201
|
+
mask: number
|
|
1202
|
+
intersectionFunctionTableOffset: number
|
|
1203
|
+
accelerationStructureIndex: number
|
|
1204
|
+
userID: number
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
declare class MTLIndirectAccelerationStructureMotionInstanceDescriptor {
|
|
1208
|
+
constructor(init?: MTLIndirectAccelerationStructureMotionInstanceDescriptor)
|
|
1209
|
+
options: interop.Enum<typeof MTLAccelerationStructureInstanceOptions>
|
|
1210
|
+
mask: number
|
|
1211
|
+
intersectionFunctionTableOffset: number
|
|
1212
|
+
userID: number
|
|
1213
|
+
accelerationStructureID: MTLResourceID
|
|
1214
|
+
motionTransformsStartIndex: number
|
|
1215
|
+
motionTransformsCount: number
|
|
1216
|
+
motionStartBorderMode: interop.Enum<typeof MTLMotionBorderMode>
|
|
1217
|
+
motionEndBorderMode: interop.Enum<typeof MTLMotionBorderMode>
|
|
1218
|
+
motionStartTime: number
|
|
1219
|
+
motionEndTime: number
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
declare class MTLSize {
|
|
1223
|
+
constructor(init?: MTLSize)
|
|
1224
|
+
width: number
|
|
1225
|
+
height: number
|
|
1226
|
+
depth: number
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
declare class MTLQuadTessellationFactorsHalf {
|
|
1230
|
+
constructor(init?: MTLQuadTessellationFactorsHalf)
|
|
1231
|
+
edgeTessellationFactor: unknown /* const array */
|
|
1232
|
+
insideTessellationFactor: unknown /* const array */
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
declare class MTL4CopySparseBufferMappingOperation {
|
|
1236
|
+
constructor(init?: MTL4CopySparseBufferMappingOperation)
|
|
1237
|
+
sourceRange: _NSRange
|
|
1238
|
+
destinationOffset: number
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
declare class MTLComponentTransform {
|
|
1242
|
+
constructor(init?: MTLComponentTransform)
|
|
1243
|
+
scale: _MTLPackedFloat3
|
|
1244
|
+
shear: _MTLPackedFloat3
|
|
1245
|
+
pivot: _MTLPackedFloat3
|
|
1246
|
+
rotation: MTLPackedFloatQuaternion
|
|
1247
|
+
translation: _MTLPackedFloat3
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
declare class MTLSamplePosition {
|
|
1251
|
+
constructor(init?: MTLSamplePosition)
|
|
1252
|
+
x: number
|
|
1253
|
+
y: number
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
declare class MTLAccelerationStructureSizes {
|
|
1257
|
+
constructor(init?: MTLAccelerationStructureSizes)
|
|
1258
|
+
accelerationStructureSize: number
|
|
1259
|
+
buildScratchBufferSize: number
|
|
1260
|
+
refitScratchBufferSize: number
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
declare class MTLCounterResultTimestamp {
|
|
1264
|
+
constructor(init?: MTLCounterResultTimestamp)
|
|
1265
|
+
timestamp: number
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
declare class MTLAccelerationStructureMotionInstanceDescriptor {
|
|
1269
|
+
constructor(init?: MTLAccelerationStructureMotionInstanceDescriptor)
|
|
1270
|
+
options: interop.Enum<typeof MTLAccelerationStructureInstanceOptions>
|
|
1271
|
+
mask: number
|
|
1272
|
+
intersectionFunctionTableOffset: number
|
|
1273
|
+
accelerationStructureIndex: number
|
|
1274
|
+
userID: number
|
|
1275
|
+
motionTransformsStartIndex: number
|
|
1276
|
+
motionTransformsCount: number
|
|
1277
|
+
motionStartBorderMode: interop.Enum<typeof MTLMotionBorderMode>
|
|
1278
|
+
motionEndBorderMode: interop.Enum<typeof MTLMotionBorderMode>
|
|
1279
|
+
motionStartTime: number
|
|
1280
|
+
motionEndTime: number
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
declare class MTLIndirectAccelerationStructureInstanceDescriptor {
|
|
1284
|
+
constructor(init?: MTLIndirectAccelerationStructureInstanceDescriptor)
|
|
1285
|
+
transformationMatrix: _MTLPackedFloat4x3
|
|
1286
|
+
options: interop.Enum<typeof MTLAccelerationStructureInstanceOptions>
|
|
1287
|
+
mask: number
|
|
1288
|
+
intersectionFunctionTableOffset: number
|
|
1289
|
+
userID: number
|
|
1290
|
+
accelerationStructureID: MTLResourceID
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
declare class MTL4BufferRange {
|
|
1294
|
+
constructor(init?: MTL4BufferRange)
|
|
1295
|
+
bufferAddress: number
|
|
1296
|
+
length: number
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
declare class MTL4CopySparseTextureMappingOperation {
|
|
1300
|
+
constructor(init?: MTL4CopySparseTextureMappingOperation)
|
|
1301
|
+
sourceRegion: MTLRegion
|
|
1302
|
+
sourceLevel: number
|
|
1303
|
+
sourceSlice: number
|
|
1304
|
+
destinationOrigin: MTLOrigin
|
|
1305
|
+
destinationLevel: number
|
|
1306
|
+
destinationSlice: number
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
declare class MTLClearColor {
|
|
1310
|
+
constructor(init?: MTLClearColor)
|
|
1311
|
+
red: number
|
|
1312
|
+
green: number
|
|
1313
|
+
blue: number
|
|
1314
|
+
alpha: number
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
declare class MTLDispatchThreadsIndirectArguments {
|
|
1318
|
+
constructor(init?: MTLDispatchThreadsIndirectArguments)
|
|
1319
|
+
threadsPerGrid: unknown /* const array */
|
|
1320
|
+
threadsPerThreadgroup: unknown /* const array */
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
declare class MTLDrawPrimitivesIndirectArguments {
|
|
1324
|
+
constructor(init?: MTLDrawPrimitivesIndirectArguments)
|
|
1325
|
+
vertexCount: number
|
|
1326
|
+
instanceCount: number
|
|
1327
|
+
vertexStart: number
|
|
1328
|
+
baseInstance: number
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
declare class _MTLPackedFloat4x3 {
|
|
1332
|
+
constructor(init?: _MTLPackedFloat4x3)
|
|
1333
|
+
columns: unknown /* const array */
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
declare class MTLSizeAndAlign {
|
|
1337
|
+
constructor(init?: MTLSizeAndAlign)
|
|
1338
|
+
size: number
|
|
1339
|
+
align: number
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
type unnamed_13227377754740722842Descriptor = { elements: unknown /* const array */ }
|
|
1343
|
+
|
|
1344
|
+
declare class unnamed_13227377754740722842 {
|
|
1345
|
+
constructor(init?: unnamed_13227377754740722842Descriptor)
|
|
1346
|
+
elements: unknown /* const array */
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
declare function MTLCreateSystemDefaultDevice(): MTLDevice
|
|
1350
|
+
|
|
1351
|
+
declare function MTLCopyAllDevices(): NSArray
|
|
1352
|
+
|
|
1353
|
+
declare function MTLCopyAllDevicesWithObserver(
|
|
1354
|
+
observer: interop.PointerConvertible,
|
|
1355
|
+
handler: (p1: MTLDevice, p2: string) => void,
|
|
1356
|
+
): NSArray
|
|
1357
|
+
|
|
1358
|
+
declare function MTLRemoveDeviceObserver(observer: NSObject): void
|
|
1359
|
+
|
|
1360
|
+
declare function MTLIOCompressionContextDefaultChunkSize(): number
|
|
1361
|
+
|
|
1362
|
+
declare interface MTL4CommandQueue extends NSObjectProtocol {}
|
|
1363
|
+
|
|
1364
|
+
declare class MTL4CommandQueue extends NativeObject implements MTL4CommandQueue {}
|
|
1365
|
+
|
|
1366
|
+
declare interface MTLSharedEvent extends MTLEvent {
|
|
1367
|
+
notifyListenerAtValueBlock(
|
|
1368
|
+
listener: MTLSharedEventListener,
|
|
1369
|
+
value: number,
|
|
1370
|
+
block: (p1: MTLSharedEvent, p2: number) => void,
|
|
1371
|
+
): void
|
|
1372
|
+
|
|
1373
|
+
newSharedEventHandle(): MTLSharedEventHandle
|
|
1374
|
+
|
|
1375
|
+
signaledValue: number
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
declare class MTLSharedEvent extends NativeObject implements MTLSharedEvent {}
|
|
1379
|
+
|
|
1380
|
+
declare interface MTLCommandBuffer extends NSObjectProtocol {
|
|
1381
|
+
readonly device: MTLDevice
|
|
1382
|
+
|
|
1383
|
+
readonly commandQueue: MTLCommandQueue
|
|
1384
|
+
|
|
1385
|
+
readonly retainedReferences: boolean
|
|
1386
|
+
|
|
1387
|
+
readonly errorOptions: interop.Enum<typeof MTLCommandBufferErrorOption>
|
|
1388
|
+
|
|
1389
|
+
label: string
|
|
1390
|
+
|
|
1391
|
+
readonly kernelStartTime: number
|
|
1392
|
+
|
|
1393
|
+
readonly kernelEndTime: number
|
|
1394
|
+
|
|
1395
|
+
readonly logs: MTLLogContainer
|
|
1396
|
+
|
|
1397
|
+
readonly GPUStartTime: number
|
|
1398
|
+
|
|
1399
|
+
readonly GPUEndTime: number
|
|
1400
|
+
|
|
1401
|
+
enqueue(): void
|
|
1402
|
+
|
|
1403
|
+
commit(): void
|
|
1404
|
+
|
|
1405
|
+
addScheduledHandler(block: (p1: MTLCommandBuffer) => void): void
|
|
1406
|
+
|
|
1407
|
+
presentDrawable(drawable: MTLDrawable): void
|
|
1408
|
+
|
|
1409
|
+
presentDrawableAtTime(drawable: MTLDrawable, presentationTime: number): void
|
|
1410
|
+
|
|
1411
|
+
presentDrawableAfterMinimumDuration(drawable: MTLDrawable, duration: number): void
|
|
1412
|
+
|
|
1413
|
+
waitUntilScheduled(): void
|
|
1414
|
+
|
|
1415
|
+
addCompletedHandler(block: (p1: MTLCommandBuffer) => void): void
|
|
1416
|
+
|
|
1417
|
+
waitUntilCompleted(): void
|
|
1418
|
+
|
|
1419
|
+
readonly status: interop.Enum<typeof MTLCommandBufferStatus>
|
|
1420
|
+
|
|
1421
|
+
readonly error: NSError
|
|
1422
|
+
|
|
1423
|
+
blitCommandEncoder(): MTLBlitCommandEncoder
|
|
1424
|
+
|
|
1425
|
+
renderCommandEncoderWithDescriptor(
|
|
1426
|
+
renderPassDescriptor: MTLRenderPassDescriptor,
|
|
1427
|
+
): MTLRenderCommandEncoder
|
|
1428
|
+
|
|
1429
|
+
computeCommandEncoderWithDescriptor(
|
|
1430
|
+
computePassDescriptor: MTLComputePassDescriptor,
|
|
1431
|
+
): MTLComputeCommandEncoder
|
|
1432
|
+
|
|
1433
|
+
blitCommandEncoderWithDescriptor(blitPassDescriptor: MTLBlitPassDescriptor): MTLBlitCommandEncoder
|
|
1434
|
+
|
|
1435
|
+
computeCommandEncoder(): MTLComputeCommandEncoder
|
|
1436
|
+
|
|
1437
|
+
computeCommandEncoderWithDispatchType(
|
|
1438
|
+
dispatchType: interop.Enum<typeof MTLDispatchType>,
|
|
1439
|
+
): MTLComputeCommandEncoder
|
|
1440
|
+
|
|
1441
|
+
encodeWaitForEventValue(event: MTLEvent, value: number): void
|
|
1442
|
+
|
|
1443
|
+
encodeSignalEventValue(event: MTLEvent, value: number): void
|
|
1444
|
+
|
|
1445
|
+
parallelRenderCommandEncoderWithDescriptor(
|
|
1446
|
+
renderPassDescriptor: MTLRenderPassDescriptor,
|
|
1447
|
+
): MTLParallelRenderCommandEncoder
|
|
1448
|
+
|
|
1449
|
+
resourceStateCommandEncoder(): MTLResourceStateCommandEncoder
|
|
1450
|
+
|
|
1451
|
+
resourceStateCommandEncoderWithDescriptor(
|
|
1452
|
+
resourceStatePassDescriptor: MTLResourceStatePassDescriptor,
|
|
1453
|
+
): MTLResourceStateCommandEncoder
|
|
1454
|
+
|
|
1455
|
+
accelerationStructureCommandEncoder(): MTLAccelerationStructureCommandEncoder
|
|
1456
|
+
|
|
1457
|
+
pushDebugGroup(string: string): void
|
|
1458
|
+
|
|
1459
|
+
popDebugGroup(): void
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
declare class MTLCommandBuffer extends NativeObject implements MTLCommandBuffer {}
|
|
1463
|
+
|
|
1464
|
+
declare interface MTLAccelerationStructureCommandEncoder extends MTLCommandEncoder {
|
|
1465
|
+
buildAccelerationStructureDescriptorScratchBufferScratchBufferOffset(
|
|
1466
|
+
accelerationStructure: MTLAccelerationStructure,
|
|
1467
|
+
descriptor: MTLAccelerationStructureDescriptor,
|
|
1468
|
+
scratchBuffer: MTLBuffer,
|
|
1469
|
+
scratchBufferOffset: number,
|
|
1470
|
+
): void
|
|
1471
|
+
|
|
1472
|
+
refitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset(
|
|
1473
|
+
sourceAccelerationStructure: MTLAccelerationStructure,
|
|
1474
|
+
descriptor: MTLAccelerationStructureDescriptor,
|
|
1475
|
+
destinationAccelerationStructure: MTLAccelerationStructure | null,
|
|
1476
|
+
scratchBuffer: MTLBuffer | null,
|
|
1477
|
+
scratchBufferOffset: number,
|
|
1478
|
+
): void
|
|
1479
|
+
|
|
1480
|
+
copyAccelerationStructureToAccelerationStructure(
|
|
1481
|
+
sourceAccelerationStructure: MTLAccelerationStructure,
|
|
1482
|
+
destinationAccelerationStructure: MTLAccelerationStructure,
|
|
1483
|
+
): void
|
|
1484
|
+
|
|
1485
|
+
writeCompactedAccelerationStructureSizeToBufferOffset(
|
|
1486
|
+
accelerationStructure: MTLAccelerationStructure,
|
|
1487
|
+
buffer: MTLBuffer,
|
|
1488
|
+
offset: number,
|
|
1489
|
+
): void
|
|
1490
|
+
|
|
1491
|
+
copyAndCompactAccelerationStructureToAccelerationStructure(
|
|
1492
|
+
sourceAccelerationStructure: MTLAccelerationStructure,
|
|
1493
|
+
destinationAccelerationStructure: MTLAccelerationStructure,
|
|
1494
|
+
): void
|
|
1495
|
+
|
|
1496
|
+
updateFence(fence: MTLFence): void
|
|
1497
|
+
|
|
1498
|
+
waitForFence(fence: MTLFence): void
|
|
1499
|
+
|
|
1500
|
+
useResourceUsage(resource: MTLResource, usage: interop.Enum<typeof MTLResourceUsage>): void
|
|
1501
|
+
|
|
1502
|
+
useResourcesCountUsage(
|
|
1503
|
+
resources: interop.PointerConvertible,
|
|
1504
|
+
count: number,
|
|
1505
|
+
usage: interop.Enum<typeof MTLResourceUsage>,
|
|
1506
|
+
): void
|
|
1507
|
+
|
|
1508
|
+
useHeap(heap: MTLHeap): void
|
|
1509
|
+
|
|
1510
|
+
useHeapsCount(heaps: interop.PointerConvertible, count: number): void
|
|
1511
|
+
|
|
1512
|
+
sampleCountersInBufferAtSampleIndexWithBarrier(
|
|
1513
|
+
sampleBuffer: MTLCounterSampleBuffer,
|
|
1514
|
+
sampleIndex: number,
|
|
1515
|
+
barrier: boolean,
|
|
1516
|
+
): void
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
declare class MTLAccelerationStructureCommandEncoder
|
|
1520
|
+
extends NativeObject
|
|
1521
|
+
implements MTLAccelerationStructureCommandEncoder {}
|
|
1522
|
+
|
|
1523
|
+
declare interface MTLLibrary extends NSObjectProtocol {
|
|
1524
|
+
label: string
|
|
1525
|
+
|
|
1526
|
+
readonly device: MTLDevice
|
|
1527
|
+
|
|
1528
|
+
newFunctionWithName(functionName: string): MTLFunction
|
|
1529
|
+
|
|
1530
|
+
newFunctionWithNameConstantValuesError(
|
|
1531
|
+
name: string,
|
|
1532
|
+
constantValues: MTLFunctionConstantValues,
|
|
1533
|
+
error: interop.PointerConvertible,
|
|
1534
|
+
): MTLFunction
|
|
1535
|
+
|
|
1536
|
+
newFunctionWithNameConstantValuesCompletionHandler(
|
|
1537
|
+
name: string,
|
|
1538
|
+
constantValues: MTLFunctionConstantValues,
|
|
1539
|
+
completionHandler: (p1: MTLFunction, p2: NSError) => void | null,
|
|
1540
|
+
): void
|
|
1541
|
+
|
|
1542
|
+
newFunctionWithDescriptorCompletionHandler(
|
|
1543
|
+
descriptor: MTLFunctionDescriptor,
|
|
1544
|
+
completionHandler: (p1: MTLFunction, p2: NSError) => void | null,
|
|
1545
|
+
): void
|
|
1546
|
+
|
|
1547
|
+
newFunctionWithDescriptorError(
|
|
1548
|
+
descriptor: MTLFunctionDescriptor,
|
|
1549
|
+
error: interop.PointerConvertible,
|
|
1550
|
+
): MTLFunction
|
|
1551
|
+
|
|
1552
|
+
newIntersectionFunctionWithDescriptorCompletionHandler(
|
|
1553
|
+
descriptor: MTLIntersectionFunctionDescriptor,
|
|
1554
|
+
completionHandler: (p1: MTLFunction, p2: NSError) => void | null,
|
|
1555
|
+
): void
|
|
1556
|
+
|
|
1557
|
+
newIntersectionFunctionWithDescriptorError(
|
|
1558
|
+
descriptor: MTLIntersectionFunctionDescriptor,
|
|
1559
|
+
error: interop.PointerConvertible,
|
|
1560
|
+
): MTLFunction
|
|
1561
|
+
|
|
1562
|
+
readonly functionNames: NSArray
|
|
1563
|
+
|
|
1564
|
+
readonly type: interop.Enum<typeof MTLLibraryType>
|
|
1565
|
+
|
|
1566
|
+
readonly installName: string
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
declare class MTLLibrary extends NativeObject implements MTLLibrary {}
|
|
1570
|
+
|
|
1571
|
+
declare interface MTLFunctionLog extends NSObjectProtocol {
|
|
1572
|
+
readonly type: interop.Enum<typeof MTLFunctionLogType>
|
|
1573
|
+
|
|
1574
|
+
readonly encoderLabel: string
|
|
1575
|
+
|
|
1576
|
+
readonly function$: MTLFunction
|
|
1577
|
+
|
|
1578
|
+
readonly debugLocation: MTLFunctionLogDebugLocation
|
|
1579
|
+
|
|
1580
|
+
function(): MTLFunction | null
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
declare class MTLFunctionLog extends NativeObject implements MTLFunctionLog {}
|
|
1584
|
+
|
|
1585
|
+
declare interface MTLCommandBufferEncoderInfo extends NSObjectProtocol {
|
|
1586
|
+
readonly label: string
|
|
1587
|
+
|
|
1588
|
+
readonly debugSignposts: NSArray
|
|
1589
|
+
|
|
1590
|
+
readonly errorState: interop.Enum<typeof MTLCommandEncoderErrorState>
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
declare class MTLCommandBufferEncoderInfo
|
|
1594
|
+
extends NativeObject
|
|
1595
|
+
implements MTLCommandBufferEncoderInfo {}
|
|
1596
|
+
|
|
1597
|
+
declare interface MTLResourceStateCommandEncoder extends MTLCommandEncoder {
|
|
1598
|
+
updateTextureMappingsModeRegionsMipLevelsSlicesNumRegions?(
|
|
1599
|
+
texture: MTLTexture,
|
|
1600
|
+
mode: interop.Enum<typeof MTLSparseTextureMappingMode>,
|
|
1601
|
+
regions: interop.PointerConvertible,
|
|
1602
|
+
mipLevels: interop.PointerConvertible,
|
|
1603
|
+
slices: interop.PointerConvertible,
|
|
1604
|
+
numRegions: number,
|
|
1605
|
+
): void
|
|
1606
|
+
|
|
1607
|
+
updateTextureMappingModeRegionMipLevelSlice?(
|
|
1608
|
+
texture: MTLTexture,
|
|
1609
|
+
mode: interop.Enum<typeof MTLSparseTextureMappingMode>,
|
|
1610
|
+
region: MTLRegion,
|
|
1611
|
+
mipLevel: number,
|
|
1612
|
+
slice: number,
|
|
1613
|
+
): void
|
|
1614
|
+
|
|
1615
|
+
updateTextureMappingModeIndirectBufferIndirectBufferOffset?(
|
|
1616
|
+
texture: MTLTexture,
|
|
1617
|
+
mode: interop.Enum<typeof MTLSparseTextureMappingMode>,
|
|
1618
|
+
indirectBuffer: MTLBuffer,
|
|
1619
|
+
indirectBufferOffset: number,
|
|
1620
|
+
): void
|
|
1621
|
+
|
|
1622
|
+
updateFence?(fence: MTLFence): void
|
|
1623
|
+
|
|
1624
|
+
waitForFence?(fence: MTLFence): void
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
declare class MTLResourceStateCommandEncoder
|
|
1628
|
+
extends NativeObject
|
|
1629
|
+
implements MTLResourceStateCommandEncoder {}
|
|
1630
|
+
|
|
1631
|
+
declare interface MTLAllocation extends NSObjectProtocol {}
|
|
1632
|
+
|
|
1633
|
+
declare class MTLAllocation extends NativeObject implements MTLAllocation {}
|
|
1634
|
+
|
|
1635
|
+
declare interface MTLIntersectionFunctionTable extends MTLResource {
|
|
1636
|
+
setBufferOffsetAtIndex(buffer: MTLBuffer | null, offset: number, index: number): void
|
|
1637
|
+
|
|
1638
|
+
setBuffersOffsetsWithRange(
|
|
1639
|
+
buffers: interop.PointerConvertible,
|
|
1640
|
+
offsets: interop.PointerConvertible,
|
|
1641
|
+
range: _NSRange,
|
|
1642
|
+
): void
|
|
1643
|
+
|
|
1644
|
+
setFunctionAtIndex(function$: MTLFunctionHandle | null, index: number): void
|
|
1645
|
+
|
|
1646
|
+
setFunctionsWithRange(functions: interop.PointerConvertible, range: _NSRange): void
|
|
1647
|
+
|
|
1648
|
+
setOpaqueTriangleIntersectionFunctionWithSignatureAtIndex(
|
|
1649
|
+
signature: interop.Enum<typeof MTLIntersectionFunctionSignature>,
|
|
1650
|
+
index: number,
|
|
1651
|
+
): void
|
|
1652
|
+
|
|
1653
|
+
setOpaqueTriangleIntersectionFunctionWithSignatureWithRange(
|
|
1654
|
+
signature: interop.Enum<typeof MTLIntersectionFunctionSignature>,
|
|
1655
|
+
range: _NSRange,
|
|
1656
|
+
): void
|
|
1657
|
+
|
|
1658
|
+
setOpaqueCurveIntersectionFunctionWithSignatureAtIndex(
|
|
1659
|
+
signature: interop.Enum<typeof MTLIntersectionFunctionSignature>,
|
|
1660
|
+
index: number,
|
|
1661
|
+
): void
|
|
1662
|
+
|
|
1663
|
+
setOpaqueCurveIntersectionFunctionWithSignatureWithRange(
|
|
1664
|
+
signature: interop.Enum<typeof MTLIntersectionFunctionSignature>,
|
|
1665
|
+
range: _NSRange,
|
|
1666
|
+
): void
|
|
1667
|
+
|
|
1668
|
+
setVisibleFunctionTableAtBufferIndex(
|
|
1669
|
+
functionTable: MTLVisibleFunctionTable | null,
|
|
1670
|
+
bufferIndex: number,
|
|
1671
|
+
): void
|
|
1672
|
+
|
|
1673
|
+
setVisibleFunctionTablesWithBufferRange(
|
|
1674
|
+
functionTables: interop.PointerConvertible,
|
|
1675
|
+
bufferRange: _NSRange,
|
|
1676
|
+
): void
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
declare class MTLIntersectionFunctionTable
|
|
1680
|
+
extends NativeObject
|
|
1681
|
+
implements MTLIntersectionFunctionTable {}
|
|
1682
|
+
|
|
1683
|
+
declare interface MTLComputeCommandEncoder extends MTLCommandEncoder {
|
|
1684
|
+
readonly dispatchType: interop.Enum<typeof MTLDispatchType>
|
|
1685
|
+
|
|
1686
|
+
setComputePipelineState(state: MTLComputePipelineState): void
|
|
1687
|
+
|
|
1688
|
+
setBytesLengthAtIndex(bytes: interop.PointerConvertible, length: number, index: number): void
|
|
1689
|
+
|
|
1690
|
+
setBufferOffsetAtIndex(buffer: MTLBuffer | null, offset: number, index: number): void
|
|
1691
|
+
|
|
1692
|
+
setBufferOffsetAtIndex(offset: number, index: number): void
|
|
1693
|
+
|
|
1694
|
+
setBuffersOffsetsWithRange(
|
|
1695
|
+
buffers: interop.PointerConvertible,
|
|
1696
|
+
offsets: interop.PointerConvertible,
|
|
1697
|
+
range: _NSRange,
|
|
1698
|
+
): void
|
|
1699
|
+
|
|
1700
|
+
setVisibleFunctionTableAtBufferIndex(
|
|
1701
|
+
visibleFunctionTable: MTLVisibleFunctionTable | null,
|
|
1702
|
+
bufferIndex: number,
|
|
1703
|
+
): void
|
|
1704
|
+
|
|
1705
|
+
setVisibleFunctionTablesWithBufferRange(
|
|
1706
|
+
visibleFunctionTables: interop.PointerConvertible,
|
|
1707
|
+
range: _NSRange,
|
|
1708
|
+
): void
|
|
1709
|
+
|
|
1710
|
+
setIntersectionFunctionTableAtBufferIndex(
|
|
1711
|
+
intersectionFunctionTable: MTLIntersectionFunctionTable | null,
|
|
1712
|
+
bufferIndex: number,
|
|
1713
|
+
): void
|
|
1714
|
+
|
|
1715
|
+
setIntersectionFunctionTablesWithBufferRange(
|
|
1716
|
+
intersectionFunctionTables: interop.PointerConvertible,
|
|
1717
|
+
range: _NSRange,
|
|
1718
|
+
): void
|
|
1719
|
+
|
|
1720
|
+
setAccelerationStructureAtBufferIndex(
|
|
1721
|
+
accelerationStructure: MTLAccelerationStructure | null,
|
|
1722
|
+
bufferIndex: number,
|
|
1723
|
+
): void
|
|
1724
|
+
|
|
1725
|
+
setTextureAtIndex(texture: MTLTexture | null, index: number): void
|
|
1726
|
+
|
|
1727
|
+
setTexturesWithRange(textures: interop.PointerConvertible, range: _NSRange): void
|
|
1728
|
+
|
|
1729
|
+
setSamplerStateAtIndex(sampler: MTLSamplerState | null, index: number): void
|
|
1730
|
+
|
|
1731
|
+
setSamplerStatesWithRange(samplers: interop.PointerConvertible, range: _NSRange): void
|
|
1732
|
+
|
|
1733
|
+
setSamplerStateLodMinClampLodMaxClampAtIndex(
|
|
1734
|
+
sampler: MTLSamplerState | null,
|
|
1735
|
+
lodMinClamp: number,
|
|
1736
|
+
lodMaxClamp: number,
|
|
1737
|
+
index: number,
|
|
1738
|
+
): void
|
|
1739
|
+
|
|
1740
|
+
setSamplerStatesLodMinClampsLodMaxClampsWithRange(
|
|
1741
|
+
samplers: interop.PointerConvertible,
|
|
1742
|
+
lodMinClamps: interop.PointerConvertible,
|
|
1743
|
+
lodMaxClamps: interop.PointerConvertible,
|
|
1744
|
+
range: _NSRange,
|
|
1745
|
+
): void
|
|
1746
|
+
|
|
1747
|
+
setThreadgroupMemoryLengthAtIndex(length: number, index: number): void
|
|
1748
|
+
|
|
1749
|
+
setImageblockWidthHeight(width: number, height: number): void
|
|
1750
|
+
|
|
1751
|
+
setStageInRegion(region: MTLRegion): void
|
|
1752
|
+
|
|
1753
|
+
setStageInRegionWithIndirectBufferIndirectBufferOffset(
|
|
1754
|
+
indirectBuffer: MTLBuffer,
|
|
1755
|
+
indirectBufferOffset: number,
|
|
1756
|
+
): void
|
|
1757
|
+
|
|
1758
|
+
dispatchThreadgroupsThreadsPerThreadgroup(
|
|
1759
|
+
threadgroupsPerGrid: MTLSize,
|
|
1760
|
+
threadsPerThreadgroup: MTLSize,
|
|
1761
|
+
): void
|
|
1762
|
+
|
|
1763
|
+
dispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup(
|
|
1764
|
+
indirectBuffer: MTLBuffer,
|
|
1765
|
+
indirectBufferOffset: number,
|
|
1766
|
+
threadsPerThreadgroup: MTLSize,
|
|
1767
|
+
): void
|
|
1768
|
+
|
|
1769
|
+
dispatchThreadsThreadsPerThreadgroup(
|
|
1770
|
+
threadsPerGrid: MTLSize,
|
|
1771
|
+
threadsPerThreadgroup: MTLSize,
|
|
1772
|
+
): void
|
|
1773
|
+
|
|
1774
|
+
updateFence(fence: MTLFence): void
|
|
1775
|
+
|
|
1776
|
+
waitForFence(fence: MTLFence): void
|
|
1777
|
+
|
|
1778
|
+
useResourceUsage(resource: MTLResource, usage: interop.Enum<typeof MTLResourceUsage>): void
|
|
1779
|
+
|
|
1780
|
+
useResourcesCountUsage(
|
|
1781
|
+
resources: interop.PointerConvertible,
|
|
1782
|
+
count: number,
|
|
1783
|
+
usage: interop.Enum<typeof MTLResourceUsage>,
|
|
1784
|
+
): void
|
|
1785
|
+
|
|
1786
|
+
useHeap(heap: MTLHeap): void
|
|
1787
|
+
|
|
1788
|
+
useHeapsCount(heaps: interop.PointerConvertible, count: number): void
|
|
1789
|
+
|
|
1790
|
+
executeCommandsInBufferWithRange(
|
|
1791
|
+
indirectCommandBuffer: MTLIndirectCommandBuffer,
|
|
1792
|
+
executionRange: _NSRange,
|
|
1793
|
+
): void
|
|
1794
|
+
|
|
1795
|
+
executeCommandsInBufferIndirectBufferIndirectBufferOffset(
|
|
1796
|
+
indirectCommandbuffer: MTLIndirectCommandBuffer,
|
|
1797
|
+
indirectRangeBuffer: MTLBuffer,
|
|
1798
|
+
indirectBufferOffset: number,
|
|
1799
|
+
): void
|
|
1800
|
+
|
|
1801
|
+
memoryBarrierWithScope(scope: interop.Enum<typeof MTLBarrierScope>): void
|
|
1802
|
+
|
|
1803
|
+
memoryBarrierWithResourcesCount(resources: interop.PointerConvertible, count: number): void
|
|
1804
|
+
|
|
1805
|
+
sampleCountersInBufferAtSampleIndexWithBarrier(
|
|
1806
|
+
sampleBuffer: MTLCounterSampleBuffer,
|
|
1807
|
+
sampleIndex: number,
|
|
1808
|
+
barrier: boolean,
|
|
1809
|
+
): void
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
declare class MTLComputeCommandEncoder extends NativeObject implements MTLComputeCommandEncoder {}
|
|
1813
|
+
|
|
1814
|
+
declare interface MTLBinaryArchive extends NSObjectProtocol {
|
|
1815
|
+
label: string
|
|
1816
|
+
|
|
1817
|
+
readonly device: MTLDevice
|
|
1818
|
+
|
|
1819
|
+
addComputePipelineFunctionsWithDescriptorError(
|
|
1820
|
+
descriptor: MTLComputePipelineDescriptor,
|
|
1821
|
+
error: interop.PointerConvertible,
|
|
1822
|
+
): boolean
|
|
1823
|
+
|
|
1824
|
+
addRenderPipelineFunctionsWithDescriptorError(
|
|
1825
|
+
descriptor: MTLRenderPipelineDescriptor,
|
|
1826
|
+
error: interop.PointerConvertible,
|
|
1827
|
+
): boolean
|
|
1828
|
+
|
|
1829
|
+
addTileRenderPipelineFunctionsWithDescriptorError(
|
|
1830
|
+
descriptor: MTLTileRenderPipelineDescriptor,
|
|
1831
|
+
error: interop.PointerConvertible,
|
|
1832
|
+
): boolean
|
|
1833
|
+
|
|
1834
|
+
serializeToURLError(url: NSURL, error: interop.PointerConvertible): boolean
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
declare class MTLBinaryArchive extends NativeObject implements MTLBinaryArchive {}
|
|
1838
|
+
|
|
1839
|
+
declare interface MTLDynamicLibrary extends NSObjectProtocol {
|
|
1840
|
+
label: string
|
|
1841
|
+
|
|
1842
|
+
readonly device: MTLDevice
|
|
1843
|
+
|
|
1844
|
+
readonly installName: string
|
|
1845
|
+
|
|
1846
|
+
serializeToURLError(url: NSURL, error: interop.PointerConvertible): boolean
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
declare class MTLDynamicLibrary extends NativeObject implements MTLDynamicLibrary {}
|
|
1850
|
+
|
|
1851
|
+
declare interface MTLCommandQueue extends NSObjectProtocol {
|
|
1852
|
+
label: string
|
|
1853
|
+
|
|
1854
|
+
readonly device: MTLDevice
|
|
1855
|
+
|
|
1856
|
+
commandBuffer(): MTLCommandBuffer
|
|
1857
|
+
|
|
1858
|
+
commandBufferWithDescriptor(descriptor: MTLCommandBufferDescriptor): MTLCommandBuffer
|
|
1859
|
+
|
|
1860
|
+
commandBufferWithUnretainedReferences(): MTLCommandBuffer
|
|
1861
|
+
|
|
1862
|
+
insertDebugCaptureBoundary(): void
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
declare class MTLCommandQueue extends NativeObject implements MTLCommandQueue {}
|
|
1866
|
+
|
|
1867
|
+
declare interface MTLIndirectCommandBuffer extends MTLResource {
|
|
1868
|
+
readonly size: number
|
|
1869
|
+
|
|
1870
|
+
resetWithRange(range: _NSRange): void
|
|
1871
|
+
|
|
1872
|
+
indirectRenderCommandAtIndex(commandIndex: number): MTLIndirectRenderCommand
|
|
1873
|
+
|
|
1874
|
+
indirectComputeCommandAtIndex(commandIndex: number): MTLIndirectComputeCommand
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
declare class MTLIndirectCommandBuffer extends NativeObject implements MTLIndirectCommandBuffer {}
|
|
1878
|
+
|
|
1879
|
+
declare interface MTLIndirectRenderCommand extends NSObjectProtocol {
|
|
1880
|
+
setRenderPipelineState(pipelineState: MTLRenderPipelineState): void
|
|
1881
|
+
|
|
1882
|
+
setVertexBufferOffsetAtIndex(buffer: MTLBuffer, offset: number, index: number): void
|
|
1883
|
+
|
|
1884
|
+
setFragmentBufferOffsetAtIndex(buffer: MTLBuffer, offset: number, index: number): void
|
|
1885
|
+
|
|
1886
|
+
drawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride(
|
|
1887
|
+
numberOfPatchControlPoints: number,
|
|
1888
|
+
patchStart: number,
|
|
1889
|
+
patchCount: number,
|
|
1890
|
+
patchIndexBuffer: MTLBuffer | null,
|
|
1891
|
+
patchIndexBufferOffset: number,
|
|
1892
|
+
instanceCount: number,
|
|
1893
|
+
baseInstance: number,
|
|
1894
|
+
buffer: MTLBuffer,
|
|
1895
|
+
offset: number,
|
|
1896
|
+
instanceStride: number,
|
|
1897
|
+
): void
|
|
1898
|
+
|
|
1899
|
+
drawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride(
|
|
1900
|
+
numberOfPatchControlPoints: number,
|
|
1901
|
+
patchStart: number,
|
|
1902
|
+
patchCount: number,
|
|
1903
|
+
patchIndexBuffer: MTLBuffer | null,
|
|
1904
|
+
patchIndexBufferOffset: number,
|
|
1905
|
+
controlPointIndexBuffer: MTLBuffer,
|
|
1906
|
+
controlPointIndexBufferOffset: number,
|
|
1907
|
+
instanceCount: number,
|
|
1908
|
+
baseInstance: number,
|
|
1909
|
+
buffer: MTLBuffer,
|
|
1910
|
+
offset: number,
|
|
1911
|
+
instanceStride: number,
|
|
1912
|
+
): void
|
|
1913
|
+
|
|
1914
|
+
drawPrimitivesVertexStartVertexCountInstanceCountBaseInstance(
|
|
1915
|
+
primitiveType: interop.Enum<typeof MTLPrimitiveType>,
|
|
1916
|
+
vertexStart: number,
|
|
1917
|
+
vertexCount: number,
|
|
1918
|
+
instanceCount: number,
|
|
1919
|
+
baseInstance: number,
|
|
1920
|
+
): void
|
|
1921
|
+
|
|
1922
|
+
drawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance(
|
|
1923
|
+
primitiveType: interop.Enum<typeof MTLPrimitiveType>,
|
|
1924
|
+
indexCount: number,
|
|
1925
|
+
indexType: interop.Enum<typeof MTLIndexType>,
|
|
1926
|
+
indexBuffer: MTLBuffer,
|
|
1927
|
+
indexBufferOffset: number,
|
|
1928
|
+
instanceCount: number,
|
|
1929
|
+
baseVertex: number,
|
|
1930
|
+
baseInstance: number,
|
|
1931
|
+
): void
|
|
1932
|
+
|
|
1933
|
+
reset(): void
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
declare class MTLIndirectRenderCommand extends NativeObject implements MTLIndirectRenderCommand {}
|
|
1937
|
+
|
|
1938
|
+
declare interface MTLArgumentEncoder extends NSObjectProtocol {
|
|
1939
|
+
readonly device: MTLDevice
|
|
1940
|
+
|
|
1941
|
+
label: string
|
|
1942
|
+
|
|
1943
|
+
readonly encodedLength: number
|
|
1944
|
+
|
|
1945
|
+
readonly alignment: number
|
|
1946
|
+
|
|
1947
|
+
setArgumentBufferOffset(argumentBuffer: MTLBuffer | null, offset: number): void
|
|
1948
|
+
|
|
1949
|
+
setArgumentBufferStartOffsetArrayElement(
|
|
1950
|
+
argumentBuffer: MTLBuffer | null,
|
|
1951
|
+
startOffset: number,
|
|
1952
|
+
arrayElement: number,
|
|
1953
|
+
): void
|
|
1954
|
+
|
|
1955
|
+
setBufferOffsetAtIndex(buffer: MTLBuffer | null, offset: number, index: number): void
|
|
1956
|
+
|
|
1957
|
+
setBuffersOffsetsWithRange(
|
|
1958
|
+
buffers: interop.PointerConvertible,
|
|
1959
|
+
offsets: interop.PointerConvertible,
|
|
1960
|
+
range: _NSRange,
|
|
1961
|
+
): void
|
|
1962
|
+
|
|
1963
|
+
setTextureAtIndex(texture: MTLTexture | null, index: number): void
|
|
1964
|
+
|
|
1965
|
+
setTexturesWithRange(textures: interop.PointerConvertible, range: _NSRange): void
|
|
1966
|
+
|
|
1967
|
+
setSamplerStateAtIndex(sampler: MTLSamplerState | null, index: number): void
|
|
1968
|
+
|
|
1969
|
+
setSamplerStatesWithRange(samplers: interop.PointerConvertible, range: _NSRange): void
|
|
1970
|
+
|
|
1971
|
+
constantDataAtIndex(index: number): interop.Pointer
|
|
1972
|
+
|
|
1973
|
+
setRenderPipelineStateAtIndex(pipeline: MTLRenderPipelineState | null, index: number): void
|
|
1974
|
+
|
|
1975
|
+
setRenderPipelineStatesWithRange(pipelines: interop.PointerConvertible, range: _NSRange): void
|
|
1976
|
+
|
|
1977
|
+
setComputePipelineStateAtIndex(pipeline: MTLComputePipelineState | null, index: number): void
|
|
1978
|
+
|
|
1979
|
+
setComputePipelineStatesWithRange(pipelines: interop.PointerConvertible, range: _NSRange): void
|
|
1980
|
+
|
|
1981
|
+
setIndirectCommandBufferAtIndex(
|
|
1982
|
+
indirectCommandBuffer: MTLIndirectCommandBuffer | null,
|
|
1983
|
+
index: number,
|
|
1984
|
+
): void
|
|
1985
|
+
|
|
1986
|
+
setIndirectCommandBuffersWithRange(buffers: interop.PointerConvertible, range: _NSRange): void
|
|
1987
|
+
|
|
1988
|
+
setAccelerationStructureAtIndex(
|
|
1989
|
+
accelerationStructure: MTLAccelerationStructure | null,
|
|
1990
|
+
index: number,
|
|
1991
|
+
): void
|
|
1992
|
+
|
|
1993
|
+
newArgumentEncoderForBufferAtIndex(index: number): MTLArgumentEncoder
|
|
1994
|
+
|
|
1995
|
+
setVisibleFunctionTableAtIndex(
|
|
1996
|
+
visibleFunctionTable: MTLVisibleFunctionTable | null,
|
|
1997
|
+
index: number,
|
|
1998
|
+
): void
|
|
1999
|
+
|
|
2000
|
+
setVisibleFunctionTablesWithRange(
|
|
2001
|
+
visibleFunctionTables: interop.PointerConvertible,
|
|
2002
|
+
range: _NSRange,
|
|
2003
|
+
): void
|
|
2004
|
+
|
|
2005
|
+
setIntersectionFunctionTableAtIndex(
|
|
2006
|
+
intersectionFunctionTable: MTLIntersectionFunctionTable | null,
|
|
2007
|
+
index: number,
|
|
2008
|
+
): void
|
|
2009
|
+
|
|
2010
|
+
setIntersectionFunctionTablesWithRange(
|
|
2011
|
+
intersectionFunctionTables: interop.PointerConvertible,
|
|
2012
|
+
range: _NSRange,
|
|
2013
|
+
): void
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
declare class MTLArgumentEncoder extends NativeObject implements MTLArgumentEncoder {}
|
|
2017
|
+
|
|
2018
|
+
declare interface MTLHeap extends MTLAllocation {
|
|
2019
|
+
label: string
|
|
2020
|
+
|
|
2021
|
+
readonly device: MTLDevice
|
|
2022
|
+
|
|
2023
|
+
readonly storageMode: interop.Enum<typeof MTLStorageMode>
|
|
2024
|
+
|
|
2025
|
+
readonly cpuCacheMode: interop.Enum<typeof MTLCPUCacheMode>
|
|
2026
|
+
|
|
2027
|
+
readonly hazardTrackingMode: interop.Enum<typeof MTLHazardTrackingMode>
|
|
2028
|
+
|
|
2029
|
+
readonly resourceOptions: interop.Enum<typeof MTLResourceOptions>
|
|
2030
|
+
|
|
2031
|
+
readonly size: number
|
|
2032
|
+
|
|
2033
|
+
readonly usedSize: number
|
|
2034
|
+
|
|
2035
|
+
readonly currentAllocatedSize: number
|
|
2036
|
+
|
|
2037
|
+
maxAvailableSizeWithAlignment(alignment: number): number
|
|
2038
|
+
|
|
2039
|
+
newBufferWithLengthOptions(
|
|
2040
|
+
length: number,
|
|
2041
|
+
options: interop.Enum<typeof MTLResourceOptions>,
|
|
2042
|
+
): MTLBuffer
|
|
2043
|
+
|
|
2044
|
+
newTextureWithDescriptor(descriptor: MTLTextureDescriptor): MTLTexture
|
|
2045
|
+
|
|
2046
|
+
setPurgeableState(
|
|
2047
|
+
state: interop.Enum<typeof MTLPurgeableState>,
|
|
2048
|
+
): interop.Enum<typeof MTLPurgeableState>
|
|
2049
|
+
|
|
2050
|
+
readonly type: interop.Enum<typeof MTLHeapType>
|
|
2051
|
+
|
|
2052
|
+
newBufferWithLengthOptionsOffset(
|
|
2053
|
+
length: number,
|
|
2054
|
+
options: interop.Enum<typeof MTLResourceOptions>,
|
|
2055
|
+
offset: number,
|
|
2056
|
+
): MTLBuffer
|
|
2057
|
+
|
|
2058
|
+
newTextureWithDescriptorOffset(descriptor: MTLTextureDescriptor, offset: number): MTLTexture
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
declare class MTLHeap extends NativeObject implements MTLHeap {}
|
|
2062
|
+
|
|
2063
|
+
declare interface MTLSamplerState extends NSObjectProtocol {
|
|
2064
|
+
readonly label: string
|
|
2065
|
+
|
|
2066
|
+
readonly device: MTLDevice
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
declare class MTLSamplerState extends NativeObject implements MTLSamplerState {}
|
|
2070
|
+
|
|
2071
|
+
declare interface MTLParallelRenderCommandEncoder extends MTLCommandEncoder {
|
|
2072
|
+
renderCommandEncoder(): MTLRenderCommandEncoder
|
|
2073
|
+
|
|
2074
|
+
setColorStoreActionAtIndex(
|
|
2075
|
+
storeAction: interop.Enum<typeof MTLStoreAction>,
|
|
2076
|
+
colorAttachmentIndex: number,
|
|
2077
|
+
): void
|
|
2078
|
+
|
|
2079
|
+
setDepthStoreAction(storeAction: interop.Enum<typeof MTLStoreAction>): void
|
|
2080
|
+
|
|
2081
|
+
setStencilStoreAction(storeAction: interop.Enum<typeof MTLStoreAction>): void
|
|
2082
|
+
|
|
2083
|
+
setColorStoreActionOptionsAtIndex(
|
|
2084
|
+
storeActionOptions: interop.Enum<typeof MTLStoreActionOptions>,
|
|
2085
|
+
colorAttachmentIndex: number,
|
|
2086
|
+
): void
|
|
2087
|
+
|
|
2088
|
+
setDepthStoreActionOptions(storeActionOptions: interop.Enum<typeof MTLStoreActionOptions>): void
|
|
2089
|
+
|
|
2090
|
+
setStencilStoreActionOptions(storeActionOptions: interop.Enum<typeof MTLStoreActionOptions>): void
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
declare class MTLParallelRenderCommandEncoder
|
|
2094
|
+
extends NativeObject
|
|
2095
|
+
implements MTLParallelRenderCommandEncoder {}
|
|
2096
|
+
|
|
2097
|
+
declare interface MTLRenderPipelineState extends MTLAllocation, NSObjectProtocol {
|
|
2098
|
+
readonly label: string
|
|
2099
|
+
|
|
2100
|
+
readonly device: MTLDevice
|
|
2101
|
+
|
|
2102
|
+
readonly maxTotalThreadsPerThreadgroup: number
|
|
2103
|
+
|
|
2104
|
+
readonly threadgroupSizeMatchesTileSize: boolean
|
|
2105
|
+
|
|
2106
|
+
readonly imageblockSampleLength: number
|
|
2107
|
+
|
|
2108
|
+
imageblockMemoryLengthForDimensions(imageblockDimensions: MTLSize): number
|
|
2109
|
+
|
|
2110
|
+
readonly supportIndirectCommandBuffers: boolean
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2113
|
+
declare class MTLRenderPipelineState extends NativeObject implements MTLRenderPipelineState {}
|
|
2114
|
+
|
|
2115
|
+
declare interface MTLRenderCommandEncoder extends MTLCommandEncoder {
|
|
2116
|
+
setRenderPipelineState(pipelineState: MTLRenderPipelineState): void
|
|
2117
|
+
|
|
2118
|
+
setVertexBytesLengthAtIndex(
|
|
2119
|
+
bytes: interop.PointerConvertible,
|
|
2120
|
+
length: number,
|
|
2121
|
+
index: number,
|
|
2122
|
+
): void
|
|
2123
|
+
|
|
2124
|
+
setVertexBufferOffsetAtIndex(buffer: MTLBuffer | null, offset: number, index: number): void
|
|
2125
|
+
|
|
2126
|
+
setVertexBufferOffsetAtIndex(offset: number, index: number): void
|
|
2127
|
+
|
|
2128
|
+
setVertexBuffersOffsetsWithRange(
|
|
2129
|
+
buffers: interop.PointerConvertible,
|
|
2130
|
+
offsets: interop.PointerConvertible,
|
|
2131
|
+
range: _NSRange,
|
|
2132
|
+
): void
|
|
2133
|
+
|
|
2134
|
+
setVertexTextureAtIndex(texture: MTLTexture | null, index: number): void
|
|
2135
|
+
|
|
2136
|
+
setVertexTexturesWithRange(textures: interop.PointerConvertible, range: _NSRange): void
|
|
2137
|
+
|
|
2138
|
+
setVertexSamplerStateAtIndex(sampler: MTLSamplerState | null, index: number): void
|
|
2139
|
+
|
|
2140
|
+
setVertexSamplerStatesWithRange(samplers: interop.PointerConvertible, range: _NSRange): void
|
|
2141
|
+
|
|
2142
|
+
setVertexSamplerStateLodMinClampLodMaxClampAtIndex(
|
|
2143
|
+
sampler: MTLSamplerState | null,
|
|
2144
|
+
lodMinClamp: number,
|
|
2145
|
+
lodMaxClamp: number,
|
|
2146
|
+
index: number,
|
|
2147
|
+
): void
|
|
2148
|
+
|
|
2149
|
+
setVertexSamplerStatesLodMinClampsLodMaxClampsWithRange(
|
|
2150
|
+
samplers: interop.PointerConvertible,
|
|
2151
|
+
lodMinClamps: interop.PointerConvertible,
|
|
2152
|
+
lodMaxClamps: interop.PointerConvertible,
|
|
2153
|
+
range: _NSRange,
|
|
2154
|
+
): void
|
|
2155
|
+
|
|
2156
|
+
setViewport(viewport: MTLViewport): void
|
|
2157
|
+
|
|
2158
|
+
setViewportsCount(viewports: interop.PointerConvertible, count: number): void
|
|
2159
|
+
|
|
2160
|
+
setFrontFacingWinding(frontFacingWinding: interop.Enum<typeof MTLWinding>): void
|
|
2161
|
+
|
|
2162
|
+
setVertexAmplificationCountViewMappings(
|
|
2163
|
+
count: number,
|
|
2164
|
+
viewMappings: interop.PointerConvertible,
|
|
2165
|
+
): void
|
|
2166
|
+
|
|
2167
|
+
setCullMode(cullMode: interop.Enum<typeof MTLCullMode>): void
|
|
2168
|
+
|
|
2169
|
+
setDepthClipMode(depthClipMode: interop.Enum<typeof MTLDepthClipMode>): void
|
|
2170
|
+
|
|
2171
|
+
setDepthBiasSlopeScaleClamp(depthBias: number, slopeScale: number, clamp: number): void
|
|
2172
|
+
|
|
2173
|
+
setScissorRect(rect: MTLScissorRect): void
|
|
2174
|
+
|
|
2175
|
+
setScissorRectsCount(scissorRects: interop.PointerConvertible, count: number): void
|
|
2176
|
+
|
|
2177
|
+
setTriangleFillMode(fillMode: interop.Enum<typeof MTLTriangleFillMode>): void
|
|
2178
|
+
|
|
2179
|
+
setFragmentBytesLengthAtIndex(
|
|
2180
|
+
bytes: interop.PointerConvertible,
|
|
2181
|
+
length: number,
|
|
2182
|
+
index: number,
|
|
2183
|
+
): void
|
|
2184
|
+
|
|
2185
|
+
setFragmentBufferOffsetAtIndex(buffer: MTLBuffer | null, offset: number, index: number): void
|
|
2186
|
+
|
|
2187
|
+
setFragmentBufferOffsetAtIndex(offset: number, index: number): void
|
|
2188
|
+
|
|
2189
|
+
setFragmentBuffersOffsetsWithRange(
|
|
2190
|
+
buffers: interop.PointerConvertible,
|
|
2191
|
+
offsets: interop.PointerConvertible,
|
|
2192
|
+
range: _NSRange,
|
|
2193
|
+
): void
|
|
2194
|
+
|
|
2195
|
+
setFragmentTextureAtIndex(texture: MTLTexture | null, index: number): void
|
|
2196
|
+
|
|
2197
|
+
setFragmentTexturesWithRange(textures: interop.PointerConvertible, range: _NSRange): void
|
|
2198
|
+
|
|
2199
|
+
setFragmentSamplerStateAtIndex(sampler: MTLSamplerState | null, index: number): void
|
|
2200
|
+
|
|
2201
|
+
setFragmentSamplerStatesWithRange(samplers: interop.PointerConvertible, range: _NSRange): void
|
|
2202
|
+
|
|
2203
|
+
setFragmentSamplerStateLodMinClampLodMaxClampAtIndex(
|
|
2204
|
+
sampler: MTLSamplerState | null,
|
|
2205
|
+
lodMinClamp: number,
|
|
2206
|
+
lodMaxClamp: number,
|
|
2207
|
+
index: number,
|
|
2208
|
+
): void
|
|
2209
|
+
|
|
2210
|
+
setFragmentSamplerStatesLodMinClampsLodMaxClampsWithRange(
|
|
2211
|
+
samplers: interop.PointerConvertible,
|
|
2212
|
+
lodMinClamps: interop.PointerConvertible,
|
|
2213
|
+
lodMaxClamps: interop.PointerConvertible,
|
|
2214
|
+
range: _NSRange,
|
|
2215
|
+
): void
|
|
2216
|
+
|
|
2217
|
+
setBlendColorRedGreenBlueAlpha(red: number, green: number, blue: number, alpha: number): void
|
|
2218
|
+
|
|
2219
|
+
setDepthStencilState(depthStencilState: MTLDepthStencilState | null): void
|
|
2220
|
+
|
|
2221
|
+
setStencilReferenceValue(referenceValue: number): void
|
|
2222
|
+
|
|
2223
|
+
setStencilFrontReferenceValueBackReferenceValue(
|
|
2224
|
+
frontReferenceValue: number,
|
|
2225
|
+
backReferenceValue: number,
|
|
2226
|
+
): void
|
|
2227
|
+
|
|
2228
|
+
setVisibilityResultModeOffset(
|
|
2229
|
+
mode: interop.Enum<typeof MTLVisibilityResultMode>,
|
|
2230
|
+
offset: number,
|
|
2231
|
+
): void
|
|
2232
|
+
|
|
2233
|
+
setColorStoreActionAtIndex(
|
|
2234
|
+
storeAction: interop.Enum<typeof MTLStoreAction>,
|
|
2235
|
+
colorAttachmentIndex: number,
|
|
2236
|
+
): void
|
|
2237
|
+
|
|
2238
|
+
setDepthStoreAction(storeAction: interop.Enum<typeof MTLStoreAction>): void
|
|
2239
|
+
|
|
2240
|
+
setStencilStoreAction(storeAction: interop.Enum<typeof MTLStoreAction>): void
|
|
2241
|
+
|
|
2242
|
+
setColorStoreActionOptionsAtIndex(
|
|
2243
|
+
storeActionOptions: interop.Enum<typeof MTLStoreActionOptions>,
|
|
2244
|
+
colorAttachmentIndex: number,
|
|
2245
|
+
): void
|
|
2246
|
+
|
|
2247
|
+
setDepthStoreActionOptions(storeActionOptions: interop.Enum<typeof MTLStoreActionOptions>): void
|
|
2248
|
+
|
|
2249
|
+
setStencilStoreActionOptions(storeActionOptions: interop.Enum<typeof MTLStoreActionOptions>): void
|
|
2250
|
+
|
|
2251
|
+
drawPrimitivesVertexStartVertexCountInstanceCount(
|
|
2252
|
+
primitiveType: interop.Enum<typeof MTLPrimitiveType>,
|
|
2253
|
+
vertexStart: number,
|
|
2254
|
+
vertexCount: number,
|
|
2255
|
+
instanceCount: number,
|
|
2256
|
+
): void
|
|
2257
|
+
|
|
2258
|
+
drawPrimitivesVertexStartVertexCount(
|
|
2259
|
+
primitiveType: interop.Enum<typeof MTLPrimitiveType>,
|
|
2260
|
+
vertexStart: number,
|
|
2261
|
+
vertexCount: number,
|
|
2262
|
+
): void
|
|
2263
|
+
|
|
2264
|
+
drawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount(
|
|
2265
|
+
primitiveType: interop.Enum<typeof MTLPrimitiveType>,
|
|
2266
|
+
indexCount: number,
|
|
2267
|
+
indexType: interop.Enum<typeof MTLIndexType>,
|
|
2268
|
+
indexBuffer: MTLBuffer,
|
|
2269
|
+
indexBufferOffset: number,
|
|
2270
|
+
instanceCount: number,
|
|
2271
|
+
): void
|
|
2272
|
+
|
|
2273
|
+
drawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffset(
|
|
2274
|
+
primitiveType: interop.Enum<typeof MTLPrimitiveType>,
|
|
2275
|
+
indexCount: number,
|
|
2276
|
+
indexType: interop.Enum<typeof MTLIndexType>,
|
|
2277
|
+
indexBuffer: MTLBuffer,
|
|
2278
|
+
indexBufferOffset: number,
|
|
2279
|
+
): void
|
|
2280
|
+
|
|
2281
|
+
drawPrimitivesVertexStartVertexCountInstanceCountBaseInstance(
|
|
2282
|
+
primitiveType: interop.Enum<typeof MTLPrimitiveType>,
|
|
2283
|
+
vertexStart: number,
|
|
2284
|
+
vertexCount: number,
|
|
2285
|
+
instanceCount: number,
|
|
2286
|
+
baseInstance: number,
|
|
2287
|
+
): void
|
|
2288
|
+
|
|
2289
|
+
drawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance(
|
|
2290
|
+
primitiveType: interop.Enum<typeof MTLPrimitiveType>,
|
|
2291
|
+
indexCount: number,
|
|
2292
|
+
indexType: interop.Enum<typeof MTLIndexType>,
|
|
2293
|
+
indexBuffer: MTLBuffer,
|
|
2294
|
+
indexBufferOffset: number,
|
|
2295
|
+
instanceCount: number,
|
|
2296
|
+
baseVertex: number,
|
|
2297
|
+
baseInstance: number,
|
|
2298
|
+
): void
|
|
2299
|
+
|
|
2300
|
+
drawPrimitivesIndirectBufferIndirectBufferOffset(
|
|
2301
|
+
primitiveType: interop.Enum<typeof MTLPrimitiveType>,
|
|
2302
|
+
indirectBuffer: MTLBuffer,
|
|
2303
|
+
indirectBufferOffset: number,
|
|
2304
|
+
): void
|
|
2305
|
+
|
|
2306
|
+
drawIndexedPrimitivesIndexTypeIndexBufferIndexBufferOffsetIndirectBufferIndirectBufferOffset(
|
|
2307
|
+
primitiveType: interop.Enum<typeof MTLPrimitiveType>,
|
|
2308
|
+
indexType: interop.Enum<typeof MTLIndexType>,
|
|
2309
|
+
indexBuffer: MTLBuffer,
|
|
2310
|
+
indexBufferOffset: number,
|
|
2311
|
+
indirectBuffer: MTLBuffer,
|
|
2312
|
+
indirectBufferOffset: number,
|
|
2313
|
+
): void
|
|
2314
|
+
|
|
2315
|
+
textureBarrier(): void
|
|
2316
|
+
|
|
2317
|
+
updateFenceAfterStages(fence: MTLFence, stages: interop.Enum<typeof MTLRenderStages>): void
|
|
2318
|
+
|
|
2319
|
+
waitForFenceBeforeStages(fence: MTLFence, stages: interop.Enum<typeof MTLRenderStages>): void
|
|
2320
|
+
|
|
2321
|
+
setTessellationFactorBufferOffsetInstanceStride(
|
|
2322
|
+
buffer: MTLBuffer | null,
|
|
2323
|
+
offset: number,
|
|
2324
|
+
instanceStride: number,
|
|
2325
|
+
): void
|
|
2326
|
+
|
|
2327
|
+
setTessellationFactorScale(scale: number): void
|
|
2328
|
+
|
|
2329
|
+
drawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstance(
|
|
2330
|
+
numberOfPatchControlPoints: number,
|
|
2331
|
+
patchStart: number,
|
|
2332
|
+
patchCount: number,
|
|
2333
|
+
patchIndexBuffer: MTLBuffer | null,
|
|
2334
|
+
patchIndexBufferOffset: number,
|
|
2335
|
+
instanceCount: number,
|
|
2336
|
+
baseInstance: number,
|
|
2337
|
+
): void
|
|
2338
|
+
|
|
2339
|
+
drawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset(
|
|
2340
|
+
numberOfPatchControlPoints: number,
|
|
2341
|
+
patchIndexBuffer: MTLBuffer | null,
|
|
2342
|
+
patchIndexBufferOffset: number,
|
|
2343
|
+
indirectBuffer: MTLBuffer,
|
|
2344
|
+
indirectBufferOffset: number,
|
|
2345
|
+
): void
|
|
2346
|
+
|
|
2347
|
+
drawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstance(
|
|
2348
|
+
numberOfPatchControlPoints: number,
|
|
2349
|
+
patchStart: number,
|
|
2350
|
+
patchCount: number,
|
|
2351
|
+
patchIndexBuffer: MTLBuffer | null,
|
|
2352
|
+
patchIndexBufferOffset: number,
|
|
2353
|
+
controlPointIndexBuffer: MTLBuffer,
|
|
2354
|
+
controlPointIndexBufferOffset: number,
|
|
2355
|
+
instanceCount: number,
|
|
2356
|
+
baseInstance: number,
|
|
2357
|
+
): void
|
|
2358
|
+
|
|
2359
|
+
drawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset(
|
|
2360
|
+
numberOfPatchControlPoints: number,
|
|
2361
|
+
patchIndexBuffer: MTLBuffer | null,
|
|
2362
|
+
patchIndexBufferOffset: number,
|
|
2363
|
+
controlPointIndexBuffer: MTLBuffer,
|
|
2364
|
+
controlPointIndexBufferOffset: number,
|
|
2365
|
+
indirectBuffer: MTLBuffer,
|
|
2366
|
+
indirectBufferOffset: number,
|
|
2367
|
+
): void
|
|
2368
|
+
|
|
2369
|
+
readonly tileWidth: number
|
|
2370
|
+
|
|
2371
|
+
readonly tileHeight: number
|
|
2372
|
+
|
|
2373
|
+
setTileBytesLengthAtIndex(bytes: interop.PointerConvertible, length: number, index: number): void
|
|
2374
|
+
|
|
2375
|
+
setTileBufferOffsetAtIndex(buffer: MTLBuffer | null, offset: number, index: number): void
|
|
2376
|
+
|
|
2377
|
+
setTileBufferOffsetAtIndex(offset: number, index: number): void
|
|
2378
|
+
|
|
2379
|
+
setTileBuffersOffsetsWithRange(
|
|
2380
|
+
buffers: interop.PointerConvertible,
|
|
2381
|
+
offsets: interop.PointerConvertible,
|
|
2382
|
+
range: _NSRange,
|
|
2383
|
+
): void
|
|
2384
|
+
|
|
2385
|
+
setTileTextureAtIndex(texture: MTLTexture | null, index: number): void
|
|
2386
|
+
|
|
2387
|
+
setTileTexturesWithRange(textures: interop.PointerConvertible, range: _NSRange): void
|
|
2388
|
+
|
|
2389
|
+
setTileSamplerStateAtIndex(sampler: MTLSamplerState | null, index: number): void
|
|
2390
|
+
|
|
2391
|
+
setTileSamplerStatesWithRange(samplers: interop.PointerConvertible, range: _NSRange): void
|
|
2392
|
+
|
|
2393
|
+
setTileSamplerStateLodMinClampLodMaxClampAtIndex(
|
|
2394
|
+
sampler: MTLSamplerState | null,
|
|
2395
|
+
lodMinClamp: number,
|
|
2396
|
+
lodMaxClamp: number,
|
|
2397
|
+
index: number,
|
|
2398
|
+
): void
|
|
2399
|
+
|
|
2400
|
+
setTileSamplerStatesLodMinClampsLodMaxClampsWithRange(
|
|
2401
|
+
samplers: interop.PointerConvertible,
|
|
2402
|
+
lodMinClamps: interop.PointerConvertible,
|
|
2403
|
+
lodMaxClamps: interop.PointerConvertible,
|
|
2404
|
+
range: _NSRange,
|
|
2405
|
+
): void
|
|
2406
|
+
|
|
2407
|
+
dispatchThreadsPerTile(threadsPerTile: MTLSize): void
|
|
2408
|
+
|
|
2409
|
+
setThreadgroupMemoryLengthOffsetAtIndex(length: number, offset: number, index: number): void
|
|
2410
|
+
|
|
2411
|
+
useResourceUsage(resource: MTLResource, usage: interop.Enum<typeof MTLResourceUsage>): void
|
|
2412
|
+
|
|
2413
|
+
useResourcesCountUsage(
|
|
2414
|
+
resources: interop.PointerConvertible,
|
|
2415
|
+
count: number,
|
|
2416
|
+
usage: interop.Enum<typeof MTLResourceUsage>,
|
|
2417
|
+
): void
|
|
2418
|
+
|
|
2419
|
+
useResourceUsageStages(
|
|
2420
|
+
resource: MTLResource,
|
|
2421
|
+
usage: interop.Enum<typeof MTLResourceUsage>,
|
|
2422
|
+
stages: interop.Enum<typeof MTLRenderStages>,
|
|
2423
|
+
): void
|
|
2424
|
+
|
|
2425
|
+
useResourcesCountUsageStages(
|
|
2426
|
+
resources: interop.PointerConvertible,
|
|
2427
|
+
count: number,
|
|
2428
|
+
usage: interop.Enum<typeof MTLResourceUsage>,
|
|
2429
|
+
stages: interop.Enum<typeof MTLRenderStages>,
|
|
2430
|
+
): void
|
|
2431
|
+
|
|
2432
|
+
useHeap(heap: MTLHeap): void
|
|
2433
|
+
|
|
2434
|
+
useHeapsCount(heaps: interop.PointerConvertible, count: number): void
|
|
2435
|
+
|
|
2436
|
+
useHeapStages(heap: MTLHeap, stages: interop.Enum<typeof MTLRenderStages>): void
|
|
2437
|
+
|
|
2438
|
+
useHeapsCountStages(
|
|
2439
|
+
heaps: interop.PointerConvertible,
|
|
2440
|
+
count: number,
|
|
2441
|
+
stages: interop.Enum<typeof MTLRenderStages>,
|
|
2442
|
+
): void
|
|
2443
|
+
|
|
2444
|
+
executeCommandsInBufferWithRange(
|
|
2445
|
+
indirectCommandBuffer: MTLIndirectCommandBuffer,
|
|
2446
|
+
executionRange: _NSRange,
|
|
2447
|
+
): void
|
|
2448
|
+
|
|
2449
|
+
executeCommandsInBufferIndirectBufferIndirectBufferOffset(
|
|
2450
|
+
indirectCommandbuffer: MTLIndirectCommandBuffer,
|
|
2451
|
+
indirectRangeBuffer: MTLBuffer,
|
|
2452
|
+
indirectBufferOffset: number,
|
|
2453
|
+
): void
|
|
2454
|
+
|
|
2455
|
+
memoryBarrierWithScopeAfterStagesBeforeStages(
|
|
2456
|
+
scope: interop.Enum<typeof MTLBarrierScope>,
|
|
2457
|
+
after: interop.Enum<typeof MTLRenderStages>,
|
|
2458
|
+
before: interop.Enum<typeof MTLRenderStages>,
|
|
2459
|
+
): void
|
|
2460
|
+
|
|
2461
|
+
memoryBarrierWithResourcesCountAfterStagesBeforeStages(
|
|
2462
|
+
resources: interop.PointerConvertible,
|
|
2463
|
+
count: number,
|
|
2464
|
+
after: interop.Enum<typeof MTLRenderStages>,
|
|
2465
|
+
before: interop.Enum<typeof MTLRenderStages>,
|
|
2466
|
+
): void
|
|
2467
|
+
|
|
2468
|
+
sampleCountersInBufferAtSampleIndexWithBarrier(
|
|
2469
|
+
sampleBuffer: MTLCounterSampleBuffer,
|
|
2470
|
+
sampleIndex: number,
|
|
2471
|
+
barrier: boolean,
|
|
2472
|
+
): void
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
declare class MTLRenderCommandEncoder extends NativeObject implements MTLRenderCommandEncoder {}
|
|
2476
|
+
|
|
2477
|
+
declare interface MTLBlitCommandEncoder extends MTLCommandEncoder {
|
|
2478
|
+
synchronizeResource(resource: MTLResource): void
|
|
2479
|
+
|
|
2480
|
+
synchronizeTextureSliceLevel(texture: MTLTexture, slice: number, level: number): void
|
|
2481
|
+
|
|
2482
|
+
copyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToTextureDestinationSliceDestinationLevelDestinationOrigin(
|
|
2483
|
+
sourceTexture: MTLTexture,
|
|
2484
|
+
sourceSlice: number,
|
|
2485
|
+
sourceLevel: number,
|
|
2486
|
+
sourceOrigin: MTLOrigin,
|
|
2487
|
+
sourceSize: MTLSize,
|
|
2488
|
+
destinationTexture: MTLTexture,
|
|
2489
|
+
destinationSlice: number,
|
|
2490
|
+
destinationLevel: number,
|
|
2491
|
+
destinationOrigin: MTLOrigin,
|
|
2492
|
+
): void
|
|
2493
|
+
|
|
2494
|
+
copyFromBufferSourceOffsetSourceBytesPerRowSourceBytesPerImageSourceSizeToTextureDestinationSliceDestinationLevelDestinationOrigin(
|
|
2495
|
+
sourceBuffer: MTLBuffer,
|
|
2496
|
+
sourceOffset: number,
|
|
2497
|
+
sourceBytesPerRow: number,
|
|
2498
|
+
sourceBytesPerImage: number,
|
|
2499
|
+
sourceSize: MTLSize,
|
|
2500
|
+
destinationTexture: MTLTexture,
|
|
2501
|
+
destinationSlice: number,
|
|
2502
|
+
destinationLevel: number,
|
|
2503
|
+
destinationOrigin: MTLOrigin,
|
|
2504
|
+
): void
|
|
2505
|
+
|
|
2506
|
+
copyFromBufferSourceOffsetSourceBytesPerRowSourceBytesPerImageSourceSizeToTextureDestinationSliceDestinationLevelDestinationOriginOptions(
|
|
2507
|
+
sourceBuffer: MTLBuffer,
|
|
2508
|
+
sourceOffset: number,
|
|
2509
|
+
sourceBytesPerRow: number,
|
|
2510
|
+
sourceBytesPerImage: number,
|
|
2511
|
+
sourceSize: MTLSize,
|
|
2512
|
+
destinationTexture: MTLTexture,
|
|
2513
|
+
destinationSlice: number,
|
|
2514
|
+
destinationLevel: number,
|
|
2515
|
+
destinationOrigin: MTLOrigin,
|
|
2516
|
+
options: interop.Enum<typeof MTLBlitOption>,
|
|
2517
|
+
): void
|
|
2518
|
+
|
|
2519
|
+
copyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToBufferDestinationOffsetDestinationBytesPerRowDestinationBytesPerImage(
|
|
2520
|
+
sourceTexture: MTLTexture,
|
|
2521
|
+
sourceSlice: number,
|
|
2522
|
+
sourceLevel: number,
|
|
2523
|
+
sourceOrigin: MTLOrigin,
|
|
2524
|
+
sourceSize: MTLSize,
|
|
2525
|
+
destinationBuffer: MTLBuffer,
|
|
2526
|
+
destinationOffset: number,
|
|
2527
|
+
destinationBytesPerRow: number,
|
|
2528
|
+
destinationBytesPerImage: number,
|
|
2529
|
+
): void
|
|
2530
|
+
|
|
2531
|
+
copyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToBufferDestinationOffsetDestinationBytesPerRowDestinationBytesPerImageOptions(
|
|
2532
|
+
sourceTexture: MTLTexture,
|
|
2533
|
+
sourceSlice: number,
|
|
2534
|
+
sourceLevel: number,
|
|
2535
|
+
sourceOrigin: MTLOrigin,
|
|
2536
|
+
sourceSize: MTLSize,
|
|
2537
|
+
destinationBuffer: MTLBuffer,
|
|
2538
|
+
destinationOffset: number,
|
|
2539
|
+
destinationBytesPerRow: number,
|
|
2540
|
+
destinationBytesPerImage: number,
|
|
2541
|
+
options: interop.Enum<typeof MTLBlitOption>,
|
|
2542
|
+
): void
|
|
2543
|
+
|
|
2544
|
+
generateMipmapsForTexture(texture: MTLTexture): void
|
|
2545
|
+
|
|
2546
|
+
fillBufferRangeValue(buffer: MTLBuffer, range: _NSRange, value: number): void
|
|
2547
|
+
|
|
2548
|
+
copyFromTextureSourceSliceSourceLevelToTextureDestinationSliceDestinationLevelSliceCountLevelCount(
|
|
2549
|
+
sourceTexture: MTLTexture,
|
|
2550
|
+
sourceSlice: number,
|
|
2551
|
+
sourceLevel: number,
|
|
2552
|
+
destinationTexture: MTLTexture,
|
|
2553
|
+
destinationSlice: number,
|
|
2554
|
+
destinationLevel: number,
|
|
2555
|
+
sliceCount: number,
|
|
2556
|
+
levelCount: number,
|
|
2557
|
+
): void
|
|
2558
|
+
|
|
2559
|
+
copyFromTextureToTexture(sourceTexture: MTLTexture, destinationTexture: MTLTexture): void
|
|
2560
|
+
|
|
2561
|
+
copyFromBufferSourceOffsetToBufferDestinationOffsetSize(
|
|
2562
|
+
sourceBuffer: MTLBuffer,
|
|
2563
|
+
sourceOffset: number,
|
|
2564
|
+
destinationBuffer: MTLBuffer,
|
|
2565
|
+
destinationOffset: number,
|
|
2566
|
+
size: number,
|
|
2567
|
+
): void
|
|
2568
|
+
|
|
2569
|
+
updateFence(fence: MTLFence): void
|
|
2570
|
+
|
|
2571
|
+
waitForFence(fence: MTLFence): void
|
|
2572
|
+
|
|
2573
|
+
getTextureAccessCountersRegionMipLevelSliceResetCountersCountersBufferCountersBufferOffset?(
|
|
2574
|
+
texture: MTLTexture,
|
|
2575
|
+
region: MTLRegion,
|
|
2576
|
+
mipLevel: number,
|
|
2577
|
+
slice: number,
|
|
2578
|
+
resetCounters: boolean,
|
|
2579
|
+
countersBuffer: MTLBuffer,
|
|
2580
|
+
countersBufferOffset: number,
|
|
2581
|
+
): void
|
|
2582
|
+
|
|
2583
|
+
resetTextureAccessCountersRegionMipLevelSlice?(
|
|
2584
|
+
texture: MTLTexture,
|
|
2585
|
+
region: MTLRegion,
|
|
2586
|
+
mipLevel: number,
|
|
2587
|
+
slice: number,
|
|
2588
|
+
): void
|
|
2589
|
+
|
|
2590
|
+
optimizeContentsForGPUAccess(texture: MTLTexture): void
|
|
2591
|
+
|
|
2592
|
+
optimizeContentsForGPUAccessSliceLevel(texture: MTLTexture, slice: number, level: number): void
|
|
2593
|
+
|
|
2594
|
+
optimizeContentsForCPUAccess(texture: MTLTexture): void
|
|
2595
|
+
|
|
2596
|
+
optimizeContentsForCPUAccessSliceLevel(texture: MTLTexture, slice: number, level: number): void
|
|
2597
|
+
|
|
2598
|
+
resetCommandsInBufferWithRange(buffer: MTLIndirectCommandBuffer, range: _NSRange): void
|
|
2599
|
+
|
|
2600
|
+
copyIndirectCommandBufferSourceRangeDestinationDestinationIndex(
|
|
2601
|
+
source: MTLIndirectCommandBuffer,
|
|
2602
|
+
sourceRange: _NSRange,
|
|
2603
|
+
destination: MTLIndirectCommandBuffer,
|
|
2604
|
+
destinationIndex: number,
|
|
2605
|
+
): void
|
|
2606
|
+
|
|
2607
|
+
optimizeIndirectCommandBufferWithRange(
|
|
2608
|
+
indirectCommandBuffer: MTLIndirectCommandBuffer,
|
|
2609
|
+
range: _NSRange,
|
|
2610
|
+
): void
|
|
2611
|
+
|
|
2612
|
+
sampleCountersInBufferAtSampleIndexWithBarrier(
|
|
2613
|
+
sampleBuffer: MTLCounterSampleBuffer,
|
|
2614
|
+
sampleIndex: number,
|
|
2615
|
+
barrier: boolean,
|
|
2616
|
+
): void
|
|
2617
|
+
|
|
2618
|
+
resolveCountersInRangeDestinationBufferDestinationOffset(
|
|
2619
|
+
sampleBuffer: MTLCounterSampleBuffer,
|
|
2620
|
+
range: _NSRange,
|
|
2621
|
+
destinationBuffer: MTLBuffer,
|
|
2622
|
+
destinationOffset: number,
|
|
2623
|
+
): void
|
|
2624
|
+
}
|
|
2625
|
+
|
|
2626
|
+
declare class MTLBlitCommandEncoder extends NativeObject implements MTLBlitCommandEncoder {}
|
|
2627
|
+
|
|
2628
|
+
declare interface MTLCounterSet extends NSObjectProtocol {
|
|
2629
|
+
readonly name: string
|
|
2630
|
+
|
|
2631
|
+
readonly counters: NSArray
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
declare class MTLCounterSet extends NativeObject implements MTLCounterSet {}
|
|
2635
|
+
|
|
2636
|
+
declare interface MTLCounter extends NSObjectProtocol {
|
|
2637
|
+
readonly name: string
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2640
|
+
declare class MTLCounter extends NativeObject implements MTLCounter {}
|
|
2641
|
+
|
|
2642
|
+
declare interface MTLFunction extends NSObjectProtocol {
|
|
2643
|
+
label: string
|
|
2644
|
+
|
|
2645
|
+
readonly device: MTLDevice
|
|
2646
|
+
|
|
2647
|
+
readonly functionType: interop.Enum<typeof MTLFunctionType>
|
|
2648
|
+
|
|
2649
|
+
readonly patchType: interop.Enum<typeof MTLPatchType>
|
|
2650
|
+
|
|
2651
|
+
readonly patchControlPointCount: number
|
|
2652
|
+
|
|
2653
|
+
readonly vertexAttributes: NSArray
|
|
2654
|
+
|
|
2655
|
+
readonly stageInputAttributes: NSArray
|
|
2656
|
+
|
|
2657
|
+
readonly name: string
|
|
2658
|
+
|
|
2659
|
+
readonly functionConstantsDictionary: NSDictionary
|
|
2660
|
+
|
|
2661
|
+
newArgumentEncoderWithBufferIndex(bufferIndex: number): MTLArgumentEncoder
|
|
2662
|
+
|
|
2663
|
+
newArgumentEncoderWithBufferIndexReflection(
|
|
2664
|
+
bufferIndex: number,
|
|
2665
|
+
reflection: interop.PointerConvertible,
|
|
2666
|
+
): MTLArgumentEncoder
|
|
2667
|
+
|
|
2668
|
+
readonly options: interop.Enum<typeof MTLFunctionOptions>
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2671
|
+
declare class MTLFunction extends NativeObject implements MTLFunction {}
|
|
2672
|
+
|
|
2673
|
+
declare interface MTLDevice extends NSObjectProtocol {
|
|
2674
|
+
readonly name: string
|
|
2675
|
+
|
|
2676
|
+
readonly registryID: number
|
|
2677
|
+
|
|
2678
|
+
readonly maxThreadsPerThreadgroup: MTLSize
|
|
2679
|
+
|
|
2680
|
+
readonly lowPower: boolean
|
|
2681
|
+
|
|
2682
|
+
readonly headless: boolean
|
|
2683
|
+
|
|
2684
|
+
readonly removable: boolean
|
|
2685
|
+
|
|
2686
|
+
readonly hasUnifiedMemory: boolean
|
|
2687
|
+
|
|
2688
|
+
readonly recommendedMaxWorkingSetSize: number
|
|
2689
|
+
|
|
2690
|
+
readonly location: interop.Enum<typeof MTLDeviceLocation>
|
|
2691
|
+
|
|
2692
|
+
readonly locationNumber: number
|
|
2693
|
+
|
|
2694
|
+
readonly maxTransferRate: number
|
|
2695
|
+
|
|
2696
|
+
readonly depth24Stencil8PixelFormatSupported: boolean
|
|
2697
|
+
|
|
2698
|
+
readonly readWriteTextureSupport: interop.Enum<typeof MTLReadWriteTextureTier>
|
|
2699
|
+
|
|
2700
|
+
readonly argumentBuffersSupport: interop.Enum<typeof MTLArgumentBuffersTier>
|
|
2701
|
+
|
|
2702
|
+
readonly rasterOrderGroupsSupported: boolean
|
|
2703
|
+
|
|
2704
|
+
readonly supports32BitFloatFiltering: boolean
|
|
2705
|
+
|
|
2706
|
+
readonly supports32BitMSAA: boolean
|
|
2707
|
+
|
|
2708
|
+
readonly supportsQueryTextureLOD: boolean
|
|
2709
|
+
|
|
2710
|
+
readonly supportsBCTextureCompression: boolean
|
|
2711
|
+
|
|
2712
|
+
readonly supportsPullModelInterpolation: boolean
|
|
2713
|
+
|
|
2714
|
+
readonly barycentricCoordsSupported: boolean
|
|
2715
|
+
|
|
2716
|
+
readonly supportsShaderBarycentricCoordinates: boolean
|
|
2717
|
+
|
|
2718
|
+
readonly currentAllocatedSize: number
|
|
2719
|
+
|
|
2720
|
+
newCommandQueue(): MTLCommandQueue
|
|
2721
|
+
|
|
2722
|
+
newCommandQueueWithMaxCommandBufferCount(maxCommandBufferCount: number): MTLCommandQueue
|
|
2723
|
+
|
|
2724
|
+
heapTextureSizeAndAlignWithDescriptor(desc: MTLTextureDescriptor): MTLSizeAndAlign
|
|
2725
|
+
|
|
2726
|
+
heapBufferSizeAndAlignWithLengthOptions(
|
|
2727
|
+
length: number,
|
|
2728
|
+
options: interop.Enum<typeof MTLResourceOptions>,
|
|
2729
|
+
): MTLSizeAndAlign
|
|
2730
|
+
|
|
2731
|
+
newHeapWithDescriptor(descriptor: MTLHeapDescriptor): MTLHeap
|
|
2732
|
+
|
|
2733
|
+
newBufferWithLengthOptions(
|
|
2734
|
+
length: number,
|
|
2735
|
+
options: interop.Enum<typeof MTLResourceOptions>,
|
|
2736
|
+
): MTLBuffer
|
|
2737
|
+
|
|
2738
|
+
newBufferWithBytesLengthOptions(
|
|
2739
|
+
pointer: interop.PointerConvertible,
|
|
2740
|
+
length: number,
|
|
2741
|
+
options: interop.Enum<typeof MTLResourceOptions>,
|
|
2742
|
+
): MTLBuffer
|
|
2743
|
+
|
|
2744
|
+
newBufferWithBytesNoCopyLengthOptionsDeallocator(
|
|
2745
|
+
pointer: interop.PointerConvertible,
|
|
2746
|
+
length: number,
|
|
2747
|
+
options: interop.Enum<typeof MTLResourceOptions>,
|
|
2748
|
+
deallocator: (p1: interop.PointerConvertible, p2: number) => void | null,
|
|
2749
|
+
): MTLBuffer
|
|
2750
|
+
|
|
2751
|
+
newDepthStencilStateWithDescriptor(descriptor: MTLDepthStencilDescriptor): MTLDepthStencilState
|
|
2752
|
+
|
|
2753
|
+
newTextureWithDescriptor(descriptor: MTLTextureDescriptor): MTLTexture
|
|
2754
|
+
|
|
2755
|
+
newTextureWithDescriptorIosurfacePlane(
|
|
2756
|
+
descriptor: MTLTextureDescriptor,
|
|
2757
|
+
iosurface: interop.Object,
|
|
2758
|
+
plane: number,
|
|
2759
|
+
): MTLTexture
|
|
2760
|
+
|
|
2761
|
+
newSharedTextureWithDescriptor(descriptor: MTLTextureDescriptor): MTLTexture
|
|
2762
|
+
|
|
2763
|
+
newSharedTextureWithHandle(sharedHandle: MTLSharedTextureHandle): MTLTexture
|
|
2764
|
+
|
|
2765
|
+
newSamplerStateWithDescriptor(descriptor: MTLSamplerDescriptor): MTLSamplerState
|
|
2766
|
+
|
|
2767
|
+
newDefaultLibrary(): MTLLibrary
|
|
2768
|
+
|
|
2769
|
+
newDefaultLibraryWithBundleError(bundle: NSBundle, error: interop.PointerConvertible): MTLLibrary
|
|
2770
|
+
|
|
2771
|
+
newLibraryWithFileError(filepath: string, error: interop.PointerConvertible): MTLLibrary
|
|
2772
|
+
|
|
2773
|
+
newLibraryWithURLError(url: NSURL, error: interop.PointerConvertible): MTLLibrary
|
|
2774
|
+
|
|
2775
|
+
newLibraryWithDataError(data: NSObject, error: interop.PointerConvertible): MTLLibrary
|
|
2776
|
+
|
|
2777
|
+
newLibraryWithSourceOptionsError(
|
|
2778
|
+
source: string,
|
|
2779
|
+
options: MTLCompileOptions | null,
|
|
2780
|
+
error: interop.PointerConvertible,
|
|
2781
|
+
): MTLLibrary
|
|
2782
|
+
|
|
2783
|
+
newLibraryWithSourceOptionsCompletionHandler(
|
|
2784
|
+
source: string,
|
|
2785
|
+
options: MTLCompileOptions | null,
|
|
2786
|
+
completionHandler: (p1: MTLLibrary, p2: NSError) => void,
|
|
2787
|
+
): void
|
|
2788
|
+
|
|
2789
|
+
newRenderPipelineStateWithDescriptorError(
|
|
2790
|
+
descriptor: MTLRenderPipelineDescriptor,
|
|
2791
|
+
error: interop.PointerConvertible,
|
|
2792
|
+
): MTLRenderPipelineState
|
|
2793
|
+
|
|
2794
|
+
newRenderPipelineStateWithDescriptorOptionsReflectionError(
|
|
2795
|
+
descriptor: MTLRenderPipelineDescriptor,
|
|
2796
|
+
options: interop.Enum<typeof MTLPipelineOption>,
|
|
2797
|
+
reflection: interop.PointerConvertible,
|
|
2798
|
+
error: interop.PointerConvertible,
|
|
2799
|
+
): MTLRenderPipelineState
|
|
2800
|
+
|
|
2801
|
+
newRenderPipelineStateWithDescriptorCompletionHandler(
|
|
2802
|
+
descriptor: MTLRenderPipelineDescriptor,
|
|
2803
|
+
completionHandler: (p1: MTLRenderPipelineState, p2: NSError) => void,
|
|
2804
|
+
): void
|
|
2805
|
+
|
|
2806
|
+
newRenderPipelineStateWithDescriptorOptionsCompletionHandler(
|
|
2807
|
+
descriptor: MTLRenderPipelineDescriptor,
|
|
2808
|
+
options: interop.Enum<typeof MTLPipelineOption>,
|
|
2809
|
+
completionHandler: (
|
|
2810
|
+
p1: MTLRenderPipelineState,
|
|
2811
|
+
p2: MTLRenderPipelineReflection,
|
|
2812
|
+
p3: NSError,
|
|
2813
|
+
) => void,
|
|
2814
|
+
): void
|
|
2815
|
+
|
|
2816
|
+
newComputePipelineStateWithFunctionError(
|
|
2817
|
+
computeFunction: MTLFunction,
|
|
2818
|
+
error: interop.PointerConvertible,
|
|
2819
|
+
): MTLComputePipelineState
|
|
2820
|
+
|
|
2821
|
+
newComputePipelineStateWithFunctionOptionsReflectionError(
|
|
2822
|
+
computeFunction: MTLFunction,
|
|
2823
|
+
options: interop.Enum<typeof MTLPipelineOption>,
|
|
2824
|
+
reflection: interop.PointerConvertible,
|
|
2825
|
+
error: interop.PointerConvertible,
|
|
2826
|
+
): MTLComputePipelineState
|
|
2827
|
+
|
|
2828
|
+
newComputePipelineStateWithFunctionCompletionHandler(
|
|
2829
|
+
computeFunction: MTLFunction,
|
|
2830
|
+
completionHandler: (p1: MTLComputePipelineState, p2: NSError) => void,
|
|
2831
|
+
): void
|
|
2832
|
+
|
|
2833
|
+
newComputePipelineStateWithFunctionOptionsCompletionHandler(
|
|
2834
|
+
computeFunction: MTLFunction,
|
|
2835
|
+
options: interop.Enum<typeof MTLPipelineOption>,
|
|
2836
|
+
completionHandler: (
|
|
2837
|
+
p1: MTLComputePipelineState,
|
|
2838
|
+
p2: MTLComputePipelineReflection,
|
|
2839
|
+
p3: NSError,
|
|
2840
|
+
) => void,
|
|
2841
|
+
): void
|
|
2842
|
+
|
|
2843
|
+
newComputePipelineStateWithDescriptorOptionsReflectionError(
|
|
2844
|
+
descriptor: MTLComputePipelineDescriptor,
|
|
2845
|
+
options: interop.Enum<typeof MTLPipelineOption>,
|
|
2846
|
+
reflection: interop.PointerConvertible,
|
|
2847
|
+
error: interop.PointerConvertible,
|
|
2848
|
+
): MTLComputePipelineState
|
|
2849
|
+
|
|
2850
|
+
newComputePipelineStateWithDescriptorOptionsCompletionHandler(
|
|
2851
|
+
descriptor: MTLComputePipelineDescriptor,
|
|
2852
|
+
options: interop.Enum<typeof MTLPipelineOption>,
|
|
2853
|
+
completionHandler: (
|
|
2854
|
+
p1: MTLComputePipelineState,
|
|
2855
|
+
p2: MTLComputePipelineReflection,
|
|
2856
|
+
p3: NSError,
|
|
2857
|
+
) => void,
|
|
2858
|
+
): void
|
|
2859
|
+
|
|
2860
|
+
newFence(): MTLFence
|
|
2861
|
+
|
|
2862
|
+
supportsFeatureSet(featureSet: interop.Enum<typeof MTLFeatureSet>): boolean
|
|
2863
|
+
|
|
2864
|
+
supportsFamily(gpuFamily: interop.Enum<typeof MTLGPUFamily>): boolean
|
|
2865
|
+
|
|
2866
|
+
supportsTextureSampleCount(sampleCount: number): boolean
|
|
2867
|
+
|
|
2868
|
+
minimumLinearTextureAlignmentForPixelFormat(format: interop.Enum<typeof MTLPixelFormat>): number
|
|
2869
|
+
|
|
2870
|
+
minimumTextureBufferAlignmentForPixelFormat(format: interop.Enum<typeof MTLPixelFormat>): number
|
|
2871
|
+
|
|
2872
|
+
newRenderPipelineStateWithTileDescriptorOptionsReflectionError(
|
|
2873
|
+
descriptor: MTLTileRenderPipelineDescriptor,
|
|
2874
|
+
options: interop.Enum<typeof MTLPipelineOption>,
|
|
2875
|
+
reflection: interop.PointerConvertible,
|
|
2876
|
+
error: interop.PointerConvertible,
|
|
2877
|
+
): MTLRenderPipelineState
|
|
2878
|
+
|
|
2879
|
+
newRenderPipelineStateWithTileDescriptorOptionsCompletionHandler(
|
|
2880
|
+
descriptor: MTLTileRenderPipelineDescriptor,
|
|
2881
|
+
options: interop.Enum<typeof MTLPipelineOption>,
|
|
2882
|
+
completionHandler: (
|
|
2883
|
+
p1: MTLRenderPipelineState,
|
|
2884
|
+
p2: MTLRenderPipelineReflection,
|
|
2885
|
+
p3: NSError,
|
|
2886
|
+
) => void,
|
|
2887
|
+
): void
|
|
2888
|
+
|
|
2889
|
+
readonly maxThreadgroupMemoryLength: number
|
|
2890
|
+
|
|
2891
|
+
readonly maxArgumentBufferSamplerCount: number
|
|
2892
|
+
|
|
2893
|
+
readonly programmableSamplePositionsSupported: boolean
|
|
2894
|
+
|
|
2895
|
+
getDefaultSamplePositionsCount(positions: interop.PointerConvertible, count: number): void
|
|
2896
|
+
|
|
2897
|
+
newArgumentEncoderWithArguments(
|
|
2898
|
+
arguments$: NSArray<interop.Object> | Array<interop.Object>,
|
|
2899
|
+
): MTLArgumentEncoder
|
|
2900
|
+
|
|
2901
|
+
supportsRasterizationRateMapWithLayerCount(layerCount: number): boolean
|
|
2902
|
+
|
|
2903
|
+
newRasterizationRateMapWithDescriptor(
|
|
2904
|
+
descriptor: MTLRasterizationRateMapDescriptor,
|
|
2905
|
+
): MTLRasterizationRateMap
|
|
2906
|
+
|
|
2907
|
+
newIndirectCommandBufferWithDescriptorMaxCommandCountOptions(
|
|
2908
|
+
descriptor: MTLIndirectCommandBufferDescriptor,
|
|
2909
|
+
maxCount: number,
|
|
2910
|
+
options: interop.Enum<typeof MTLResourceOptions>,
|
|
2911
|
+
): MTLIndirectCommandBuffer
|
|
2912
|
+
|
|
2913
|
+
newEvent(): MTLEvent
|
|
2914
|
+
|
|
2915
|
+
newSharedEvent(): MTLSharedEvent
|
|
2916
|
+
|
|
2917
|
+
newSharedEventWithHandle(sharedEventHandle: MTLSharedEventHandle): MTLSharedEvent
|
|
2918
|
+
|
|
2919
|
+
readonly peerGroupID: number
|
|
2920
|
+
|
|
2921
|
+
readonly peerIndex: number
|
|
2922
|
+
|
|
2923
|
+
readonly peerCount: number
|
|
2924
|
+
|
|
2925
|
+
sparseTileSizeWithTextureTypePixelFormatSampleCount(
|
|
2926
|
+
textureType: interop.Enum<typeof MTLTextureType>,
|
|
2927
|
+
pixelFormat: interop.Enum<typeof MTLPixelFormat>,
|
|
2928
|
+
sampleCount: number,
|
|
2929
|
+
): MTLSize
|
|
2930
|
+
|
|
2931
|
+
readonly sparseTileSizeInBytes: number
|
|
2932
|
+
|
|
2933
|
+
convertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions?(
|
|
2934
|
+
pixelRegions: interop.PointerConvertible,
|
|
2935
|
+
tileRegions: interop.PointerConvertible,
|
|
2936
|
+
tileSize: MTLSize,
|
|
2937
|
+
mode: interop.Enum<typeof MTLSparseTextureRegionAlignmentMode>,
|
|
2938
|
+
numRegions: number,
|
|
2939
|
+
): void
|
|
2940
|
+
|
|
2941
|
+
convertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions?(
|
|
2942
|
+
tileRegions: interop.PointerConvertible,
|
|
2943
|
+
pixelRegions: interop.PointerConvertible,
|
|
2944
|
+
tileSize: MTLSize,
|
|
2945
|
+
numRegions: number,
|
|
2946
|
+
): void
|
|
2947
|
+
|
|
2948
|
+
readonly maxBufferLength: number
|
|
2949
|
+
|
|
2950
|
+
readonly counterSets: NSArray
|
|
2951
|
+
|
|
2952
|
+
newCounterSampleBufferWithDescriptorError(
|
|
2953
|
+
descriptor: MTLCounterSampleBufferDescriptor,
|
|
2954
|
+
error: interop.PointerConvertible,
|
|
2955
|
+
): MTLCounterSampleBuffer
|
|
2956
|
+
|
|
2957
|
+
sampleTimestampsGpuTimestamp(
|
|
2958
|
+
cpuTimestamp: interop.PointerConvertible,
|
|
2959
|
+
gpuTimestamp: interop.PointerConvertible,
|
|
2960
|
+
): void
|
|
2961
|
+
|
|
2962
|
+
supportsCounterSampling(samplingPoint: interop.Enum<typeof MTLCounterSamplingPoint>): boolean
|
|
2963
|
+
|
|
2964
|
+
supportsVertexAmplificationCount(count: number): boolean
|
|
2965
|
+
|
|
2966
|
+
readonly supportsDynamicLibraries: boolean
|
|
2967
|
+
|
|
2968
|
+
newDynamicLibraryError(library: MTLLibrary, error: interop.PointerConvertible): MTLDynamicLibrary
|
|
2969
|
+
|
|
2970
|
+
newDynamicLibraryWithURLError(url: NSURL, error: interop.PointerConvertible): MTLDynamicLibrary
|
|
2971
|
+
|
|
2972
|
+
newBinaryArchiveWithDescriptorError(
|
|
2973
|
+
descriptor: MTLBinaryArchiveDescriptor,
|
|
2974
|
+
error: interop.PointerConvertible,
|
|
2975
|
+
): MTLBinaryArchive
|
|
2976
|
+
|
|
2977
|
+
readonly supportsRaytracing: boolean
|
|
2978
|
+
|
|
2979
|
+
accelerationStructureSizesWithDescriptor(
|
|
2980
|
+
descriptor: MTLAccelerationStructureDescriptor,
|
|
2981
|
+
): MTLAccelerationStructureSizes
|
|
2982
|
+
|
|
2983
|
+
newAccelerationStructureWithSize(size: number): MTLAccelerationStructure
|
|
2984
|
+
|
|
2985
|
+
newAccelerationStructureWithDescriptor(
|
|
2986
|
+
descriptor: MTLAccelerationStructureDescriptor,
|
|
2987
|
+
): MTLAccelerationStructure
|
|
2988
|
+
|
|
2989
|
+
readonly supportsFunctionPointers: boolean
|
|
2990
|
+
|
|
2991
|
+
readonly supportsPrimitiveMotionBlur: boolean
|
|
2992
|
+
|
|
2993
|
+
isLowPower(): boolean
|
|
2994
|
+
|
|
2995
|
+
isHeadless(): boolean
|
|
2996
|
+
|
|
2997
|
+
isRemovable(): boolean
|
|
2998
|
+
|
|
2999
|
+
isDepth24Stencil8PixelFormatSupported(): boolean
|
|
3000
|
+
|
|
3001
|
+
areRasterOrderGroupsSupported(): boolean
|
|
3002
|
+
|
|
3003
|
+
areBarycentricCoordsSupported(): boolean
|
|
3004
|
+
|
|
3005
|
+
areProgrammableSamplePositionsSupported(): boolean
|
|
3006
|
+
}
|
|
3007
|
+
|
|
3008
|
+
declare class MTLDevice extends NativeObject implements MTLDevice {}
|
|
3009
|
+
|
|
3010
|
+
declare interface MTLBuffer extends MTLResource {
|
|
3011
|
+
readonly length: number
|
|
3012
|
+
|
|
3013
|
+
contents(): interop.Pointer
|
|
3014
|
+
|
|
3015
|
+
didModifyRange(range: _NSRange): void
|
|
3016
|
+
|
|
3017
|
+
newTextureWithDescriptorOffsetBytesPerRow(
|
|
3018
|
+
descriptor: MTLTextureDescriptor,
|
|
3019
|
+
offset: number,
|
|
3020
|
+
bytesPerRow: number,
|
|
3021
|
+
): MTLTexture
|
|
3022
|
+
|
|
3023
|
+
addDebugMarkerRange(marker: string, range: _NSRange): void
|
|
3024
|
+
|
|
3025
|
+
removeAllDebugMarkers(): void
|
|
3026
|
+
|
|
3027
|
+
readonly remoteStorageBuffer: MTLBuffer
|
|
3028
|
+
|
|
3029
|
+
newRemoteBufferViewForDevice(device: MTLDevice): MTLBuffer
|
|
3030
|
+
}
|
|
3031
|
+
|
|
3032
|
+
declare class MTLBuffer extends NativeObject implements MTLBuffer {}
|
|
3033
|
+
|
|
3034
|
+
declare interface MTLCommandEncoder extends NSObjectProtocol {
|
|
3035
|
+
readonly device: MTLDevice
|
|
3036
|
+
|
|
3037
|
+
label: string
|
|
3038
|
+
|
|
3039
|
+
endEncoding(): void
|
|
3040
|
+
|
|
3041
|
+
insertDebugSignpost(string: string): void
|
|
3042
|
+
|
|
3043
|
+
pushDebugGroup(string: string): void
|
|
3044
|
+
|
|
3045
|
+
popDebugGroup(): void
|
|
3046
|
+
}
|
|
3047
|
+
|
|
3048
|
+
declare class MTLCommandEncoder extends NativeObject implements MTLCommandEncoder {}
|
|
3049
|
+
|
|
3050
|
+
declare interface MTLIndirectComputeCommand extends NSObjectProtocol {
|
|
3051
|
+
setComputePipelineState(pipelineState: MTLComputePipelineState): void
|
|
3052
|
+
|
|
3053
|
+
setKernelBufferOffsetAtIndex(buffer: MTLBuffer, offset: number, index: number): void
|
|
3054
|
+
|
|
3055
|
+
concurrentDispatchThreadgroupsThreadsPerThreadgroup(
|
|
3056
|
+
threadgroupsPerGrid: MTLSize,
|
|
3057
|
+
threadsPerThreadgroup: MTLSize,
|
|
3058
|
+
): void
|
|
3059
|
+
|
|
3060
|
+
concurrentDispatchThreadsThreadsPerThreadgroup(
|
|
3061
|
+
threadsPerGrid: MTLSize,
|
|
3062
|
+
threadsPerThreadgroup: MTLSize,
|
|
3063
|
+
): void
|
|
3064
|
+
|
|
3065
|
+
setBarrier(): void
|
|
3066
|
+
|
|
3067
|
+
clearBarrier(): void
|
|
3068
|
+
|
|
3069
|
+
setImageblockWidthHeight(width: number, height: number): void
|
|
3070
|
+
|
|
3071
|
+
reset(): void
|
|
3072
|
+
|
|
3073
|
+
setThreadgroupMemoryLengthAtIndex(length: number, index: number): void
|
|
3074
|
+
|
|
3075
|
+
setStageInRegion(region: MTLRegion): void
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
declare class MTLIndirectComputeCommand extends NativeObject implements MTLIndirectComputeCommand {}
|
|
3079
|
+
|
|
3080
|
+
declare interface MTLDrawable extends NSObjectProtocol {
|
|
3081
|
+
present(): void
|
|
3082
|
+
|
|
3083
|
+
presentAtTime(presentationTime: number): void
|
|
3084
|
+
|
|
3085
|
+
presentAfterMinimumDuration(duration: number): void
|
|
3086
|
+
|
|
3087
|
+
addPresentedHandler(block: (p1: MTLDrawable) => void): void
|
|
3088
|
+
|
|
3089
|
+
readonly presentedTime: number
|
|
3090
|
+
|
|
3091
|
+
readonly drawableID: number
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
declare class MTLDrawable extends NativeObject implements MTLDrawable {}
|
|
3095
|
+
|
|
3096
|
+
declare interface MTLAccelerationStructure extends MTLResource {
|
|
3097
|
+
readonly size: number
|
|
3098
|
+
}
|
|
3099
|
+
|
|
3100
|
+
declare class MTLAccelerationStructure extends NativeObject implements MTLAccelerationStructure {}
|
|
3101
|
+
|
|
3102
|
+
declare interface MTLLogContainer extends NSObjectProtocol, NSFastEnumeration {}
|
|
3103
|
+
|
|
3104
|
+
declare class MTLLogContainer extends NativeObject implements MTLLogContainer {}
|
|
3105
|
+
|
|
3106
|
+
declare interface MTLFence extends NSObjectProtocol {
|
|
3107
|
+
readonly device: MTLDevice
|
|
3108
|
+
|
|
3109
|
+
label: string
|
|
3110
|
+
}
|
|
3111
|
+
|
|
3112
|
+
declare class MTLFence extends NativeObject implements MTLFence {}
|
|
3113
|
+
|
|
3114
|
+
declare interface MTLDepthStencilState extends NSObjectProtocol {
|
|
3115
|
+
readonly label: string
|
|
3116
|
+
|
|
3117
|
+
readonly device: MTLDevice
|
|
3118
|
+
}
|
|
3119
|
+
|
|
3120
|
+
declare class MTLDepthStencilState extends NativeObject implements MTLDepthStencilState {}
|
|
3121
|
+
|
|
3122
|
+
declare interface MTLResource extends MTLAllocation {
|
|
3123
|
+
label: string
|
|
3124
|
+
|
|
3125
|
+
readonly device: MTLDevice
|
|
3126
|
+
|
|
3127
|
+
readonly cpuCacheMode: interop.Enum<typeof MTLCPUCacheMode>
|
|
3128
|
+
|
|
3129
|
+
readonly storageMode: interop.Enum<typeof MTLStorageMode>
|
|
3130
|
+
|
|
3131
|
+
readonly hazardTrackingMode: interop.Enum<typeof MTLHazardTrackingMode>
|
|
3132
|
+
|
|
3133
|
+
readonly resourceOptions: interop.Enum<typeof MTLResourceOptions>
|
|
3134
|
+
|
|
3135
|
+
setPurgeableState(
|
|
3136
|
+
state: interop.Enum<typeof MTLPurgeableState>,
|
|
3137
|
+
): interop.Enum<typeof MTLPurgeableState>
|
|
3138
|
+
|
|
3139
|
+
readonly heap: MTLHeap
|
|
3140
|
+
|
|
3141
|
+
readonly heapOffset: number
|
|
3142
|
+
|
|
3143
|
+
readonly allocatedSize: number
|
|
3144
|
+
|
|
3145
|
+
makeAliasable(): void
|
|
3146
|
+
|
|
3147
|
+
isAliasable(): boolean
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
declare class MTLResource extends NativeObject implements MTLResource {}
|
|
3151
|
+
|
|
3152
|
+
declare interface MTLTexture extends MTLResource {
|
|
3153
|
+
readonly rootResource: MTLResource
|
|
3154
|
+
|
|
3155
|
+
readonly parentTexture: MTLTexture
|
|
3156
|
+
|
|
3157
|
+
readonly parentRelativeLevel: number
|
|
3158
|
+
|
|
3159
|
+
readonly parentRelativeSlice: number
|
|
3160
|
+
|
|
3161
|
+
readonly buffer: MTLBuffer
|
|
3162
|
+
|
|
3163
|
+
readonly bufferOffset: number
|
|
3164
|
+
|
|
3165
|
+
readonly bufferBytesPerRow: number
|
|
3166
|
+
|
|
3167
|
+
readonly iosurface: interop.Object
|
|
3168
|
+
|
|
3169
|
+
readonly iosurfacePlane: number
|
|
3170
|
+
|
|
3171
|
+
readonly textureType: interop.Enum<typeof MTLTextureType>
|
|
3172
|
+
|
|
3173
|
+
readonly pixelFormat: interop.Enum<typeof MTLPixelFormat>
|
|
3174
|
+
|
|
3175
|
+
readonly width: number
|
|
3176
|
+
|
|
3177
|
+
readonly height: number
|
|
3178
|
+
|
|
3179
|
+
readonly depth: number
|
|
3180
|
+
|
|
3181
|
+
readonly mipmapLevelCount: number
|
|
3182
|
+
|
|
3183
|
+
readonly sampleCount: number
|
|
3184
|
+
|
|
3185
|
+
readonly arrayLength: number
|
|
3186
|
+
|
|
3187
|
+
readonly usage: interop.Enum<typeof MTLTextureUsage>
|
|
3188
|
+
|
|
3189
|
+
readonly shareable: boolean
|
|
3190
|
+
|
|
3191
|
+
readonly framebufferOnly: boolean
|
|
3192
|
+
|
|
3193
|
+
readonly firstMipmapInTail?: number
|
|
3194
|
+
|
|
3195
|
+
readonly tailSizeInBytes?: number
|
|
3196
|
+
|
|
3197
|
+
readonly isSparse?: boolean
|
|
3198
|
+
|
|
3199
|
+
readonly allowGPUOptimizedContents: boolean
|
|
3200
|
+
|
|
3201
|
+
getBytesBytesPerRowBytesPerImageFromRegionMipmapLevelSlice(
|
|
3202
|
+
pixelBytes: interop.PointerConvertible,
|
|
3203
|
+
bytesPerRow: number,
|
|
3204
|
+
bytesPerImage: number,
|
|
3205
|
+
region: MTLRegion,
|
|
3206
|
+
level: number,
|
|
3207
|
+
slice: number,
|
|
3208
|
+
): void
|
|
3209
|
+
|
|
3210
|
+
replaceRegionMipmapLevelSliceWithBytesBytesPerRowBytesPerImage(
|
|
3211
|
+
region: MTLRegion,
|
|
3212
|
+
level: number,
|
|
3213
|
+
slice: number,
|
|
3214
|
+
pixelBytes: interop.PointerConvertible,
|
|
3215
|
+
bytesPerRow: number,
|
|
3216
|
+
bytesPerImage: number,
|
|
3217
|
+
): void
|
|
3218
|
+
|
|
3219
|
+
getBytesBytesPerRowFromRegionMipmapLevel(
|
|
3220
|
+
pixelBytes: interop.PointerConvertible,
|
|
3221
|
+
bytesPerRow: number,
|
|
3222
|
+
region: MTLRegion,
|
|
3223
|
+
level: number,
|
|
3224
|
+
): void
|
|
3225
|
+
|
|
3226
|
+
replaceRegionMipmapLevelWithBytesBytesPerRow(
|
|
3227
|
+
region: MTLRegion,
|
|
3228
|
+
level: number,
|
|
3229
|
+
pixelBytes: interop.PointerConvertible,
|
|
3230
|
+
bytesPerRow: number,
|
|
3231
|
+
): void
|
|
3232
|
+
|
|
3233
|
+
newTextureViewWithPixelFormat(pixelFormat: interop.Enum<typeof MTLPixelFormat>): MTLTexture
|
|
3234
|
+
|
|
3235
|
+
newTextureViewWithPixelFormatTextureTypeLevelsSlices(
|
|
3236
|
+
pixelFormat: interop.Enum<typeof MTLPixelFormat>,
|
|
3237
|
+
textureType: interop.Enum<typeof MTLTextureType>,
|
|
3238
|
+
levelRange: _NSRange,
|
|
3239
|
+
sliceRange: _NSRange,
|
|
3240
|
+
): MTLTexture
|
|
3241
|
+
|
|
3242
|
+
newSharedTextureHandle(): MTLSharedTextureHandle
|
|
3243
|
+
|
|
3244
|
+
readonly remoteStorageTexture: MTLTexture
|
|
3245
|
+
|
|
3246
|
+
newRemoteTextureViewForDevice(device: MTLDevice): MTLTexture
|
|
3247
|
+
|
|
3248
|
+
readonly swizzle: MTLTextureSwizzleChannels
|
|
3249
|
+
|
|
3250
|
+
newTextureViewWithPixelFormatTextureTypeLevelsSlicesSwizzle(
|
|
3251
|
+
pixelFormat: interop.Enum<typeof MTLPixelFormat>,
|
|
3252
|
+
textureType: interop.Enum<typeof MTLTextureType>,
|
|
3253
|
+
levelRange: _NSRange,
|
|
3254
|
+
sliceRange: _NSRange,
|
|
3255
|
+
swizzle: MTLTextureSwizzleChannels,
|
|
3256
|
+
): MTLTexture
|
|
3257
|
+
|
|
3258
|
+
isShareable(): boolean
|
|
3259
|
+
|
|
3260
|
+
isFramebufferOnly(): boolean
|
|
3261
|
+
}
|
|
3262
|
+
|
|
3263
|
+
declare class MTLTexture extends NativeObject implements MTLTexture {}
|
|
3264
|
+
|
|
3265
|
+
declare interface MTLEvent extends NSObjectProtocol {
|
|
3266
|
+
readonly device: MTLDevice
|
|
3267
|
+
|
|
3268
|
+
label: string
|
|
3269
|
+
}
|
|
3270
|
+
|
|
3271
|
+
declare class MTLEvent extends NativeObject implements MTLEvent {}
|
|
3272
|
+
|
|
3273
|
+
declare interface MTLVisibleFunctionTable extends MTLResource {
|
|
3274
|
+
setFunctionAtIndex(function$: MTLFunctionHandle | null, index: number): void
|
|
3275
|
+
|
|
3276
|
+
setFunctionsWithRange(functions: interop.PointerConvertible, range: _NSRange): void
|
|
3277
|
+
}
|
|
3278
|
+
|
|
3279
|
+
declare class MTLVisibleFunctionTable extends NativeObject implements MTLVisibleFunctionTable {}
|
|
3280
|
+
|
|
3281
|
+
declare interface MTLFunctionLogDebugLocation extends NSObjectProtocol {
|
|
3282
|
+
readonly functionName: string
|
|
3283
|
+
|
|
3284
|
+
readonly URL: NSURL
|
|
3285
|
+
|
|
3286
|
+
readonly line: number
|
|
3287
|
+
|
|
3288
|
+
readonly column: number
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
declare class MTLFunctionLogDebugLocation
|
|
3292
|
+
extends NativeObject
|
|
3293
|
+
implements MTLFunctionLogDebugLocation {}
|
|
3294
|
+
|
|
3295
|
+
declare interface MTLCaptureScope extends NSObjectProtocol {
|
|
3296
|
+
beginScope(): void
|
|
3297
|
+
|
|
3298
|
+
endScope(): void
|
|
3299
|
+
|
|
3300
|
+
label: string
|
|
3301
|
+
|
|
3302
|
+
readonly device: MTLDevice
|
|
3303
|
+
|
|
3304
|
+
readonly commandQueue: MTLCommandQueue
|
|
3305
|
+
|
|
3306
|
+
readonly mtl4CommandQueue: MTL4CommandQueue
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3309
|
+
declare class MTLCaptureScope extends NativeObject implements MTLCaptureScope {}
|
|
3310
|
+
|
|
3311
|
+
declare interface MTLComputePipelineState extends MTLAllocation, NSObjectProtocol {
|
|
3312
|
+
readonly label: string
|
|
3313
|
+
|
|
3314
|
+
readonly device: MTLDevice
|
|
3315
|
+
|
|
3316
|
+
readonly maxTotalThreadsPerThreadgroup: number
|
|
3317
|
+
|
|
3318
|
+
readonly threadExecutionWidth: number
|
|
3319
|
+
|
|
3320
|
+
readonly staticThreadgroupMemoryLength: number
|
|
3321
|
+
|
|
3322
|
+
imageblockMemoryLengthForDimensions(imageblockDimensions: MTLSize): number
|
|
3323
|
+
|
|
3324
|
+
readonly supportIndirectCommandBuffers: boolean
|
|
3325
|
+
|
|
3326
|
+
functionHandleWithFunction(function$: MTLFunction): MTLFunctionHandle
|
|
3327
|
+
|
|
3328
|
+
newComputePipelineStateWithAdditionalBinaryFunctionsError(
|
|
3329
|
+
functions: NSArray<interop.Object> | Array<interop.Object>,
|
|
3330
|
+
error: interop.PointerConvertible,
|
|
3331
|
+
): MTLComputePipelineState
|
|
3332
|
+
|
|
3333
|
+
newVisibleFunctionTableWithDescriptor(
|
|
3334
|
+
descriptor: MTLVisibleFunctionTableDescriptor,
|
|
3335
|
+
): MTLVisibleFunctionTable
|
|
3336
|
+
|
|
3337
|
+
newIntersectionFunctionTableWithDescriptor(
|
|
3338
|
+
descriptor: MTLIntersectionFunctionTableDescriptor,
|
|
3339
|
+
): MTLIntersectionFunctionTable
|
|
3340
|
+
}
|
|
3341
|
+
|
|
3342
|
+
declare class MTLComputePipelineState extends NativeObject implements MTLComputePipelineState {}
|
|
3343
|
+
|
|
3344
|
+
declare interface MTLFunctionHandle extends NSObjectProtocol {
|
|
3345
|
+
readonly functionType: interop.Enum<typeof MTLFunctionType>
|
|
3346
|
+
|
|
3347
|
+
readonly name: string
|
|
3348
|
+
|
|
3349
|
+
readonly device: MTLDevice
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
declare class MTLFunctionHandle extends NativeObject implements MTLFunctionHandle {}
|
|
3353
|
+
|
|
3354
|
+
declare interface MTLRasterizationRateMap extends NSObjectProtocol {
|
|
3355
|
+
readonly device: MTLDevice
|
|
3356
|
+
|
|
3357
|
+
readonly label: string
|
|
3358
|
+
|
|
3359
|
+
readonly screenSize: MTLSize
|
|
3360
|
+
|
|
3361
|
+
readonly physicalGranularity: MTLSize
|
|
3362
|
+
|
|
3363
|
+
readonly layerCount: number
|
|
3364
|
+
|
|
3365
|
+
readonly parameterBufferSizeAndAlign: MTLSizeAndAlign
|
|
3366
|
+
|
|
3367
|
+
copyParameterDataToBufferOffset(buffer: MTLBuffer, offset: number): void
|
|
3368
|
+
|
|
3369
|
+
physicalSizeForLayer(layerIndex: number): MTLSize
|
|
3370
|
+
|
|
3371
|
+
mapScreenToPhysicalCoordinatesForLayer(
|
|
3372
|
+
screenCoordinates: MTLSamplePosition,
|
|
3373
|
+
layerIndex: number,
|
|
3374
|
+
): MTLSamplePosition
|
|
3375
|
+
|
|
3376
|
+
mapPhysicalToScreenCoordinatesForLayer(
|
|
3377
|
+
physicalCoordinates: MTLSamplePosition,
|
|
3378
|
+
layerIndex: number,
|
|
3379
|
+
): MTLSamplePosition
|
|
3380
|
+
}
|
|
3381
|
+
|
|
3382
|
+
declare class MTLRasterizationRateMap extends NativeObject implements MTLRasterizationRateMap {}
|
|
3383
|
+
|
|
3384
|
+
declare interface MTLCounterSampleBuffer extends NSObjectProtocol {
|
|
3385
|
+
readonly device: MTLDevice
|
|
3386
|
+
|
|
3387
|
+
readonly label: string
|
|
3388
|
+
|
|
3389
|
+
readonly sampleCount: number
|
|
3390
|
+
|
|
3391
|
+
resolveCounterRange(range: _NSRange): NSData
|
|
3392
|
+
}
|
|
3393
|
+
|
|
3394
|
+
declare class MTLCounterSampleBuffer extends NativeObject implements MTLCounterSampleBuffer {}
|
|
3395
|
+
|
|
3396
|
+
declare class MTLStageInputOutputDescriptor extends NSObject implements NSCopying {
|
|
3397
|
+
static stageInputOutputDescriptor(): MTLStageInputOutputDescriptor
|
|
3398
|
+
|
|
3399
|
+
readonly layouts: MTLBufferLayoutDescriptorArray
|
|
3400
|
+
|
|
3401
|
+
readonly attributes: MTLAttributeDescriptorArray
|
|
3402
|
+
|
|
3403
|
+
indexType: interop.Enum<typeof MTLIndexType>
|
|
3404
|
+
|
|
3405
|
+
indexBufferIndex: number
|
|
3406
|
+
|
|
3407
|
+
reset(): void
|
|
3408
|
+
|
|
3409
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
declare class MTLVisibleFunctionTableDescriptor extends NSObject implements NSCopying {
|
|
3413
|
+
static visibleFunctionTableDescriptor(): MTLVisibleFunctionTableDescriptor
|
|
3414
|
+
|
|
3415
|
+
functionCount: number
|
|
3416
|
+
|
|
3417
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
declare class MTLRenderPipelineReflection extends NSObject {
|
|
3421
|
+
readonly vertexArguments: NSArray
|
|
3422
|
+
|
|
3423
|
+
readonly fragmentArguments: NSArray
|
|
3424
|
+
|
|
3425
|
+
readonly tileArguments: NSArray
|
|
3426
|
+
}
|
|
3427
|
+
|
|
3428
|
+
declare class MTLBufferLayoutDescriptorArray extends NSObject {
|
|
3429
|
+
objectAtIndexedSubscript(index: number): MTLBufferLayoutDescriptor
|
|
3430
|
+
|
|
3431
|
+
setObjectAtIndexedSubscript(bufferDesc: MTLBufferLayoutDescriptor | null, index: number): void
|
|
3432
|
+
}
|
|
3433
|
+
|
|
3434
|
+
declare class MTLAttributeDescriptor extends NSObject implements NSCopying {
|
|
3435
|
+
format: interop.Enum<typeof MTLAttributeFormat>
|
|
3436
|
+
|
|
3437
|
+
offset: number
|
|
3438
|
+
|
|
3439
|
+
bufferIndex: number
|
|
3440
|
+
|
|
3441
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3444
|
+
declare class MTLIntersectionFunctionTableDescriptor extends NSObject implements NSCopying {
|
|
3445
|
+
static intersectionFunctionTableDescriptor(): MTLIntersectionFunctionTableDescriptor
|
|
3446
|
+
|
|
3447
|
+
functionCount: number
|
|
3448
|
+
|
|
3449
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3452
|
+
declare class MTLRenderPassAttachmentDescriptor extends NSObject implements NSCopying {
|
|
3453
|
+
texture: MTLTexture
|
|
3454
|
+
|
|
3455
|
+
level: number
|
|
3456
|
+
|
|
3457
|
+
slice: number
|
|
3458
|
+
|
|
3459
|
+
depthPlane: number
|
|
3460
|
+
|
|
3461
|
+
resolveTexture: MTLTexture
|
|
3462
|
+
|
|
3463
|
+
resolveLevel: number
|
|
3464
|
+
|
|
3465
|
+
resolveSlice: number
|
|
3466
|
+
|
|
3467
|
+
resolveDepthPlane: number
|
|
3468
|
+
|
|
3469
|
+
loadAction: interop.Enum<typeof MTLLoadAction>
|
|
3470
|
+
|
|
3471
|
+
storeAction: interop.Enum<typeof MTLStoreAction>
|
|
3472
|
+
|
|
3473
|
+
storeActionOptions: interop.Enum<typeof MTLStoreActionOptions>
|
|
3474
|
+
|
|
3475
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3478
|
+
declare class MTLRasterizationRateMapDescriptor extends NSObject implements NSCopying {
|
|
3479
|
+
static rasterizationRateMapDescriptorWithScreenSize(
|
|
3480
|
+
screenSize: MTLSize,
|
|
3481
|
+
): MTLRasterizationRateMapDescriptor
|
|
3482
|
+
|
|
3483
|
+
static rasterizationRateMapDescriptorWithScreenSizeLayer(
|
|
3484
|
+
screenSize: MTLSize,
|
|
3485
|
+
layer: MTLRasterizationRateLayerDescriptor,
|
|
3486
|
+
): MTLRasterizationRateMapDescriptor
|
|
3487
|
+
|
|
3488
|
+
static rasterizationRateMapDescriptorWithScreenSizeLayerCountLayers(
|
|
3489
|
+
screenSize: MTLSize,
|
|
3490
|
+
layerCount: number,
|
|
3491
|
+
layers: interop.PointerConvertible,
|
|
3492
|
+
): MTLRasterizationRateMapDescriptor
|
|
3493
|
+
|
|
3494
|
+
layerAtIndex(layerIndex: number): MTLRasterizationRateLayerDescriptor | null
|
|
3495
|
+
|
|
3496
|
+
setLayerAtIndex(layer: MTLRasterizationRateLayerDescriptor | null, layerIndex: number): void
|
|
3497
|
+
|
|
3498
|
+
readonly layers: MTLRasterizationRateLayerArray
|
|
3499
|
+
|
|
3500
|
+
screenSize: MTLSize
|
|
3501
|
+
|
|
3502
|
+
label: string
|
|
3503
|
+
|
|
3504
|
+
readonly layerCount: number
|
|
3505
|
+
|
|
3506
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3507
|
+
}
|
|
3508
|
+
|
|
3509
|
+
declare class MTLCounterSampleBufferDescriptor extends NSObject implements NSCopying {
|
|
3510
|
+
counterSet: MTLCounterSet
|
|
3511
|
+
|
|
3512
|
+
label: string
|
|
3513
|
+
|
|
3514
|
+
storageMode: interop.Enum<typeof MTLStorageMode>
|
|
3515
|
+
|
|
3516
|
+
sampleCount: number
|
|
3517
|
+
|
|
3518
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3519
|
+
}
|
|
3520
|
+
|
|
3521
|
+
declare class MTLComputePipelineDescriptor extends NSObject implements NSCopying {
|
|
3522
|
+
label: string
|
|
3523
|
+
|
|
3524
|
+
computeFunction: MTLFunction
|
|
3525
|
+
|
|
3526
|
+
threadGroupSizeIsMultipleOfThreadExecutionWidth: boolean
|
|
3527
|
+
|
|
3528
|
+
maxTotalThreadsPerThreadgroup: number
|
|
3529
|
+
|
|
3530
|
+
stageInputDescriptor: MTLStageInputOutputDescriptor
|
|
3531
|
+
|
|
3532
|
+
readonly buffers: MTLPipelineBufferDescriptorArray
|
|
3533
|
+
|
|
3534
|
+
supportIndirectCommandBuffers: boolean
|
|
3535
|
+
|
|
3536
|
+
get insertLibraries(): NSArray
|
|
3537
|
+
set insertLibraries(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
3538
|
+
|
|
3539
|
+
get binaryArchives(): NSArray
|
|
3540
|
+
set binaryArchives(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
3541
|
+
|
|
3542
|
+
reset(): void
|
|
3543
|
+
|
|
3544
|
+
linkedFunctions: MTLLinkedFunctions
|
|
3545
|
+
|
|
3546
|
+
supportAddingBinaryFunctions: boolean
|
|
3547
|
+
|
|
3548
|
+
maxCallStackDepth: number
|
|
3549
|
+
|
|
3550
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3551
|
+
}
|
|
3552
|
+
|
|
3553
|
+
declare class MTLBlitPassSampleBufferAttachmentDescriptorArray extends NSObject {
|
|
3554
|
+
objectAtIndexedSubscript(attachmentIndex: number): MTLBlitPassSampleBufferAttachmentDescriptor
|
|
3555
|
+
|
|
3556
|
+
setObjectAtIndexedSubscript(
|
|
3557
|
+
attachment: MTLBlitPassSampleBufferAttachmentDescriptor | null,
|
|
3558
|
+
attachmentIndex: number,
|
|
3559
|
+
): void
|
|
3560
|
+
}
|
|
3561
|
+
|
|
3562
|
+
declare class MTLComputePassDescriptor extends NSObject implements NSCopying {
|
|
3563
|
+
static computePassDescriptor(): MTLComputePassDescriptor
|
|
3564
|
+
|
|
3565
|
+
dispatchType: interop.Enum<typeof MTLDispatchType>
|
|
3566
|
+
|
|
3567
|
+
readonly sampleBufferAttachments: MTLComputePassSampleBufferAttachmentDescriptorArray
|
|
3568
|
+
|
|
3569
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
declare class MTLAttributeDescriptorArray extends NSObject {
|
|
3573
|
+
objectAtIndexedSubscript(index: number): MTLAttributeDescriptor
|
|
3574
|
+
|
|
3575
|
+
setObjectAtIndexedSubscript(attributeDesc: MTLAttributeDescriptor | null, index: number): void
|
|
3576
|
+
}
|
|
3577
|
+
|
|
3578
|
+
declare class MTLBinaryArchiveDescriptor extends NSObject implements NSCopying {
|
|
3579
|
+
url: NSURL
|
|
3580
|
+
|
|
3581
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3582
|
+
}
|
|
3583
|
+
|
|
3584
|
+
declare class MTLRasterizationRateSampleArray extends NSObject {
|
|
3585
|
+
objectAtIndexedSubscript(index: number): NSNumber
|
|
3586
|
+
|
|
3587
|
+
setObjectAtIndexedSubscript(value: NSNumber, index: number): void
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3590
|
+
declare class MTLIndirectCommandBufferDescriptor extends NSObject implements NSCopying {
|
|
3591
|
+
commandTypes: interop.Enum<typeof MTLIndirectCommandType>
|
|
3592
|
+
|
|
3593
|
+
inheritPipelineState: boolean
|
|
3594
|
+
|
|
3595
|
+
inheritBuffers: boolean
|
|
3596
|
+
|
|
3597
|
+
maxVertexBufferBindCount: number
|
|
3598
|
+
|
|
3599
|
+
maxFragmentBufferBindCount: number
|
|
3600
|
+
|
|
3601
|
+
maxKernelBufferBindCount: number
|
|
3602
|
+
|
|
3603
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3604
|
+
}
|
|
3605
|
+
|
|
3606
|
+
declare class MTLSharedEventListener extends NSObject {
|
|
3607
|
+
init(): this
|
|
3608
|
+
|
|
3609
|
+
initWithDispatchQueue(dispatchQueue: NSObject): this
|
|
3610
|
+
|
|
3611
|
+
readonly dispatchQueue: NSObject
|
|
3612
|
+
}
|
|
3613
|
+
|
|
3614
|
+
declare class MTLHeapDescriptor extends NSObject implements NSCopying {
|
|
3615
|
+
size: number
|
|
3616
|
+
|
|
3617
|
+
storageMode: interop.Enum<typeof MTLStorageMode>
|
|
3618
|
+
|
|
3619
|
+
cpuCacheMode: interop.Enum<typeof MTLCPUCacheMode>
|
|
3620
|
+
|
|
3621
|
+
hazardTrackingMode: interop.Enum<typeof MTLHazardTrackingMode>
|
|
3622
|
+
|
|
3623
|
+
resourceOptions: interop.Enum<typeof MTLResourceOptions>
|
|
3624
|
+
|
|
3625
|
+
type: interop.Enum<typeof MTLHeapType>
|
|
3626
|
+
|
|
3627
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3628
|
+
}
|
|
3629
|
+
|
|
3630
|
+
declare class MTLPrimitiveAccelerationStructureDescriptor extends MTLAccelerationStructureDescriptor {
|
|
3631
|
+
get geometryDescriptors(): NSArray
|
|
3632
|
+
set geometryDescriptors(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
3633
|
+
|
|
3634
|
+
static descriptor<This extends abstract new (...args: any) => any>(this: This): InstanceType<This>
|
|
3635
|
+
}
|
|
3636
|
+
|
|
3637
|
+
declare class MTLTileRenderPipelineColorAttachmentDescriptorArray extends NSObject {
|
|
3638
|
+
objectAtIndexedSubscript(attachmentIndex: number): MTLTileRenderPipelineColorAttachmentDescriptor
|
|
3639
|
+
|
|
3640
|
+
setObjectAtIndexedSubscript(
|
|
3641
|
+
attachment: MTLTileRenderPipelineColorAttachmentDescriptor,
|
|
3642
|
+
attachmentIndex: number,
|
|
3643
|
+
): void
|
|
3644
|
+
}
|
|
3645
|
+
|
|
3646
|
+
declare class MTLPipelineBufferDescriptorArray extends NSObject {
|
|
3647
|
+
objectAtIndexedSubscript(bufferIndex: number): MTLPipelineBufferDescriptor
|
|
3648
|
+
|
|
3649
|
+
setObjectAtIndexedSubscript(buffer: MTLPipelineBufferDescriptor | null, bufferIndex: number): void
|
|
3650
|
+
}
|
|
3651
|
+
|
|
3652
|
+
declare class MTLSharedTextureHandle extends NSObject implements NSSecureCoding {
|
|
3653
|
+
readonly device: MTLDevice
|
|
3654
|
+
|
|
3655
|
+
readonly label: string
|
|
3656
|
+
|
|
3657
|
+
static readonly supportsSecureCoding: boolean
|
|
3658
|
+
|
|
3659
|
+
encodeWithCoder(coder: NSCoder): void
|
|
3660
|
+
|
|
3661
|
+
initWithCoder(coder: NSCoder): this
|
|
3662
|
+
}
|
|
3663
|
+
|
|
3664
|
+
declare class MTLBufferLayoutDescriptor extends NSObject implements NSCopying {
|
|
3665
|
+
stride: number
|
|
3666
|
+
|
|
3667
|
+
stepFunction: interop.Enum<typeof MTLStepFunction>
|
|
3668
|
+
|
|
3669
|
+
stepRate: number
|
|
3670
|
+
|
|
3671
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3672
|
+
}
|
|
3673
|
+
|
|
3674
|
+
declare class MTLVertexDescriptor extends NSObject implements NSCopying {
|
|
3675
|
+
static vertexDescriptor(): MTLVertexDescriptor
|
|
3676
|
+
|
|
3677
|
+
readonly layouts: MTLVertexBufferLayoutDescriptorArray
|
|
3678
|
+
|
|
3679
|
+
readonly attributes: MTLVertexAttributeDescriptorArray
|
|
3680
|
+
|
|
3681
|
+
reset(): void
|
|
3682
|
+
|
|
3683
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3684
|
+
}
|
|
3685
|
+
|
|
3686
|
+
declare class MTLVertexAttributeDescriptor extends NSObject implements NSCopying {
|
|
3687
|
+
format: interop.Enum<typeof MTLVertexFormat>
|
|
3688
|
+
|
|
3689
|
+
offset: number
|
|
3690
|
+
|
|
3691
|
+
bufferIndex: number
|
|
3692
|
+
|
|
3693
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3694
|
+
}
|
|
3695
|
+
|
|
3696
|
+
declare class MTLVertexBufferLayoutDescriptor extends NSObject implements NSCopying {
|
|
3697
|
+
stride: number
|
|
3698
|
+
|
|
3699
|
+
stepFunction: interop.Enum<typeof MTLVertexStepFunction>
|
|
3700
|
+
|
|
3701
|
+
stepRate: number
|
|
3702
|
+
|
|
3703
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3706
|
+
declare class MTLStencilDescriptor extends NSObject implements NSCopying {
|
|
3707
|
+
stencilCompareFunction: interop.Enum<typeof MTLCompareFunction>
|
|
3708
|
+
|
|
3709
|
+
stencilFailureOperation: interop.Enum<typeof MTLStencilOperation>
|
|
3710
|
+
|
|
3711
|
+
depthFailureOperation: interop.Enum<typeof MTLStencilOperation>
|
|
3712
|
+
|
|
3713
|
+
depthStencilPassOperation: interop.Enum<typeof MTLStencilOperation>
|
|
3714
|
+
|
|
3715
|
+
readMask: number
|
|
3716
|
+
|
|
3717
|
+
writeMask: number
|
|
3718
|
+
|
|
3719
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3720
|
+
}
|
|
3721
|
+
|
|
3722
|
+
declare class MTLComputePassSampleBufferAttachmentDescriptor extends NSObject implements NSCopying {
|
|
3723
|
+
sampleBuffer: MTLCounterSampleBuffer
|
|
3724
|
+
|
|
3725
|
+
startOfEncoderSampleIndex: number
|
|
3726
|
+
|
|
3727
|
+
endOfEncoderSampleIndex: number
|
|
3728
|
+
|
|
3729
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3730
|
+
}
|
|
3731
|
+
|
|
3732
|
+
declare class MTLCommandBufferDescriptor extends NSObject implements NSCopying {
|
|
3733
|
+
retainedReferences: boolean
|
|
3734
|
+
|
|
3735
|
+
errorOptions: interop.Enum<typeof MTLCommandBufferErrorOption>
|
|
3736
|
+
|
|
3737
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3738
|
+
}
|
|
3739
|
+
|
|
3740
|
+
declare class MTLRenderPassSampleBufferAttachmentDescriptorArray extends NSObject {
|
|
3741
|
+
objectAtIndexedSubscript(attachmentIndex: number): MTLRenderPassSampleBufferAttachmentDescriptor
|
|
3742
|
+
|
|
3743
|
+
setObjectAtIndexedSubscript(
|
|
3744
|
+
attachment: MTLRenderPassSampleBufferAttachmentDescriptor | null,
|
|
3745
|
+
attachmentIndex: number,
|
|
3746
|
+
): void
|
|
3747
|
+
}
|
|
3748
|
+
|
|
3749
|
+
declare class MTLResourceStatePassSampleBufferAttachmentDescriptorArray extends NSObject {
|
|
3750
|
+
objectAtIndexedSubscript(
|
|
3751
|
+
attachmentIndex: number,
|
|
3752
|
+
): MTLResourceStatePassSampleBufferAttachmentDescriptor
|
|
3753
|
+
|
|
3754
|
+
setObjectAtIndexedSubscript(
|
|
3755
|
+
attachment: MTLResourceStatePassSampleBufferAttachmentDescriptor | null,
|
|
3756
|
+
attachmentIndex: number,
|
|
3757
|
+
): void
|
|
3758
|
+
}
|
|
3759
|
+
|
|
3760
|
+
declare class MTLResourceStatePassSampleBufferAttachmentDescriptor
|
|
3761
|
+
extends NSObject
|
|
3762
|
+
implements NSCopying
|
|
3763
|
+
{
|
|
3764
|
+
sampleBuffer: MTLCounterSampleBuffer
|
|
3765
|
+
|
|
3766
|
+
startOfEncoderSampleIndex: number
|
|
3767
|
+
|
|
3768
|
+
endOfEncoderSampleIndex: number
|
|
3769
|
+
|
|
3770
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3771
|
+
}
|
|
3772
|
+
|
|
3773
|
+
declare class MTLArgumentDescriptor extends NSObject implements NSCopying {
|
|
3774
|
+
static argumentDescriptor(): MTLArgumentDescriptor
|
|
3775
|
+
|
|
3776
|
+
dataType: interop.Enum<typeof MTLDataType>
|
|
3777
|
+
|
|
3778
|
+
index: number
|
|
3779
|
+
|
|
3780
|
+
arrayLength: number
|
|
3781
|
+
|
|
3782
|
+
access: interop.Enum<typeof MTLBindingAccess>
|
|
3783
|
+
|
|
3784
|
+
textureType: interop.Enum<typeof MTLTextureType>
|
|
3785
|
+
|
|
3786
|
+
constantBlockAlignment: number
|
|
3787
|
+
|
|
3788
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3789
|
+
}
|
|
3790
|
+
|
|
3791
|
+
declare class MTLCompileOptions extends NSObject implements NSCopying {
|
|
3792
|
+
get preprocessorMacros(): NSDictionary
|
|
3793
|
+
set preprocessorMacros(
|
|
3794
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
3795
|
+
)
|
|
3796
|
+
|
|
3797
|
+
fastMathEnabled: boolean
|
|
3798
|
+
|
|
3799
|
+
languageVersion: interop.Enum<typeof MTLLanguageVersion>
|
|
3800
|
+
|
|
3801
|
+
libraryType: interop.Enum<typeof MTLLibraryType>
|
|
3802
|
+
|
|
3803
|
+
installName: string
|
|
3804
|
+
|
|
3805
|
+
get libraries(): NSArray
|
|
3806
|
+
set libraries(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
3807
|
+
|
|
3808
|
+
preserveInvariance: boolean
|
|
3809
|
+
|
|
3810
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3811
|
+
}
|
|
3812
|
+
|
|
3813
|
+
declare class MTLVertexAttribute extends NSObject {
|
|
3814
|
+
readonly name: string
|
|
3815
|
+
|
|
3816
|
+
readonly attributeIndex: number
|
|
3817
|
+
|
|
3818
|
+
readonly attributeType: interop.Enum<typeof MTLDataType>
|
|
3819
|
+
|
|
3820
|
+
readonly active: boolean
|
|
3821
|
+
|
|
3822
|
+
readonly patchData: boolean
|
|
3823
|
+
|
|
3824
|
+
readonly patchControlPointData: boolean
|
|
3825
|
+
|
|
3826
|
+
isActive(): boolean
|
|
3827
|
+
|
|
3828
|
+
isPatchData(): boolean
|
|
3829
|
+
|
|
3830
|
+
isPatchControlPointData(): boolean
|
|
3831
|
+
}
|
|
3832
|
+
|
|
3833
|
+
declare class MTLIntersectionFunctionDescriptor extends MTLFunctionDescriptor implements NSCopying {
|
|
3834
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3835
|
+
}
|
|
3836
|
+
|
|
3837
|
+
declare class MTLStructMember extends NSObject {
|
|
3838
|
+
readonly name: string
|
|
3839
|
+
|
|
3840
|
+
readonly offset: number
|
|
3841
|
+
|
|
3842
|
+
readonly dataType: interop.Enum<typeof MTLDataType>
|
|
3843
|
+
|
|
3844
|
+
structType(): MTLStructType
|
|
3845
|
+
|
|
3846
|
+
arrayType(): MTLArrayType
|
|
3847
|
+
|
|
3848
|
+
textureReferenceType(): MTLTextureReferenceType
|
|
3849
|
+
|
|
3850
|
+
pointerType(): MTLPointerType
|
|
3851
|
+
|
|
3852
|
+
readonly argumentIndex: number
|
|
3853
|
+
}
|
|
3854
|
+
|
|
3855
|
+
declare class MTLType extends NSObject {
|
|
3856
|
+
readonly dataType: interop.Enum<typeof MTLDataType>
|
|
3857
|
+
}
|
|
3858
|
+
|
|
3859
|
+
declare class MTLRenderPassColorAttachmentDescriptorArray extends NSObject {
|
|
3860
|
+
objectAtIndexedSubscript(attachmentIndex: number): MTLRenderPassColorAttachmentDescriptor
|
|
3861
|
+
|
|
3862
|
+
setObjectAtIndexedSubscript(
|
|
3863
|
+
attachment: MTLRenderPassColorAttachmentDescriptor | null,
|
|
3864
|
+
attachmentIndex: number,
|
|
3865
|
+
): void
|
|
3866
|
+
}
|
|
3867
|
+
|
|
3868
|
+
declare class MTLTextureDescriptor extends NSObject implements NSCopying {
|
|
3869
|
+
static texture2DDescriptorWithPixelFormatWidthHeightMipmapped(
|
|
3870
|
+
pixelFormat: interop.Enum<typeof MTLPixelFormat>,
|
|
3871
|
+
width: number,
|
|
3872
|
+
height: number,
|
|
3873
|
+
mipmapped: boolean,
|
|
3874
|
+
): MTLTextureDescriptor
|
|
3875
|
+
|
|
3876
|
+
static textureCubeDescriptorWithPixelFormatSizeMipmapped(
|
|
3877
|
+
pixelFormat: interop.Enum<typeof MTLPixelFormat>,
|
|
3878
|
+
size: number,
|
|
3879
|
+
mipmapped: boolean,
|
|
3880
|
+
): MTLTextureDescriptor
|
|
3881
|
+
|
|
3882
|
+
static textureBufferDescriptorWithPixelFormatWidthResourceOptionsUsage(
|
|
3883
|
+
pixelFormat: interop.Enum<typeof MTLPixelFormat>,
|
|
3884
|
+
width: number,
|
|
3885
|
+
resourceOptions: interop.Enum<typeof MTLResourceOptions>,
|
|
3886
|
+
usage: interop.Enum<typeof MTLTextureUsage>,
|
|
3887
|
+
): MTLTextureDescriptor
|
|
3888
|
+
|
|
3889
|
+
textureType: interop.Enum<typeof MTLTextureType>
|
|
3890
|
+
|
|
3891
|
+
pixelFormat: interop.Enum<typeof MTLPixelFormat>
|
|
3892
|
+
|
|
3893
|
+
width: number
|
|
3894
|
+
|
|
3895
|
+
height: number
|
|
3896
|
+
|
|
3897
|
+
depth: number
|
|
3898
|
+
|
|
3899
|
+
mipmapLevelCount: number
|
|
3900
|
+
|
|
3901
|
+
sampleCount: number
|
|
3902
|
+
|
|
3903
|
+
arrayLength: number
|
|
3904
|
+
|
|
3905
|
+
resourceOptions: interop.Enum<typeof MTLResourceOptions>
|
|
3906
|
+
|
|
3907
|
+
cpuCacheMode: interop.Enum<typeof MTLCPUCacheMode>
|
|
3908
|
+
|
|
3909
|
+
storageMode: interop.Enum<typeof MTLStorageMode>
|
|
3910
|
+
|
|
3911
|
+
hazardTrackingMode: interop.Enum<typeof MTLHazardTrackingMode>
|
|
3912
|
+
|
|
3913
|
+
usage: interop.Enum<typeof MTLTextureUsage>
|
|
3914
|
+
|
|
3915
|
+
allowGPUOptimizedContents: boolean
|
|
3916
|
+
|
|
3917
|
+
swizzle: MTLTextureSwizzleChannels
|
|
3918
|
+
|
|
3919
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3920
|
+
}
|
|
3921
|
+
|
|
3922
|
+
declare class MTLTextureReferenceType extends MTLType {
|
|
3923
|
+
readonly textureDataType: interop.Enum<typeof MTLDataType>
|
|
3924
|
+
|
|
3925
|
+
readonly textureType: interop.Enum<typeof MTLTextureType>
|
|
3926
|
+
|
|
3927
|
+
readonly access: interop.Enum<typeof MTLBindingAccess>
|
|
3928
|
+
|
|
3929
|
+
readonly isDepthTexture: boolean
|
|
3930
|
+
}
|
|
3931
|
+
|
|
3932
|
+
declare class MTLRenderPassDepthAttachmentDescriptor extends MTLRenderPassAttachmentDescriptor {
|
|
3933
|
+
clearDepth: number
|
|
3934
|
+
|
|
3935
|
+
depthResolveFilter: interop.Enum<typeof MTLMultisampleDepthResolveFilter>
|
|
3936
|
+
}
|
|
3937
|
+
|
|
3938
|
+
declare class MTLStructType extends MTLType {
|
|
3939
|
+
readonly members: NSArray
|
|
3940
|
+
|
|
3941
|
+
memberByName(name: string): MTLStructMember
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3944
|
+
declare class MTLPipelineBufferDescriptor extends NSObject implements NSCopying {
|
|
3945
|
+
mutability: interop.Enum<typeof MTLMutability>
|
|
3946
|
+
|
|
3947
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
3948
|
+
}
|
|
3949
|
+
|
|
3950
|
+
declare class MTLRenderPipelineDescriptor extends NSObject implements NSCopying {
|
|
3951
|
+
label: string
|
|
3952
|
+
|
|
3953
|
+
vertexFunction: MTLFunction
|
|
3954
|
+
|
|
3955
|
+
fragmentFunction: MTLFunction
|
|
3956
|
+
|
|
3957
|
+
vertexDescriptor: MTLVertexDescriptor
|
|
3958
|
+
|
|
3959
|
+
sampleCount: number
|
|
3960
|
+
|
|
3961
|
+
rasterSampleCount: number
|
|
3962
|
+
|
|
3963
|
+
alphaToCoverageEnabled: boolean
|
|
3964
|
+
|
|
3965
|
+
alphaToOneEnabled: boolean
|
|
3966
|
+
|
|
3967
|
+
rasterizationEnabled: boolean
|
|
3968
|
+
|
|
3969
|
+
maxVertexAmplificationCount: number
|
|
3970
|
+
|
|
3971
|
+
readonly colorAttachments: MTLRenderPipelineColorAttachmentDescriptorArray
|
|
3972
|
+
|
|
3973
|
+
depthAttachmentPixelFormat: interop.Enum<typeof MTLPixelFormat>
|
|
3974
|
+
|
|
3975
|
+
stencilAttachmentPixelFormat: interop.Enum<typeof MTLPixelFormat>
|
|
3976
|
+
|
|
3977
|
+
inputPrimitiveTopology: interop.Enum<typeof MTLPrimitiveTopologyClass>
|
|
3978
|
+
|
|
3979
|
+
tessellationPartitionMode: interop.Enum<typeof MTLTessellationPartitionMode>
|
|
3980
|
+
|
|
3981
|
+
maxTessellationFactor: number
|
|
3982
|
+
|
|
3983
|
+
tessellationFactorScaleEnabled: boolean
|
|
3984
|
+
|
|
3985
|
+
tessellationFactorFormat: interop.Enum<typeof MTLTessellationFactorFormat>
|
|
3986
|
+
|
|
3987
|
+
tessellationControlPointIndexType: interop.Enum<typeof MTLTessellationControlPointIndexType>
|
|
3988
|
+
|
|
3989
|
+
tessellationFactorStepFunction: interop.Enum<typeof MTLTessellationFactorStepFunction>
|
|
3990
|
+
|
|
3991
|
+
tessellationOutputWindingOrder: interop.Enum<typeof MTLWinding>
|
|
3992
|
+
|
|
3993
|
+
readonly vertexBuffers: MTLPipelineBufferDescriptorArray
|
|
3994
|
+
|
|
3995
|
+
readonly fragmentBuffers: MTLPipelineBufferDescriptorArray
|
|
3996
|
+
|
|
3997
|
+
supportIndirectCommandBuffers: boolean
|
|
3998
|
+
|
|
3999
|
+
get binaryArchives(): NSArray
|
|
4000
|
+
set binaryArchives(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
4001
|
+
|
|
4002
|
+
reset(): void
|
|
4003
|
+
|
|
4004
|
+
isAlphaToCoverageEnabled(): boolean
|
|
4005
|
+
|
|
4006
|
+
isAlphaToOneEnabled(): boolean
|
|
4007
|
+
|
|
4008
|
+
isRasterizationEnabled(): boolean
|
|
4009
|
+
|
|
4010
|
+
isTessellationFactorScaleEnabled(): boolean
|
|
4011
|
+
|
|
4012
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4013
|
+
}
|
|
4014
|
+
|
|
4015
|
+
declare class MTLPointerType extends MTLType {
|
|
4016
|
+
readonly elementType: interop.Enum<typeof MTLDataType>
|
|
4017
|
+
|
|
4018
|
+
readonly access: interop.Enum<typeof MTLBindingAccess>
|
|
4019
|
+
|
|
4020
|
+
readonly alignment: number
|
|
4021
|
+
|
|
4022
|
+
readonly dataSize: number
|
|
4023
|
+
|
|
4024
|
+
readonly elementIsArgumentBuffer: boolean
|
|
4025
|
+
|
|
4026
|
+
elementStructType(): MTLStructType
|
|
4027
|
+
|
|
4028
|
+
elementArrayType(): MTLArrayType
|
|
4029
|
+
}
|
|
4030
|
+
|
|
4031
|
+
declare class MTLRenderPipelineColorAttachmentDescriptor extends NSObject implements NSCopying {
|
|
4032
|
+
pixelFormat: interop.Enum<typeof MTLPixelFormat>
|
|
4033
|
+
|
|
4034
|
+
blendingEnabled: boolean
|
|
4035
|
+
|
|
4036
|
+
sourceRGBBlendFactor: interop.Enum<typeof MTLBlendFactor>
|
|
4037
|
+
|
|
4038
|
+
destinationRGBBlendFactor: interop.Enum<typeof MTLBlendFactor>
|
|
4039
|
+
|
|
4040
|
+
rgbBlendOperation: interop.Enum<typeof MTLBlendOperation>
|
|
4041
|
+
|
|
4042
|
+
sourceAlphaBlendFactor: interop.Enum<typeof MTLBlendFactor>
|
|
4043
|
+
|
|
4044
|
+
destinationAlphaBlendFactor: interop.Enum<typeof MTLBlendFactor>
|
|
4045
|
+
|
|
4046
|
+
alphaBlendOperation: interop.Enum<typeof MTLBlendOperation>
|
|
4047
|
+
|
|
4048
|
+
writeMask: interop.Enum<typeof MTLColorWriteMask>
|
|
4049
|
+
|
|
4050
|
+
isBlendingEnabled(): boolean
|
|
4051
|
+
|
|
4052
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4053
|
+
}
|
|
4054
|
+
|
|
4055
|
+
declare class MTLArrayType extends MTLType {
|
|
4056
|
+
readonly elementType: interop.Enum<typeof MTLDataType>
|
|
4057
|
+
|
|
4058
|
+
readonly arrayLength: number
|
|
4059
|
+
|
|
4060
|
+
readonly stride: number
|
|
4061
|
+
|
|
4062
|
+
readonly argumentIndexStride: number
|
|
4063
|
+
|
|
4064
|
+
elementStructType(): MTLStructType
|
|
4065
|
+
|
|
4066
|
+
elementArrayType(): MTLArrayType
|
|
4067
|
+
|
|
4068
|
+
elementTextureReferenceType(): MTLTextureReferenceType
|
|
4069
|
+
|
|
4070
|
+
elementPointerType(): MTLPointerType
|
|
4071
|
+
}
|
|
4072
|
+
|
|
4073
|
+
declare class MTLRenderPassSampleBufferAttachmentDescriptor extends NSObject implements NSCopying {
|
|
4074
|
+
sampleBuffer: MTLCounterSampleBuffer
|
|
4075
|
+
|
|
4076
|
+
startOfVertexSampleIndex: number
|
|
4077
|
+
|
|
4078
|
+
endOfVertexSampleIndex: number
|
|
4079
|
+
|
|
4080
|
+
startOfFragmentSampleIndex: number
|
|
4081
|
+
|
|
4082
|
+
endOfFragmentSampleIndex: number
|
|
4083
|
+
|
|
4084
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4085
|
+
}
|
|
4086
|
+
|
|
4087
|
+
declare class MTLInstanceAccelerationStructureDescriptor extends MTLAccelerationStructureDescriptor {
|
|
4088
|
+
instanceDescriptorBuffer: MTLBuffer
|
|
4089
|
+
|
|
4090
|
+
instanceDescriptorBufferOffset: number
|
|
4091
|
+
|
|
4092
|
+
instanceDescriptorStride: number
|
|
4093
|
+
|
|
4094
|
+
instanceCount: number
|
|
4095
|
+
|
|
4096
|
+
get instancedAccelerationStructures(): NSArray
|
|
4097
|
+
set instancedAccelerationStructures(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
4098
|
+
|
|
4099
|
+
static descriptor<This extends abstract new (...args: any) => any>(this: This): InstanceType<This>
|
|
4100
|
+
}
|
|
4101
|
+
|
|
4102
|
+
declare class MTLTileRenderPipelineDescriptor extends NSObject implements NSCopying {
|
|
4103
|
+
label: string
|
|
4104
|
+
|
|
4105
|
+
tileFunction: MTLFunction
|
|
4106
|
+
|
|
4107
|
+
rasterSampleCount: number
|
|
4108
|
+
|
|
4109
|
+
readonly colorAttachments: MTLTileRenderPipelineColorAttachmentDescriptorArray
|
|
4110
|
+
|
|
4111
|
+
threadgroupSizeMatchesTileSize: boolean
|
|
4112
|
+
|
|
4113
|
+
readonly tileBuffers: MTLPipelineBufferDescriptorArray
|
|
4114
|
+
|
|
4115
|
+
maxTotalThreadsPerThreadgroup: number
|
|
4116
|
+
|
|
4117
|
+
get binaryArchives(): NSArray
|
|
4118
|
+
set binaryArchives(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
4119
|
+
|
|
4120
|
+
reset(): void
|
|
4121
|
+
|
|
4122
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4123
|
+
}
|
|
4124
|
+
|
|
4125
|
+
declare class MTLComputePipelineReflection extends NSObject {
|
|
4126
|
+
readonly arguments$: NSArray
|
|
4127
|
+
|
|
4128
|
+
arguments(): NSArray
|
|
4129
|
+
}
|
|
4130
|
+
|
|
4131
|
+
declare class MTLAccelerationStructureTriangleGeometryDescriptor extends MTLAccelerationStructureGeometryDescriptor {
|
|
4132
|
+
vertexBuffer: MTLBuffer
|
|
4133
|
+
|
|
4134
|
+
vertexBufferOffset: number
|
|
4135
|
+
|
|
4136
|
+
vertexStride: number
|
|
4137
|
+
|
|
4138
|
+
indexBuffer: MTLBuffer
|
|
4139
|
+
|
|
4140
|
+
indexBufferOffset: number
|
|
4141
|
+
|
|
4142
|
+
indexType: interop.Enum<typeof MTLIndexType>
|
|
4143
|
+
|
|
4144
|
+
triangleCount: number
|
|
4145
|
+
|
|
4146
|
+
static descriptor<This extends abstract new (...args: any) => any>(this: This): InstanceType<This>
|
|
4147
|
+
}
|
|
4148
|
+
|
|
4149
|
+
declare class MTLRenderPassDescriptor extends NSObject implements NSCopying {
|
|
4150
|
+
static renderPassDescriptor(): MTLRenderPassDescriptor
|
|
4151
|
+
|
|
4152
|
+
readonly colorAttachments: MTLRenderPassColorAttachmentDescriptorArray
|
|
4153
|
+
|
|
4154
|
+
depthAttachment: MTLRenderPassDepthAttachmentDescriptor
|
|
4155
|
+
|
|
4156
|
+
stencilAttachment: MTLRenderPassStencilAttachmentDescriptor
|
|
4157
|
+
|
|
4158
|
+
visibilityResultBuffer: MTLBuffer
|
|
4159
|
+
|
|
4160
|
+
renderTargetArrayLength: number
|
|
4161
|
+
|
|
4162
|
+
imageblockSampleLength: number
|
|
4163
|
+
|
|
4164
|
+
threadgroupMemoryLength: number
|
|
4165
|
+
|
|
4166
|
+
tileWidth: number
|
|
4167
|
+
|
|
4168
|
+
tileHeight: number
|
|
4169
|
+
|
|
4170
|
+
defaultRasterSampleCount: number
|
|
4171
|
+
|
|
4172
|
+
renderTargetWidth: number
|
|
4173
|
+
|
|
4174
|
+
renderTargetHeight: number
|
|
4175
|
+
|
|
4176
|
+
setSamplePositionsCount(positions: interop.PointerConvertible, count: number): void
|
|
4177
|
+
|
|
4178
|
+
getSamplePositionsCount(positions: interop.PointerConvertible, count: number): number
|
|
4179
|
+
|
|
4180
|
+
rasterizationRateMap: MTLRasterizationRateMap
|
|
4181
|
+
|
|
4182
|
+
readonly sampleBufferAttachments: MTLRenderPassSampleBufferAttachmentDescriptorArray
|
|
4183
|
+
|
|
4184
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4185
|
+
}
|
|
4186
|
+
|
|
4187
|
+
declare class MTLSharedEventHandle extends NSObject implements NSSecureCoding {
|
|
4188
|
+
readonly label: string
|
|
4189
|
+
|
|
4190
|
+
static readonly supportsSecureCoding: boolean
|
|
4191
|
+
|
|
4192
|
+
encodeWithCoder(coder: NSCoder): void
|
|
4193
|
+
|
|
4194
|
+
initWithCoder(coder: NSCoder): this
|
|
4195
|
+
}
|
|
4196
|
+
|
|
4197
|
+
declare class MTLRenderPassStencilAttachmentDescriptor extends MTLRenderPassAttachmentDescriptor {
|
|
4198
|
+
clearStencil: number
|
|
4199
|
+
|
|
4200
|
+
stencilResolveFilter: interop.Enum<typeof MTLMultisampleStencilResolveFilter>
|
|
4201
|
+
}
|
|
4202
|
+
|
|
4203
|
+
declare class MTLComputePassSampleBufferAttachmentDescriptorArray extends NSObject {
|
|
4204
|
+
objectAtIndexedSubscript(attachmentIndex: number): MTLComputePassSampleBufferAttachmentDescriptor
|
|
4205
|
+
|
|
4206
|
+
setObjectAtIndexedSubscript(
|
|
4207
|
+
attachment: MTLComputePassSampleBufferAttachmentDescriptor | null,
|
|
4208
|
+
attachmentIndex: number,
|
|
4209
|
+
): void
|
|
4210
|
+
}
|
|
4211
|
+
|
|
4212
|
+
declare class MTLBlitPassDescriptor extends NSObject implements NSCopying {
|
|
4213
|
+
static blitPassDescriptor(): MTLBlitPassDescriptor
|
|
4214
|
+
|
|
4215
|
+
readonly sampleBufferAttachments: MTLBlitPassSampleBufferAttachmentDescriptorArray
|
|
4216
|
+
|
|
4217
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4218
|
+
}
|
|
4219
|
+
|
|
4220
|
+
declare class MTLRenderPassColorAttachmentDescriptor extends MTLRenderPassAttachmentDescriptor {
|
|
4221
|
+
clearColor: MTLClearColor
|
|
4222
|
+
}
|
|
4223
|
+
|
|
4224
|
+
declare class MTLResourceStatePassDescriptor extends NSObject implements NSCopying {
|
|
4225
|
+
static resourceStatePassDescriptor(): MTLResourceStatePassDescriptor
|
|
4226
|
+
|
|
4227
|
+
readonly sampleBufferAttachments: MTLResourceStatePassSampleBufferAttachmentDescriptorArray
|
|
4228
|
+
|
|
4229
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4230
|
+
}
|
|
4231
|
+
|
|
4232
|
+
declare class MTLVertexBufferLayoutDescriptorArray extends NSObject {
|
|
4233
|
+
objectAtIndexedSubscript(index: number): MTLVertexBufferLayoutDescriptor
|
|
4234
|
+
|
|
4235
|
+
setObjectAtIndexedSubscript(
|
|
4236
|
+
bufferDesc: MTLVertexBufferLayoutDescriptor | null,
|
|
4237
|
+
index: number,
|
|
4238
|
+
): void
|
|
4239
|
+
}
|
|
4240
|
+
|
|
4241
|
+
declare class MTLSamplerDescriptor extends NSObject implements NSCopying {
|
|
4242
|
+
minFilter: interop.Enum<typeof MTLSamplerMinMagFilter>
|
|
4243
|
+
|
|
4244
|
+
magFilter: interop.Enum<typeof MTLSamplerMinMagFilter>
|
|
4245
|
+
|
|
4246
|
+
mipFilter: interop.Enum<typeof MTLSamplerMipFilter>
|
|
4247
|
+
|
|
4248
|
+
maxAnisotropy: number
|
|
4249
|
+
|
|
4250
|
+
sAddressMode: interop.Enum<typeof MTLSamplerAddressMode>
|
|
4251
|
+
|
|
4252
|
+
tAddressMode: interop.Enum<typeof MTLSamplerAddressMode>
|
|
4253
|
+
|
|
4254
|
+
rAddressMode: interop.Enum<typeof MTLSamplerAddressMode>
|
|
4255
|
+
|
|
4256
|
+
borderColor: interop.Enum<typeof MTLSamplerBorderColor>
|
|
4257
|
+
|
|
4258
|
+
normalizedCoordinates: boolean
|
|
4259
|
+
|
|
4260
|
+
lodMinClamp: number
|
|
4261
|
+
|
|
4262
|
+
lodMaxClamp: number
|
|
4263
|
+
|
|
4264
|
+
lodAverage: boolean
|
|
4265
|
+
|
|
4266
|
+
compareFunction: interop.Enum<typeof MTLCompareFunction>
|
|
4267
|
+
|
|
4268
|
+
supportArgumentBuffers: boolean
|
|
4269
|
+
|
|
4270
|
+
label: string
|
|
4271
|
+
|
|
4272
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4273
|
+
}
|
|
4274
|
+
|
|
4275
|
+
declare class MTLArgument extends NSObject {
|
|
4276
|
+
readonly name: string
|
|
4277
|
+
|
|
4278
|
+
readonly type: interop.Enum<typeof MTLArgumentType>
|
|
4279
|
+
|
|
4280
|
+
readonly access: interop.Enum<typeof MTLBindingAccess>
|
|
4281
|
+
|
|
4282
|
+
readonly index: number
|
|
4283
|
+
|
|
4284
|
+
readonly active: boolean
|
|
4285
|
+
|
|
4286
|
+
readonly bufferAlignment: number
|
|
4287
|
+
|
|
4288
|
+
readonly bufferDataSize: number
|
|
4289
|
+
|
|
4290
|
+
readonly bufferDataType: interop.Enum<typeof MTLDataType>
|
|
4291
|
+
|
|
4292
|
+
readonly bufferStructType: MTLStructType
|
|
4293
|
+
|
|
4294
|
+
readonly bufferPointerType: MTLPointerType
|
|
4295
|
+
|
|
4296
|
+
readonly threadgroupMemoryAlignment: number
|
|
4297
|
+
|
|
4298
|
+
readonly threadgroupMemoryDataSize: number
|
|
4299
|
+
|
|
4300
|
+
readonly textureType: interop.Enum<typeof MTLTextureType>
|
|
4301
|
+
|
|
4302
|
+
readonly textureDataType: interop.Enum<typeof MTLDataType>
|
|
4303
|
+
|
|
4304
|
+
readonly isDepthTexture: boolean
|
|
4305
|
+
|
|
4306
|
+
readonly arrayLength: number
|
|
4307
|
+
|
|
4308
|
+
isActive(): boolean
|
|
4309
|
+
}
|
|
4310
|
+
|
|
4311
|
+
declare class MTLDepthStencilDescriptor extends NSObject implements NSCopying {
|
|
4312
|
+
depthCompareFunction: interop.Enum<typeof MTLCompareFunction>
|
|
4313
|
+
|
|
4314
|
+
depthWriteEnabled: boolean
|
|
4315
|
+
|
|
4316
|
+
frontFaceStencil: MTLStencilDescriptor
|
|
4317
|
+
|
|
4318
|
+
backFaceStencil: MTLStencilDescriptor
|
|
4319
|
+
|
|
4320
|
+
label: string
|
|
4321
|
+
|
|
4322
|
+
isDepthWriteEnabled(): boolean
|
|
4323
|
+
|
|
4324
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4325
|
+
}
|
|
4326
|
+
|
|
4327
|
+
declare class MTLLinkedFunctions extends NSObject implements NSCopying {
|
|
4328
|
+
static linkedFunctions(): MTLLinkedFunctions
|
|
4329
|
+
|
|
4330
|
+
get functions(): NSArray
|
|
4331
|
+
set functions(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
4332
|
+
|
|
4333
|
+
get binaryFunctions(): NSArray
|
|
4334
|
+
set binaryFunctions(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
4335
|
+
|
|
4336
|
+
get groups(): NSDictionary
|
|
4337
|
+
set groups(
|
|
4338
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
4339
|
+
)
|
|
4340
|
+
|
|
4341
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
declare class MTLAttribute extends NSObject {
|
|
4345
|
+
readonly name: string
|
|
4346
|
+
|
|
4347
|
+
readonly attributeIndex: number
|
|
4348
|
+
|
|
4349
|
+
readonly attributeType: interop.Enum<typeof MTLDataType>
|
|
4350
|
+
|
|
4351
|
+
readonly active: boolean
|
|
4352
|
+
|
|
4353
|
+
readonly patchData: boolean
|
|
4354
|
+
|
|
4355
|
+
readonly patchControlPointData: boolean
|
|
4356
|
+
|
|
4357
|
+
isActive(): boolean
|
|
4358
|
+
|
|
4359
|
+
isPatchData(): boolean
|
|
4360
|
+
|
|
4361
|
+
isPatchControlPointData(): boolean
|
|
4362
|
+
}
|
|
4363
|
+
|
|
4364
|
+
declare class MTLAccelerationStructureGeometryDescriptor extends NSObject implements NSCopying {
|
|
4365
|
+
intersectionFunctionTableOffset: number
|
|
4366
|
+
|
|
4367
|
+
opaque: boolean
|
|
4368
|
+
|
|
4369
|
+
allowDuplicateIntersectionFunctionInvocation: boolean
|
|
4370
|
+
|
|
4371
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4372
|
+
}
|
|
4373
|
+
|
|
4374
|
+
declare class MTLBlitPassSampleBufferAttachmentDescriptor extends NSObject implements NSCopying {
|
|
4375
|
+
sampleBuffer: MTLCounterSampleBuffer
|
|
4376
|
+
|
|
4377
|
+
startOfEncoderSampleIndex: number
|
|
4378
|
+
|
|
4379
|
+
endOfEncoderSampleIndex: number
|
|
4380
|
+
|
|
4381
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4382
|
+
}
|
|
4383
|
+
|
|
4384
|
+
declare class MTLVertexAttributeDescriptorArray extends NSObject {
|
|
4385
|
+
objectAtIndexedSubscript(index: number): MTLVertexAttributeDescriptor
|
|
4386
|
+
|
|
4387
|
+
setObjectAtIndexedSubscript(
|
|
4388
|
+
attributeDesc: MTLVertexAttributeDescriptor | null,
|
|
4389
|
+
index: number,
|
|
4390
|
+
): void
|
|
4391
|
+
}
|
|
4392
|
+
|
|
4393
|
+
declare class MTLFunctionConstant extends NSObject {
|
|
4394
|
+
readonly name: string
|
|
4395
|
+
|
|
4396
|
+
readonly type: interop.Enum<typeof MTLDataType>
|
|
4397
|
+
|
|
4398
|
+
readonly index: number
|
|
4399
|
+
|
|
4400
|
+
readonly required: boolean
|
|
4401
|
+
}
|
|
4402
|
+
|
|
4403
|
+
declare class MTLFunctionConstantValues extends NSObject implements NSCopying {
|
|
4404
|
+
setConstantValueTypeAtIndex(
|
|
4405
|
+
value: interop.PointerConvertible,
|
|
4406
|
+
type: interop.Enum<typeof MTLDataType>,
|
|
4407
|
+
index: number,
|
|
4408
|
+
): void
|
|
4409
|
+
|
|
4410
|
+
setConstantValuesTypeWithRange(
|
|
4411
|
+
values: interop.PointerConvertible,
|
|
4412
|
+
type: interop.Enum<typeof MTLDataType>,
|
|
4413
|
+
range: _NSRange,
|
|
4414
|
+
): void
|
|
4415
|
+
|
|
4416
|
+
setConstantValueTypeWithName(
|
|
4417
|
+
value: interop.PointerConvertible,
|
|
4418
|
+
type: interop.Enum<typeof MTLDataType>,
|
|
4419
|
+
name: string,
|
|
4420
|
+
): void
|
|
4421
|
+
|
|
4422
|
+
reset(): void
|
|
4423
|
+
|
|
4424
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4425
|
+
}
|
|
4426
|
+
|
|
4427
|
+
declare class MTLTileRenderPipelineColorAttachmentDescriptor extends NSObject implements NSCopying {
|
|
4428
|
+
pixelFormat: interop.Enum<typeof MTLPixelFormat>
|
|
4429
|
+
|
|
4430
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4431
|
+
}
|
|
4432
|
+
|
|
4433
|
+
declare class MTLAccelerationStructureDescriptor extends NSObject implements NSCopying {
|
|
4434
|
+
usage: interop.Enum<typeof MTLAccelerationStructureUsage>
|
|
4435
|
+
|
|
4436
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4437
|
+
}
|
|
4438
|
+
|
|
4439
|
+
declare class MTLCaptureManager extends NSObject {
|
|
4440
|
+
static sharedCaptureManager(): MTLCaptureManager
|
|
4441
|
+
|
|
4442
|
+
newCaptureScopeWithDevice(device: MTLDevice): MTLCaptureScope
|
|
4443
|
+
|
|
4444
|
+
newCaptureScopeWithCommandQueue(commandQueue: MTLCommandQueue): MTLCaptureScope
|
|
4445
|
+
|
|
4446
|
+
newCaptureScopeWithMTL4CommandQueue(commandQueue: MTL4CommandQueue): MTLCaptureScope
|
|
4447
|
+
|
|
4448
|
+
supportsDestination(destination: interop.Enum<typeof MTLCaptureDestination>): boolean
|
|
4449
|
+
|
|
4450
|
+
startCaptureWithDescriptorError(
|
|
4451
|
+
descriptor: MTLCaptureDescriptor,
|
|
4452
|
+
error: interop.PointerConvertible,
|
|
4453
|
+
): boolean
|
|
4454
|
+
|
|
4455
|
+
startCaptureWithDevice(device: MTLDevice): void
|
|
4456
|
+
|
|
4457
|
+
startCaptureWithCommandQueue(commandQueue: MTLCommandQueue): void
|
|
4458
|
+
|
|
4459
|
+
startCaptureWithScope(captureScope: MTLCaptureScope): void
|
|
4460
|
+
|
|
4461
|
+
stopCapture(): void
|
|
4462
|
+
|
|
4463
|
+
defaultCaptureScope: MTLCaptureScope
|
|
4464
|
+
|
|
4465
|
+
readonly isCapturing: boolean
|
|
4466
|
+
}
|
|
4467
|
+
|
|
4468
|
+
declare class MTLRasterizationRateLayerArray extends NSObject {
|
|
4469
|
+
objectAtIndexedSubscript(layerIndex: number): MTLRasterizationRateLayerDescriptor | null
|
|
4470
|
+
|
|
4471
|
+
setObjectAtIndexedSubscript(
|
|
4472
|
+
layer: MTLRasterizationRateLayerDescriptor | null,
|
|
4473
|
+
layerIndex: number,
|
|
4474
|
+
): void
|
|
4475
|
+
}
|
|
4476
|
+
|
|
4477
|
+
declare class MTLRasterizationRateLayerDescriptor extends NSObject implements NSCopying {
|
|
4478
|
+
initWithSampleCount(sampleCount: MTLSize): this
|
|
4479
|
+
|
|
4480
|
+
initWithSampleCountHorizontalVertical(
|
|
4481
|
+
sampleCount: MTLSize,
|
|
4482
|
+
horizontal: interop.PointerConvertible,
|
|
4483
|
+
vertical: interop.PointerConvertible,
|
|
4484
|
+
): this
|
|
4485
|
+
|
|
4486
|
+
readonly sampleCount: MTLSize
|
|
4487
|
+
|
|
4488
|
+
readonly horizontalSampleStorage: interop.Pointer
|
|
4489
|
+
|
|
4490
|
+
readonly verticalSampleStorage: interop.Pointer
|
|
4491
|
+
|
|
4492
|
+
readonly horizontal: MTLRasterizationRateSampleArray
|
|
4493
|
+
|
|
4494
|
+
readonly vertical: MTLRasterizationRateSampleArray
|
|
4495
|
+
|
|
4496
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4497
|
+
}
|
|
4498
|
+
|
|
4499
|
+
declare class MTLFunctionDescriptor extends NSObject implements NSCopying {
|
|
4500
|
+
static functionDescriptor(): MTLFunctionDescriptor
|
|
4501
|
+
|
|
4502
|
+
name: string
|
|
4503
|
+
|
|
4504
|
+
specializedName: string
|
|
4505
|
+
|
|
4506
|
+
constantValues: MTLFunctionConstantValues
|
|
4507
|
+
|
|
4508
|
+
options: interop.Enum<typeof MTLFunctionOptions>
|
|
4509
|
+
|
|
4510
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4511
|
+
}
|
|
4512
|
+
|
|
4513
|
+
declare class MTLAccelerationStructureBoundingBoxGeometryDescriptor extends MTLAccelerationStructureGeometryDescriptor {
|
|
4514
|
+
boundingBoxBuffer: MTLBuffer
|
|
4515
|
+
|
|
4516
|
+
boundingBoxBufferOffset: number
|
|
4517
|
+
|
|
4518
|
+
boundingBoxStride: number
|
|
4519
|
+
|
|
4520
|
+
boundingBoxCount: number
|
|
4521
|
+
|
|
4522
|
+
static descriptor<This extends abstract new (...args: any) => any>(this: This): InstanceType<This>
|
|
4523
|
+
}
|
|
4524
|
+
|
|
4525
|
+
declare class MTLCaptureDescriptor extends NSObject implements NSCopying {
|
|
4526
|
+
captureObject: interop.Object
|
|
4527
|
+
|
|
4528
|
+
destination: interop.Enum<typeof MTLCaptureDestination>
|
|
4529
|
+
|
|
4530
|
+
outputURL: NSURL
|
|
4531
|
+
|
|
4532
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
4533
|
+
}
|
|
4534
|
+
|
|
4535
|
+
declare class MTLRenderPipelineColorAttachmentDescriptorArray extends NSObject {
|
|
4536
|
+
objectAtIndexedSubscript(attachmentIndex: number): MTLRenderPipelineColorAttachmentDescriptor
|
|
4537
|
+
|
|
4538
|
+
setObjectAtIndexedSubscript(
|
|
4539
|
+
attachment: MTLRenderPipelineColorAttachmentDescriptor | null,
|
|
4540
|
+
attachmentIndex: number,
|
|
4541
|
+
): void
|
|
4542
|
+
}
|