-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathGPU.cs
More file actions
732 lines (608 loc) · 31.2 KB
/
GPU.cs
File metadata and controls
732 lines (608 loc) · 31.2 KB
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
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
using System.Runtime.InteropServices;
using NvAPIWrapper.Native.Attributes;
using NvAPIWrapper.Native.Display.Structures;
using NvAPIWrapper.Native.General;
using NvAPIWrapper.Native.General.Structures;
using NvAPIWrapper.Native.GPU;
using NvAPIWrapper.Native.GPU.Structures;
using NvAPIWrapper.Native.Helpers;
using NvAPIWrapper.Native.Helpers.Structures;
// ReSharper disable InconsistentNaming
namespace NvAPIWrapper.Native.Delegates
{
internal static class GPU
{
[FunctionId(FunctionId.NvAPI_EnumLogicalGPUs)]
public delegate Status NvAPI_EnumLogicalGPUs(
[In] [Out] [MarshalAs(UnmanagedType.LPArray, SizeConst = LogicalGPUHandle.MaxLogicalGPUs)]
LogicalGPUHandle[]
gpuHandles,
[Out] out uint gpuCount);
[FunctionId(FunctionId.NvAPI_EnumPhysicalGPUs)]
public delegate Status NvAPI_EnumPhysicalGPUs(
[In] [Out] [MarshalAs(UnmanagedType.LPArray, SizeConst = PhysicalGPUHandle.MaxPhysicalGPUs)]
PhysicalGPUHandle[]
gpuHandles,
[Out] out uint gpuCount);
[FunctionId(FunctionId.NvAPI_EnumTCCPhysicalGPUs)]
public delegate Status NvAPI_EnumTCCPhysicalGPUs(
[In] [Out] [MarshalAs(UnmanagedType.LPArray, SizeConst = PhysicalGPUHandle.MaxPhysicalGPUs)]
PhysicalGPUHandle[]
gpuHandles,
[Out] out uint gpuCount);
[FunctionId(FunctionId.NvAPI_GetDriverModel)]
public delegate Status NvAPI_GetDriverModel(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint model);
[FunctionId(FunctionId.NvAPI_GetGPUIDfromPhysicalGPU)]
public delegate Status NvAPI_GetGPUIDFromPhysicalGPU(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint gpuId);
[FunctionId(FunctionId.NvAPI_GetLogicalGPUFromDisplay)]
public delegate Status NvAPI_GetLogicalGPUFromDisplay(
[In] DisplayHandle displayHandle,
[Out] out LogicalGPUHandle gpuHandle);
[FunctionId(FunctionId.NvAPI_GetLogicalGPUFromPhysicalGPU)]
public delegate Status NvAPI_GetLogicalGPUFromPhysicalGPU(
[In] PhysicalGPUHandle physicalGPUHandle,
[Out] out LogicalGPUHandle logicalGPUHandle);
[FunctionId(FunctionId.NvAPI_GetPhysicalGPUFromGPUID)]
public delegate Status NvAPI_GetPhysicalGPUFromGPUID(
[In] uint gpuId,
[Out] out PhysicalGPUHandle physicalGpu);
[FunctionId(FunctionId.NvAPI_GetPhysicalGPUFromUnAttachedDisplay)]
public delegate Status NvAPI_GetPhysicalGPUFromUnAttachedDisplay(
[In] UnAttachedDisplayHandle displayHandle,
[Out] out PhysicalGPUHandle gpuHandle);
[FunctionId(FunctionId.NvAPI_GetPhysicalGPUsFromDisplay)]
public delegate Status NvAPI_GetPhysicalGPUsFromDisplay(
[In] DisplayHandle displayHandle,
[In] [Out] [MarshalAs(UnmanagedType.LPArray, SizeConst = PhysicalGPUHandle.MaxPhysicalGPUs)]
PhysicalGPUHandle[]
gpuHandles,
[Out] out uint gpuCount);
[FunctionId(FunctionId.NvAPI_GetPhysicalGPUsFromLogicalGPU)]
public delegate Status NvAPI_GetPhysicalGPUsFromLogicalGPU(
[In] LogicalGPUHandle logicalGPUHandle,
[In] [Out] [MarshalAs(UnmanagedType.LPArray, SizeConst = PhysicalGPUHandle.MaxPhysicalGPUs)]
PhysicalGPUHandle[]
gpuHandles,
[Out] out uint gpuCount);
[FunctionId(FunctionId.NvAPI_GPU_ClientFanCoolersGetControl)]
public delegate Status NvAPI_GPU_ClientFanCoolersGetControl(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(PrivateFanCoolersControlV1))] [In]
ValueTypeReference control);
[FunctionId(FunctionId.NvAPI_GPU_ClientFanCoolersGetInfo)]
public delegate Status NvAPI_GPU_ClientFanCoolersGetInfo(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(PrivateFanCoolersInfoV1))] [In]
ValueTypeReference info);
[FunctionId(FunctionId.NvAPI_GPU_ClientFanCoolersGetStatus)]
public delegate Status NvAPI_GPU_ClientFanCoolersGetStatus(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(PrivateFanCoolersStatusV1))] [In]
ValueTypeReference status);
[FunctionId(FunctionId.NvAPI_GPU_ClientFanCoolersSetControl)]
public delegate Status NvAPI_GPU_ClientFanCoolersSetControl(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(PrivateFanCoolersControlV1))] [In]
ValueTypeReference control);
[FunctionId(FunctionId.NvAPI_GPU_ClientIllumDevicesGetControl)]
public delegate Status NvAPI_GPU_ClientIlluminationDevicesGetControl(
[In] PhysicalGPUHandle gpu,
[Accepts(typeof(IlluminationDeviceControlParametersV1))] [In]
ValueTypeReference illuminationDeviceControlInfo
);
[FunctionId(FunctionId.NvAPI_GPU_ClientIllumDevicesGetInfo)]
public delegate Status NvAPI_GPU_ClientIlluminationDevicesGetInfo(
[In] PhysicalGPUHandle gpu,
[Accepts(typeof(IlluminationDeviceInfoParametersV1))] [In]
ValueTypeReference illuminationDevicesInfo
);
[FunctionId(FunctionId.NvAPI_GPU_ClientIllumDevicesSetControl)]
public delegate Status NvAPI_GPU_ClientIlluminationDevicesSetControl(
[In] PhysicalGPUHandle gpu,
[Accepts(typeof(IlluminationDeviceControlParametersV1))] [In]
ValueTypeReference illuminationDeviceControlInfo
);
[FunctionId(FunctionId.NvAPI_GPU_ClientIllumZonesGetControl)]
public delegate Status NvAPI_GPU_ClientIlluminationZonesGetControl(
[In] PhysicalGPUHandle gpu,
[Accepts(typeof(IlluminationZoneControlParametersV1))] [In]
ValueTypeReference illuminationZoneControlInfo
);
[FunctionId(FunctionId.NvAPI_GPU_ClientIllumZonesGetInfo)]
public delegate Status NvAPI_GPU_ClientIlluminationZonesGetInfo(
[In] PhysicalGPUHandle gpu,
[Accepts(typeof(IlluminationZoneInfoParametersV1))] [In]
ValueTypeReference illuminationZoneInfo
);
[FunctionId(FunctionId.NvAPI_GPU_ClientIllumZonesSetControl)]
public delegate Status NvAPI_GPU_ClientIlluminationZonesSetControl(
[In] PhysicalGPUHandle gpu,
[Accepts(typeof(IlluminationZoneControlParametersV1))] [In]
ValueTypeReference illuminationZoneControlInfo
);
[FunctionId(FunctionId.NvAPI_GPU_ClientPowerPoliciesGetInfo)]
public delegate Status NvAPI_GPU_ClientPowerPoliciesGetInfo(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(PrivatePowerPoliciesInfoV1))] [In]
ValueTypeReference powerInfo);
[FunctionId(FunctionId.NvAPI_GPU_ClientPowerPoliciesGetStatus)]
public delegate Status NvAPI_GPU_ClientPowerPoliciesGetStatus(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(PrivatePowerPoliciesStatusV1))] [In]
ValueTypeReference status);
[FunctionId(FunctionId.NvAPI_GPU_ClientPowerPoliciesSetStatus)]
public delegate Status NvAPI_GPU_ClientPowerPoliciesSetStatus(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(PrivatePowerPoliciesStatusV1))] [In]
ValueTypeReference status);
[FunctionId(FunctionId.NvAPI_GPU_ClientPowerTopologyGetStatus)]
public delegate Status NvAPI_GPU_ClientPowerTopologyGetStatus(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(PrivatePowerTopologiesStatusV1))] [In]
ValueTypeReference status);
[FunctionId(FunctionId.NvAPI_GPU_EnableDynamicPstates)]
public delegate Status NvAPI_GPU_EnableDynamicPStates([In] PhysicalGPUHandle physicalGpu);
[FunctionId(FunctionId.NvAPI_GPU_EnableOverclockedPstates)]
public delegate Status NvAPI_GPU_EnableOverclockedPStates([In] PhysicalGPUHandle physicalGpu);
[FunctionId(FunctionId.NvAPI_GPU_GetActiveOutputs)]
public delegate Status NvAPI_GPU_GetActiveOutputs(
[In] PhysicalGPUHandle physicalGpu,
[Out] out OutputId outputMask);
[FunctionId(FunctionId.NvAPI_GPU_GetAGPAperture)]
public delegate Status NvAPI_GPU_GetAGPAperture(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint size);
[FunctionId(FunctionId.NvAPI_GPU_GetAllClockFrequencies)]
public delegate Status NvAPI_GPU_GetAllClockFrequencies(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(ClockFrequenciesV3), typeof(ClockFrequenciesV2), typeof(ClockFrequenciesV1))]
ValueTypeReference nvClocks);
[FunctionId(FunctionId.NvAPI_GPU_GetAllDisplayIds)]
public delegate Status NvAPI_GPU_GetAllDisplayIds(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(DisplayIdsV2))] [In] [Out]
ValueTypeArray pDisplayIds,
[In] [Out] ref uint displayIdCount);
[FunctionId(FunctionId.NvAPI_GPU_GetArchInfo)]
public delegate Status NvAPI_GPU_GetArchInfo(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(PrivateArchitectInfoV2))] [In]
ValueTypeReference info);
[FunctionId(FunctionId.NvAPI_GPU_GetBoardInfo)]
public delegate Status NvAPI_GPU_GetBoardInfo(
[In] PhysicalGPUHandle physicalGpu,
[Out] [In] ref BoardInfo info);
[FunctionId(FunctionId.NvAPI_GPU_GetBusId)]
public delegate Status NvAPI_GPU_GetBusId(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint gpuBusId);
[FunctionId(FunctionId.NvAPI_GPU_GetBusSlotId)]
public delegate Status NvAPI_GPU_GetBusSlotId(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint gpuBusSlotId);
[FunctionId(FunctionId.NvAPI_GPU_GetBusType)]
public delegate Status NvAPI_GPU_GetBusType(
[In] PhysicalGPUHandle physicalGpu,
[Out] out GPUBusType gpuBusType);
[FunctionId(FunctionId.NvAPI_GPU_GetClockBoostLock)]
public delegate Status NvAPI_GPU_GetClockBoostLock(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(PrivateClockBoostLockV2))]
ValueTypeReference clockLocks);
[FunctionId(FunctionId.NvAPI_GPU_GetClockBoostMask)]
public delegate Status NvAPI_GPU_GetClockBoostMask(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(PrivateClockBoostMasksV1))]
ValueTypeReference clockMasks);
[FunctionId(FunctionId.NvAPI_GPU_GetClockBoostRanges)]
public delegate Status NvAPI_GPU_GetClockBoostRanges(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(PrivateClockBoostRangesV1))]
ValueTypeReference clockRanges);
[FunctionId(FunctionId.NvAPI_GPU_GetClockBoostTable)]
public delegate Status NvAPI_GPU_GetClockBoostTable(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(PrivateClockBoostTableV1))]
ValueTypeReference boostTable);
[FunctionId(FunctionId.NvAPI_GPU_GetConnectedDisplayIds)]
public delegate Status NvAPI_GPU_GetConnectedDisplayIds(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(DisplayIdsV2))] [In] [Out]
ValueTypeArray pDisplayIds,
[In] [Out] ref uint displayIdCount,
[In] ConnectedIdsFlag flags);
[FunctionId(FunctionId.NvAPI_GPU_GetCoolerPolicyTable)]
public delegate Status NvAPI_GPU_GetCoolerPolicyTable(
[In] PhysicalGPUHandle physicalGpu,
[In] uint index,
[In] [Accepts(typeof(PrivateCoolerPolicyTableV1))]
ValueTypeReference coolerPolicyTable,
[Out] out uint count);
[FunctionId(FunctionId.NvAPI_GPU_GetCoolerSettings)]
public delegate Status NvAPI_GPU_GetCoolerSettings(
[In] PhysicalGPUHandle physicalGpu,
[In] CoolerTarget coolerIndex,
[In] [Accepts(typeof(PrivateCoolerSettingsV1))]
ValueTypeReference coolerSettings);
[FunctionId(FunctionId.NvAPI_GPU_GetCoreVoltageBoostPercent)]
public delegate Status NvAPI_GPU_GetCoreVoltageBoostPercent(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(PrivateVoltageBoostPercentV1))]
ValueTypeReference voltageBoostPercent);
[FunctionId(FunctionId.NvAPI_GPU_GetCurrentAGPRate)]
public delegate Status NvAPI_GPU_GetCurrentAGPRate(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint rate);
[FunctionId(FunctionId.NvAPI_GPU_GetCurrentFanSpeedLevel)]
public delegate Status NvAPI_GPU_GetCurrentFanSpeedLevel(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint fanLevel);
[FunctionId(FunctionId.NvAPI_GPU_GetCurrentPCIEDownstreamWidth)]
public delegate Status NvAPI_GPU_GetCurrentPCIEDownstreamWidth(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint width);
[FunctionId(FunctionId.NvAPI_GPU_GetCurrentPstate)]
public delegate Status NvAPI_GPU_GetCurrentPState(
[In] PhysicalGPUHandle physicalGpu,
[Out] out PerformanceStateId performanceStateId);
[FunctionId(FunctionId.NvAPI_GPU_GetCurrentThermalLevel)]
public delegate Status NvAPI_GPU_GetCurrentThermalLevel(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint thermalLevel);
[FunctionId(FunctionId.NvAPI_GPU_GetCurrentVoltage)]
public delegate Status NvAPI_GPU_GetCurrentVoltage(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(PrivateVoltageStatusV1))]
ValueTypeReference voltageStatus);
[FunctionId(FunctionId.NvAPI_GPU_GetDynamicPstatesInfoEx)]
public delegate Status NvAPI_GPU_GetDynamicPStatesInfoEx(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(DynamicPerformanceStatesInfoV1))]
ValueTypeReference performanceStatesInfoEx);
[FunctionId(FunctionId.NvAPI_GPU_GetECCConfigurationInfo)]
public delegate Status NvAPI_GPU_GetECCConfigurationInfo(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(ECCConfigurationInfoV1))]
ValueTypeReference eccConfigurationInfo);
[FunctionId(FunctionId.NvAPI_GPU_GetECCErrorInfo)]
public delegate Status NvAPI_GPU_GetECCErrorInfo(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(ECCErrorInfoV1))] ValueTypeReference eccErrorInfo);
[FunctionId(FunctionId.NvAPI_GPU_GetECCStatusInfo)]
public delegate Status NvAPI_GPU_GetECCStatusInfo(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(ECCStatusInfoV1))]
ValueTypeReference eccStatusInfo);
[FunctionId(FunctionId.NvAPI_GPU_GetEDID)]
public delegate Status NvAPI_GPU_GetEDID(
[In] PhysicalGPUHandle physicalGpu,
[In] OutputId outputId,
[Accepts(typeof(EDIDV3), typeof(EDIDV2), typeof(EDIDV1))] [In]
ValueTypeReference edid);
[FunctionId(FunctionId.NvAPI_GPU_GetFBWidthAndLocation)]
public delegate Status NvAPI_GPU_GetFBWidthAndLocation(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint width,
[Out] out uint location);
[FunctionId(FunctionId.NvAPI_GPU_GetFoundry)]
public delegate Status NvAPI_GPU_GetFoundry(
[In] PhysicalGPUHandle physicalGpu,
[Out] out GPUFoundry pFoundry);
[FunctionId(FunctionId.NvAPI_GPU_GetFullName)]
public delegate Status NvAPI_GPU_GetFullName(
[In] PhysicalGPUHandle physicalGpu,
[Out] out ShortString name);
[FunctionId(FunctionId.NvAPI_GPU_GetGpuCoreCount)]
public delegate Status NvAPI_GPU_GetGpuCoreCount(
[In] PhysicalGPUHandle gpuHandle,
[Out] out uint count);
[FunctionId(FunctionId.NvAPI_GPU_GetGPUType)]
public delegate Status NvAPI_GPU_GetGPUType(
[In] PhysicalGPUHandle physicalGpu,
[Out] out GPUType gpuType);
[FunctionId(FunctionId.NvAPI_GPU_GetIllumination)]
public delegate Status NvAPI_GPU_GetIllumination(
[Accepts(typeof(GetIlluminationParameterV1))] [In]
ValueTypeReference illuminationInfo);
[FunctionId(FunctionId.NvAPI_GPU_GetIRQ)]
public delegate Status NvAPI_GPU_GetIRQ(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint gpuIRQ);
[FunctionId(FunctionId.NvAPI_GPU_GetLogicalFBWidthAndLocation)]
public delegate Status NvAPI_GPU_GetLogicalFBWidthAndLocation(
[In] LogicalGPUHandle logicalGpu,
[Out] out uint width,
[Out] out uint location);
[FunctionId(FunctionId.NvAPI_GPU_GetMemoryInfo)]
public delegate Status NvAPI_GPU_GetMemoryInfo(
[In] PhysicalGPUHandle physicalGpu,
[In]
[Accepts(typeof(DisplayDriverMemoryInfoV3), typeof(DisplayDriverMemoryInfoV2),
typeof(DisplayDriverMemoryInfoV1))]
ValueTypeReference memoryInfo);
[FunctionId(FunctionId.NvAPI_GPU_GetOutputType)]
public delegate Status NvAPI_GPU_GetOutputType(
[In] PhysicalGPUHandle physicalGpu,
[In] uint outputId,
[Out] out OutputType outputType);
[FunctionId(FunctionId.NvAPI_GPU_GetPartitionCount)]
public delegate Status NvAPI_GPU_GetPartitionCount(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint count);
[FunctionId(FunctionId.NvAPI_GPU_GetPCIEInfo)]
public delegate Status NvAPI_GPU_GetPCIEInfo(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(PrivatePCIeInfoV2))] [In]
ValueTypeReference pcieInfo);
[FunctionId(FunctionId.NvAPI_GPU_GetPCIIdentifiers)]
public delegate Status NvAPI_GPU_GetPCIIdentifiers(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint deviceId,
[Out] out uint subSystemId,
[Out] out uint revisionId,
[Out] out uint extDeviceId);
[FunctionId(FunctionId.NvAPI_GPU_GetPerfDecreaseInfo)]
public delegate Status NvAPI_GPU_GetPerfDecreaseInfo(
[In] PhysicalGPUHandle gpu,
[Out] out PerformanceDecreaseReason performanceDecreaseReason);
[FunctionId(FunctionId.NvAPI_GPU_GetPhysicalFrameBufferSize)]
public delegate Status NvAPI_GPU_GetPhysicalFrameBufferSize(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint size);
[FunctionId(FunctionId.NvAPI_GPU_GetPstates20)]
public delegate Status NvAPI_GPU_GetPStates20(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(
typeof(PerformanceStates20InfoV3),
typeof(PerformanceStates20InfoV2),
typeof(PerformanceStates20InfoV1)
)]
[In]
ValueTypeReference performanceStatesInfo);
[FunctionId(FunctionId.NvAPI_GPU_GetPstatesInfoEx)]
public delegate Status NvAPI_GPU_GetPStatesInfoEx(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(
typeof(PerformanceStatesInfoV3),
typeof(PerformanceStatesInfoV2),
typeof(PerformanceStatesInfoV1)
)]
[In]
ValueTypeReference performanceStatesInfo,
[In] GetPerformanceStatesInfoFlags flags);
[FunctionId(FunctionId.NvAPI_GPU_GetQuadroStatus)]
public delegate Status NvAPI_GPU_GetQuadroStatus(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint isQuadro);
[FunctionId(FunctionId.NvAPI_GPU_GetRamBankCount)]
public delegate Status NvAPI_GPU_GetRamBankCount(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint count);
[FunctionId(FunctionId.NvAPI_GPU_GetRamBusWidth)]
public delegate Status NvAPI_GPU_GetRamBusWidth(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint busWidth);
[FunctionId(FunctionId.NvAPI_GPU_GetRamMaker)]
public delegate Status NvAPI_GPU_GetRamMaker(
[In] PhysicalGPUHandle physicalGpu,
[Out] out GPUMemoryMaker maker);
[FunctionId(FunctionId.NvAPI_GPU_GetRamType)]
public delegate Status NvAPI_GPU_GetRamType(
[In] PhysicalGPUHandle physicalGpu,
[Out] out GPUMemoryType type);
[FunctionId(FunctionId.NvAPI_GPU_GetROPCount)]
public delegate Status NvAPI_GPU_GetROPCount(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint count);
[FunctionId(FunctionId.NvAPI_GPU_GetShaderPipeCount)]
public delegate Status NvAPI_GPU_GetShaderPipeCount(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint count);
[FunctionId(FunctionId.NvAPI_GPU_GetShaderSubPipeCount)]
public delegate Status NvAPI_GPU_GetShaderSubPipeCount(
[In] PhysicalGPUHandle gpuHandle,
[Out] out uint count);
[FunctionId(FunctionId.NvAPI_GPU_GetShortName)]
public delegate Status NvAPI_GPU_GetShortName(
[In] PhysicalGPUHandle physicalGpu,
[Out] out ShortString name);
[FunctionId(FunctionId.NvAPI_GPU_GetSystemType)]
public delegate Status NvAPI_GPU_GetSystemType(
[In] PhysicalGPUHandle physicalGpu,
[Out] out SystemType systemType);
[FunctionId(FunctionId.NvAPI_GPU_GetTachReading)]
public delegate Status NvAPI_GPU_GetTachReading(
[In] PhysicalGPUHandle gpuHandle,
[Out] out uint value);
[FunctionId(FunctionId.NvAPI_GPU_GetThermalPoliciesInfo)]
public delegate Status NvAPI_GPU_GetThermalPoliciesInfo(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(PrivateThermalPoliciesInfoV2))] [In]
ValueTypeReference info);
[FunctionId(FunctionId.NvAPI_GPU_GetThermalPoliciesStatus)]
public delegate Status NvAPI_GPU_GetThermalPoliciesStatus(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(PrivateThermalPoliciesStatusV2))] [In]
ValueTypeReference info);
[FunctionId(FunctionId.NvAPI_GPU_GetThermalSettings)]
public delegate Status NvAPI_GPU_GetThermalSettings(
[In] PhysicalGPUHandle physicalGpu,
[In] ThermalSettingsTarget sensorIndex,
[In] [Accepts(typeof(ThermalSettingsV2), typeof(ThermalSettingsV1))]
ValueTypeReference thermalSettings);
[FunctionId(FunctionId.NvAPI_GPU_GetTotalSMCount)]
public delegate Status NvAPI_GPU_GetTotalSMCount(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint count);
[FunctionId(FunctionId.NvAPI_GPU_GetTotalSPCount)]
public delegate Status NvAPI_GPU_GetTotalSPCount(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint count);
[FunctionId(FunctionId.NvAPI_GPU_GetTotalTPCCount)]
public delegate Status NvAPI_GPU_GetTotalTPCCount(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint count);
[FunctionId(FunctionId.NvAPI_GPU_GetUsages)]
public delegate Status NvAPI_GPU_GetUsages(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(PrivateUsagesInfoV1))]
ValueTypeReference usageInfo);
[FunctionId(FunctionId.NvAPI_GPU_GetVbiosOEMRevision)]
public delegate Status NvAPI_GPU_GetVbiosOEMRevision(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint biosOEMRevision);
[FunctionId(FunctionId.NvAPI_GPU_GetVbiosRevision)]
public delegate Status NvAPI_GPU_GetVbiosRevision(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint biosRevision);
[FunctionId(FunctionId.NvAPI_GPU_GetVbiosVersionString)]
public delegate Status NvAPI_GPU_GetVbiosVersionString(
[In] PhysicalGPUHandle physicalGpu,
[Out] out ShortString biosVersion);
[FunctionId(FunctionId.NvAPI_GPU_GetVFPCurve)]
public delegate Status NvAPI_GPU_GetVFPCurve(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(PrivateVFPCurveV1))]
ValueTypeReference vfpCurve);
[FunctionId(FunctionId.NvAPI_GPU_GetVirtualFrameBufferSize)]
public delegate Status NvAPI_GPU_GetVirtualFrameBufferSize(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint size);
[FunctionId(FunctionId.NvAPI_GPU_GetVPECount)]
public delegate Status NvAPI_GPU_GetVPECount(
[In] PhysicalGPUHandle physicalGpu,
[Out] out uint count);
[FunctionId(FunctionId.NvAPI_GPU_PerfPoliciesGetInfo)]
public delegate Status NvAPI_GPU_PerfPoliciesGetInfo(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(PrivatePerformanceInfoV1))]
ValueTypeReference performanceInfo);
[FunctionId(FunctionId.NvAPI_GPU_PerfPoliciesGetStatus)]
public delegate Status NvAPI_GPU_PerfPoliciesGetStatus(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(PrivatePerformanceStatusV1))]
ValueTypeReference performanceStatus);
[FunctionId(FunctionId.NvAPI_GPU_QueryActiveApps)]
public delegate Status NvAPI_GPU_QueryActiveApps(
[In] PhysicalGPUHandle gpu,
[In] [Accepts(typeof(PrivateActiveApplicationV2))]
ValueTypeArray applications,
[In] [Out] ref uint numberOfApplications
);
[FunctionId(FunctionId.NvAPI_GPU_QueryIlluminationSupport)]
public delegate Status NvAPI_GPU_QueryIlluminationSupport(
[Accepts(typeof(QueryIlluminationSupportParameterV1))] [In]
ValueTypeReference illuminationSupportInfo);
[FunctionId(FunctionId.NvAPI_GPU_ResetECCErrorInfo)]
public delegate Status NvAPI_GPU_ResetECCErrorInfo(
[In] PhysicalGPUHandle physicalGpu,
[In] byte resetCurrent,
[In] byte resetAggregated
);
[FunctionId(FunctionId.NvAPI_GPU_RestoreCoolerPolicyTable)]
public delegate Status NvAPI_GPU_RestoreCoolerPolicyTable(
[In] PhysicalGPUHandle physicalGpu,
[In] uint[] indexes,
[In] uint indexesCount,
[In] CoolerPolicy policy);
[FunctionId(FunctionId.NvAPI_GPU_RestoreCoolerSettings)]
public delegate Status NvAPI_GPU_RestoreCoolerSettings(
[In] PhysicalGPUHandle physicalGpu,
[In] uint[] indexes,
[In] uint indexesCount);
[FunctionId(FunctionId.NvAPI_GPU_SetClockBoostLock)]
public delegate Status NvAPI_GPU_SetClockBoostLock(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(PrivateClockBoostLockV2))]
ValueTypeReference clockLocks);
[FunctionId(FunctionId.NvAPI_GPU_SetClockBoostTable)]
public delegate Status NvAPI_GPU_SetClockBoostTable(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(PrivateClockBoostTableV1))]
ValueTypeReference boostTable);
[FunctionId(FunctionId.NvAPI_GPU_SetCoolerLevels)]
public delegate Status NvAPI_GPU_SetCoolerLevels(
[In] PhysicalGPUHandle physicalGpu,
[In] uint index,
[In] [Accepts(typeof(PrivateCoolerLevelsV1))]
ValueTypeReference coolerLevels,
[In] uint count);
[FunctionId(FunctionId.NvAPI_GPU_SetCoolerPolicyTable)]
public delegate Status NvAPI_GPU_SetCoolerPolicyTable(
[In] PhysicalGPUHandle physicalGpu,
[In] uint index,
[In] [Accepts(typeof(PrivateCoolerPolicyTableV1))]
ValueTypeReference coolerLevels,
[In] uint count);
[FunctionId(FunctionId.NvAPI_GPU_SetCoreVoltageBoostPercent)]
public delegate Status NvAPI_GPU_SetCoreVoltageBoostPercent(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(PrivateVoltageBoostPercentV1))]
ValueTypeReference voltageBoostPercent);
[FunctionId(FunctionId.NvAPI_GPU_SetECCConfiguration)]
public delegate Status NvAPI_GPU_SetECCConfiguration(
[In] PhysicalGPUHandle physicalGpu,
[In] byte isEnable,
[In] byte isEnableImmediately
);
[FunctionId(FunctionId.NvAPI_GPU_SetEDID)]
public delegate Status NvAPI_GPU_SetEDID(
[In] PhysicalGPUHandle physicalGpu,
[In] uint outputId,
[Accepts(typeof(EDIDV3), typeof(EDIDV2), typeof(EDIDV1))] [In]
ValueTypeReference edid);
[FunctionId(FunctionId.NvAPI_GPU_SetIllumination)]
public delegate Status NvAPI_GPU_SetIllumination(
[Accepts(typeof(SetIlluminationParameterV1))] [In]
ValueTypeReference illuminationInfo);
[FunctionId(FunctionId.NvAPI_GPU_SetPstates20)]
public delegate Status NvAPI_GPU_SetPStates20(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(PerformanceStates20InfoV3), typeof(PerformanceStates20InfoV2),
typeof(PerformanceStates20InfoV1))]
[In]
ValueTypeReference performanceStatesInfo);
[FunctionId(FunctionId.NvAPI_GPU_SetForcePstate)]
public delegate Status NvAPI_GPU_SetForcePstate(
[In] PhysicalGPUHandle physicalGpu,
[In] int pstate,
[In] int fallback);
[FunctionId(FunctionId.NvAPI_GPU_SetThermalPoliciesStatus)]
public delegate Status NvAPI_GPU_SetThermalPoliciesStatus(
[In] PhysicalGPUHandle physicalGpu,
[Accepts(typeof(PrivateThermalPoliciesStatusV2))] [In]
ValueTypeReference info);
[FunctionId(FunctionId.NvAPI_GPU_ValidateOutputCombination)]
public delegate Status NvAPI_GPU_ValidateOutputCombination(
[In] PhysicalGPUHandle physicalGpu,
[In] OutputId outputMask);
[FunctionId(FunctionId.NvAPI_I2CRead)]
public delegate Status NvAPI_I2CRead(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(I2CInfoV3), typeof(I2CInfoV2))] ValueTypeReference i2cInfo
);
[FunctionId(FunctionId.NvAPI_I2CWrite)]
public delegate Status NvAPI_I2CWrite(
[In] PhysicalGPUHandle physicalGpu,
[In] [Accepts(typeof(I2CInfoV3), typeof(I2CInfoV2))] ValueTypeReference i2cInfo
);
[FunctionId(FunctionId.NvAPI_SYS_GetDisplayIdFromGpuAndOutputId)]
public delegate Status NvAPI_SYS_GetDisplayIdFromGpuAndOutputId(
[In] PhysicalGPUHandle gpu,
[In] OutputId outputId,
[Out] out uint displayId);
[FunctionId(FunctionId.NvAPI_SYS_GetGpuAndOutputIdFromDisplayId)]
public delegate Status NvAPI_SYS_GetGpuAndOutputIdFromDisplayId(
[In] uint displayId,
[Out] out PhysicalGPUHandle gpu,
[Out] out OutputId outputId);
[FunctionId(FunctionId.NvAPI_SYS_GetPhysicalGpuFromDisplayId)]
public delegate Status NvAPI_SYS_GetPhysicalGpuFromDisplayId(
[In] uint displayId,
[Out] out PhysicalGPUHandle gpu);
}
}