locum 0.1.4

Captures everything a Direct3D 11 game draws in a frame, to look at, query, change and replay: d3d11.dll and dxgi.dll beside the game that watch every call on its way to the real runtime.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
//! Generated D3D12 interface dispatch.
use core::ffi::c_void;
use windows::Win32::Graphics::Direct3D12::*;
use windows::core::{GUID, Interface};
pub fn table(iid: &GUID) -> Option<(*const c_void, &'static str)> {
    static D12_DEBUG_BASE: ID3D12Debug6_Vtbl = super::d12_debug_base::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12Debug::IID {
        return Some((&D12_DEBUG_BASE as *const _ as *const c_void, "ID3D12Debug"));
    }
    if *iid == ID3D12Debug3::IID {
        return Some((&D12_DEBUG_BASE as *const _ as *const c_void, "ID3D12Debug3"));
    }
    if *iid == ID3D12Debug4::IID {
        return Some((&D12_DEBUG_BASE as *const _ as *const c_void, "ID3D12Debug4"));
    }
    if *iid == ID3D12Debug5::IID {
        return Some((&D12_DEBUG_BASE as *const _ as *const c_void, "ID3D12Debug5"));
    }
    if *iid == ID3D12Debug6::IID {
        return Some((&D12_DEBUG_BASE as *const _ as *const c_void, "ID3D12Debug6"));
    }
    static D12_DEVICE: ID3D12Device14_Vtbl = super::d12_device::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12Object::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Object"));
    }
    if *iid == ID3D12Device::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Device"));
    }
    if *iid == ID3D12Device1::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Device1"));
    }
    if *iid == ID3D12Device2::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Device2"));
    }
    if *iid == ID3D12Device3::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Device3"));
    }
    if *iid == ID3D12Device4::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Device4"));
    }
    if *iid == ID3D12Device5::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Device5"));
    }
    if *iid == ID3D12Device6::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Device6"));
    }
    if *iid == ID3D12Device7::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Device7"));
    }
    if *iid == ID3D12Device8::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Device8"));
    }
    if *iid == ID3D12Device9::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Device9"));
    }
    if *iid == ID3D12Device10::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Device10"));
    }
    if *iid == ID3D12Device11::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Device11"));
    }
    if *iid == ID3D12Device12::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Device12"));
    }
    if *iid == ID3D12Device13::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Device13"));
    }
    if *iid == ID3D12Device14::IID {
        return Some((&D12_DEVICE as *const _ as *const c_void, "ID3D12Device14"));
    }
    static D12_QUEUE: ID3D12CommandQueue_Vtbl = super::d12_queue::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12DeviceChild::IID {
        return Some((&D12_QUEUE as *const _ as *const c_void, "ID3D12DeviceChild"));
    }
    if *iid == ID3D12Pageable::IID {
        return Some((&D12_QUEUE as *const _ as *const c_void, "ID3D12Pageable"));
    }
    if *iid == ID3D12CommandQueue::IID {
        return Some((&D12_QUEUE as *const _ as *const c_void, "ID3D12CommandQueue"));
    }
    static D12_LIST: ID3D12GraphicsCommandList10_Vtbl = super::d12_list::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12CommandList::IID {
        return Some((&D12_LIST as *const _ as *const c_void, "ID3D12CommandList"));
    }
    if *iid == ID3D12GraphicsCommandList::IID {
        return Some((
            &D12_LIST as *const _ as *const c_void,
            "ID3D12GraphicsCommandList",
        ));
    }
    if *iid == ID3D12GraphicsCommandList1::IID {
        return Some((
            &D12_LIST as *const _ as *const c_void,
            "ID3D12GraphicsCommandList1",
        ));
    }
    if *iid == ID3D12GraphicsCommandList2::IID {
        return Some((
            &D12_LIST as *const _ as *const c_void,
            "ID3D12GraphicsCommandList2",
        ));
    }
    if *iid == ID3D12GraphicsCommandList3::IID {
        return Some((
            &D12_LIST as *const _ as *const c_void,
            "ID3D12GraphicsCommandList3",
        ));
    }
    if *iid == ID3D12GraphicsCommandList4::IID {
        return Some((
            &D12_LIST as *const _ as *const c_void,
            "ID3D12GraphicsCommandList4",
        ));
    }
    if *iid == ID3D12GraphicsCommandList5::IID {
        return Some((
            &D12_LIST as *const _ as *const c_void,
            "ID3D12GraphicsCommandList5",
        ));
    }
    if *iid == ID3D12GraphicsCommandList6::IID {
        return Some((
            &D12_LIST as *const _ as *const c_void,
            "ID3D12GraphicsCommandList6",
        ));
    }
    if *iid == ID3D12GraphicsCommandList7::IID {
        return Some((
            &D12_LIST as *const _ as *const c_void,
            "ID3D12GraphicsCommandList7",
        ));
    }
    if *iid == ID3D12GraphicsCommandList8::IID {
        return Some((
            &D12_LIST as *const _ as *const c_void,
            "ID3D12GraphicsCommandList8",
        ));
    }
    if *iid == ID3D12GraphicsCommandList9::IID {
        return Some((
            &D12_LIST as *const _ as *const c_void,
            "ID3D12GraphicsCommandList9",
        ));
    }
    if *iid == ID3D12GraphicsCommandList10::IID {
        return Some((
            &D12_LIST as *const _ as *const c_void,
            "ID3D12GraphicsCommandList10",
        ));
    }
    static D12_ALLOCATOR: ID3D12CommandAllocator_Vtbl =
        super::d12_allocator::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12CommandAllocator::IID {
        return Some((
            &D12_ALLOCATOR as *const _ as *const c_void,
            "ID3D12CommandAllocator",
        ));
    }
    static D12_RESOURCE: ID3D12Resource2_Vtbl = super::d12_resource::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12Resource::IID {
        return Some((&D12_RESOURCE as *const _ as *const c_void, "ID3D12Resource"));
    }
    if *iid == ID3D12Resource1::IID {
        return Some((&D12_RESOURCE as *const _ as *const c_void, "ID3D12Resource1"));
    }
    if *iid == ID3D12Resource2::IID {
        return Some((&D12_RESOURCE as *const _ as *const c_void, "ID3D12Resource2"));
    }
    static D12_HEAP: ID3D12Heap1_Vtbl = super::d12_heap::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12Heap::IID {
        return Some((&D12_HEAP as *const _ as *const c_void, "ID3D12Heap"));
    }
    if *iid == ID3D12Heap1::IID {
        return Some((&D12_HEAP as *const _ as *const c_void, "ID3D12Heap1"));
    }
    static D12_FENCE: ID3D12Fence1_Vtbl = super::d12_fence::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12Fence::IID {
        return Some((&D12_FENCE as *const _ as *const c_void, "ID3D12Fence"));
    }
    if *iid == ID3D12Fence1::IID {
        return Some((&D12_FENCE as *const _ as *const c_void, "ID3D12Fence1"));
    }
    static D12_DESCRIPTORS: ID3D12DescriptorHeap_Vtbl =
        super::d12_descriptors::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12DescriptorHeap::IID {
        return Some((
            &D12_DESCRIPTORS as *const _ as *const c_void,
            "ID3D12DescriptorHeap",
        ));
    }
    static D12_ROOT: ID3D12RootSignature_Vtbl = super::d12_root::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12RootSignature::IID {
        return Some((&D12_ROOT as *const _ as *const c_void, "ID3D12RootSignature"));
    }
    static D12_PSO: ID3D12PipelineState_Vtbl = super::d12_pso::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12PipelineState::IID {
        return Some((&D12_PSO as *const _ as *const c_void, "ID3D12PipelineState"));
    }
    static D12_SIGNATURE: ID3D12CommandSignature_Vtbl =
        super::d12_signature::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12CommandSignature::IID {
        return Some((
            &D12_SIGNATURE as *const _ as *const c_void,
            "ID3D12CommandSignature",
        ));
    }
    static D12_QUERY: ID3D12QueryHeap_Vtbl = super::d12_query::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12QueryHeap::IID {
        return Some((&D12_QUERY as *const _ as *const c_void, "ID3D12QueryHeap"));
    }
    static D12_LIBRARY: ID3D12PipelineLibrary1_Vtbl = super::d12_library::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12PipelineLibrary::IID {
        return Some((&D12_LIBRARY as *const _ as *const c_void, "ID3D12PipelineLibrary"));
    }
    if *iid == ID3D12PipelineLibrary1::IID {
        return Some((
            &D12_LIBRARY as *const _ as *const c_void,
            "ID3D12PipelineLibrary1",
        ));
    }
    static D12_STATE: ID3D12StateObject_Vtbl = super::d12_state::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12StateObject::IID {
        return Some((&D12_STATE as *const _ as *const c_void, "ID3D12StateObject"));
    }
    static D12_PROPERTIES: ID3D12StateObjectProperties1_Vtbl =
        super::d12_properties::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12StateObjectProperties::IID {
        return Some((
            &D12_PROPERTIES as *const _ as *const c_void,
            "ID3D12StateObjectProperties",
        ));
    }
    if *iid == ID3D12StateObjectProperties1::IID {
        return Some((
            &D12_PROPERTIES as *const _ as *const c_void,
            "ID3D12StateObjectProperties1",
        ));
    }
    static D12_DEBUG: ID3D12Debug1_Vtbl = super::d12_debug::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12Debug1::IID {
        return Some((&D12_DEBUG as *const _ as *const c_void, "ID3D12Debug1"));
    }
    static D12_INFO: ID3D12InfoQueue1_Vtbl = super::d12_info::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12InfoQueue::IID {
        return Some((&D12_INFO as *const _ as *const c_void, "ID3D12InfoQueue"));
    }
    if *iid == ID3D12InfoQueue1::IID {
        return Some((&D12_INFO as *const _ as *const c_void, "ID3D12InfoQueue1"));
    }
    static D12_PROTECTED: ID3D12ProtectedResourceSession1_Vtbl =
        super::d12_protected::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12ProtectedSession::IID {
        return Some((
            &D12_PROTECTED as *const _ as *const c_void,
            "ID3D12ProtectedSession",
        ));
    }
    if *iid == ID3D12ProtectedResourceSession::IID {
        return Some((
            &D12_PROTECTED as *const _ as *const c_void,
            "ID3D12ProtectedResourceSession",
        ));
    }
    if *iid == ID3D12ProtectedResourceSession1::IID {
        return Some((
            &D12_PROTECTED as *const _ as *const c_void,
            "ID3D12ProtectedResourceSession1",
        ));
    }
    static D12_META: ID3D12MetaCommand_Vtbl = super::d12_meta::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12MetaCommand::IID {
        return Some((&D12_META as *const _ as *const c_void, "ID3D12MetaCommand"));
    }
    static D12_CACHE: ID3D12ShaderCacheSession_Vtbl = super::d12_cache::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12ShaderCacheSession::IID {
        return Some((
            &D12_CACHE as *const _ as *const c_void,
            "ID3D12ShaderCacheSession",
        ));
    }
    static D12_WORK_GRAPH: ID3D12WorkGraphProperties_Vtbl =
        super::d12_work_graph::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12WorkGraphProperties::IID {
        return Some((
            &D12_WORK_GRAPH as *const _ as *const c_void,
            "ID3D12WorkGraphProperties",
        ));
    }
    static D12_DEBUG2: ID3D12Debug2_Vtbl = super::d12_debug2::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12Debug2::IID {
        return Some((&D12_DEBUG2 as *const _ as *const c_void, "ID3D12Debug2"));
    }
    static D12_DEBUG_DEVICE: ID3D12DebugDevice2_Vtbl =
        super::d12_debug_device::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12DebugDevice::IID {
        return Some((
            &D12_DEBUG_DEVICE as *const _ as *const c_void,
            "ID3D12DebugDevice",
        ));
    }
    if *iid == ID3D12DebugDevice2::IID {
        return Some((
            &D12_DEBUG_DEVICE as *const _ as *const c_void,
            "ID3D12DebugDevice2",
        ));
    }
    static D12_DEBUG_DEVICE1: ID3D12DebugDevice1_Vtbl =
        super::d12_debug_device1::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12DebugDevice1::IID {
        return Some((
            &D12_DEBUG_DEVICE1 as *const _ as *const c_void,
            "ID3D12DebugDevice1",
        ));
    }
    static D12_DEBUG_QUEUE: ID3D12DebugCommandQueue1_Vtbl =
        super::d12_debug_queue::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12DebugCommandQueue::IID {
        return Some((
            &D12_DEBUG_QUEUE as *const _ as *const c_void,
            "ID3D12DebugCommandQueue",
        ));
    }
    if *iid == ID3D12DebugCommandQueue1::IID {
        return Some((
            &D12_DEBUG_QUEUE as *const _ as *const c_void,
            "ID3D12DebugCommandQueue1",
        ));
    }
    static D12_DEBUG_LIST: ID3D12DebugCommandList3_Vtbl =
        super::d12_debug_list::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12DebugCommandList::IID {
        return Some((
            &D12_DEBUG_LIST as *const _ as *const c_void,
            "ID3D12DebugCommandList",
        ));
    }
    if *iid == ID3D12DebugCommandList2::IID {
        return Some((
            &D12_DEBUG_LIST as *const _ as *const c_void,
            "ID3D12DebugCommandList2",
        ));
    }
    if *iid == ID3D12DebugCommandList3::IID {
        return Some((
            &D12_DEBUG_LIST as *const _ as *const c_void,
            "ID3D12DebugCommandList3",
        ));
    }
    static D12_DEBUG_LIST1: ID3D12DebugCommandList1_Vtbl =
        super::d12_debug_list1::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12DebugCommandList1::IID {
        return Some((
            &D12_DEBUG_LIST1 as *const _ as *const c_void,
            "ID3D12DebugCommandList1",
        ));
    }
    static D12_DRED: ID3D12DeviceRemovedExtendedData2_Vtbl =
        super::d12_dred::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12DeviceRemovedExtendedData::IID {
        return Some((
            &D12_DRED as *const _ as *const c_void,
            "ID3D12DeviceRemovedExtendedData",
        ));
    }
    if *iid == ID3D12DeviceRemovedExtendedData1::IID {
        return Some((
            &D12_DRED as *const _ as *const c_void,
            "ID3D12DeviceRemovedExtendedData1",
        ));
    }
    if *iid == ID3D12DeviceRemovedExtendedData2::IID {
        return Some((
            &D12_DRED as *const _ as *const c_void,
            "ID3D12DeviceRemovedExtendedData2",
        ));
    }
    static D12_DRED_SETTINGS: ID3D12DeviceRemovedExtendedDataSettings2_Vtbl =
        super::d12_dred_settings::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12DeviceRemovedExtendedDataSettings::IID {
        return Some((
            &D12_DRED_SETTINGS as *const _ as *const c_void,
            "ID3D12DeviceRemovedExtendedDataSettings",
        ));
    }
    if *iid == ID3D12DeviceRemovedExtendedDataSettings1::IID {
        return Some((
            &D12_DRED_SETTINGS as *const _ as *const c_void,
            "ID3D12DeviceRemovedExtendedDataSettings1",
        ));
    }
    if *iid == ID3D12DeviceRemovedExtendedDataSettings2::IID {
        return Some((
            &D12_DRED_SETTINGS as *const _ as *const c_void,
            "ID3D12DeviceRemovedExtendedDataSettings2",
        ));
    }
    static D12_SDK: ID3D12SDKConfiguration1_Vtbl = super::d12_sdk::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12SDKConfiguration::IID {
        return Some((&D12_SDK as *const _ as *const c_void, "ID3D12SDKConfiguration"));
    }
    if *iid == ID3D12SDKConfiguration1::IID {
        return Some((&D12_SDK as *const _ as *const c_void, "ID3D12SDKConfiguration1"));
    }
    static D12_FACTORY: ID3D12DeviceFactory_Vtbl = super::d12_factory::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12DeviceFactory::IID {
        return Some((&D12_FACTORY as *const _ as *const c_void, "ID3D12DeviceFactory"));
    }
    static D12_CONFIGURATION: ID3D12DeviceConfiguration1_Vtbl =
        super::d12_configuration::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12DeviceConfiguration::IID {
        return Some((
            &D12_CONFIGURATION as *const _ as *const c_void,
            "ID3D12DeviceConfiguration",
        ));
    }
    if *iid == ID3D12DeviceConfiguration1::IID {
        return Some((
            &D12_CONFIGURATION as *const _ as *const c_void,
            "ID3D12DeviceConfiguration1",
        ));
    }
    static D12_TOOLS: ID3D12Tools_Vtbl = super::d12_tools::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12Tools::IID {
        return Some((&D12_TOOLS as *const _ as *const c_void, "ID3D12Tools"));
    }
    static D12_SHARING: ID3D12SharingContract_Vtbl = super::d12_sharing::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12SharingContract::IID {
        return Some((&D12_SHARING as *const _ as *const c_void, "ID3D12SharingContract"));
    }
    static D12_GBV: ID3D12GBVDiagnostics_Vtbl = super::d12_gbv::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12GBVDiagnostics::IID {
        return Some((&D12_GBV as *const _ as *const c_void, "ID3D12GBVDiagnostics"));
    }
    static D12_WRITE_TRACKING: ID3D12ManualWriteTrackingResource_Vtbl =
        super::d12_write_tracking::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12ManualWriteTrackingResource::IID {
        return Some((
            &D12_WRITE_TRACKING as *const _ as *const c_void,
            "ID3D12ManualWriteTrackingResource",
        ));
    }
    static D12_ASSISTANT: ID3D12SwapChainAssistant_Vtbl =
        super::d12_assistant::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12SwapChainAssistant::IID {
        return Some((
            &D12_ASSISTANT as *const _ as *const c_void,
            "ID3D12SwapChainAssistant",
        ));
    }
    static D12_GUEST: ID3D12VirtualizationGuestDevice_Vtbl =
        super::d12_guest::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12VirtualizationGuestDevice::IID {
        return Some((
            &D12_GUEST as *const _ as *const c_void,
            "ID3D12VirtualizationGuestDevice",
        ));
    }
    static D12_LIFETIME_OWNER: ID3D12LifetimeOwner_Vtbl =
        super::d12_lifetime_owner::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12LifetimeOwner::IID {
        return Some((
            &D12_LIFETIME_OWNER as *const _ as *const c_void,
            "ID3D12LifetimeOwner",
        ));
    }
    static D12_LIFETIME: ID3D12LifetimeTracker_Vtbl = super::d12_lifetime::vtable::<crate::d3d12::Object>();
    if *iid == ID3D12LifetimeTracker::IID {
        return Some((
            &D12_LIFETIME as *const _ as *const c_void,
            "ID3D12LifetimeTracker",
        ));
    }
    None
}