nvapi_sys/
handles.rs

1use std::os::raw::c_void;
2
3nv_declare_handle! {
4    /// One or more physical GPUs acting in concert (SLI)
5    NvLogicalGpuHandle
6}
7
8nv_declare_handle! {
9    /// A single physical GPU
10    NvPhysicalGpuHandle
11}
12
13nv_declare_handle! {
14    /// Display Device driven by NVIDIA GPU(s) (an attached display)
15    NvDisplayHandle
16}
17
18nv_declare_handle! {
19    /// Monitor handle
20    NvMonitorHandle
21}
22
23nv_declare_handle! {
24    /// Unattached Display Device driven by NVIDIA GPU(s)
25    NvUnAttachedDisplayHandle
26}
27
28nv_declare_handle! {
29    /// A handle to an event registration instance
30    NvEventHandle
31}
32
33nv_declare_handle! {
34    /// A handle to a Visual Computing Device
35    NvVisualComputingDeviceHandle
36}
37
38nv_declare_handle! {
39    /// A handle to a Host Interface Card
40    NvHICHandle
41}
42
43nv_declare_handle! {
44    /// A handle to a Sync device
45    NvGSyncDeviceHandle
46}
47
48nv_declare_handle! {
49    /// A handle to an SDI device
50    NvVioHandle
51}
52
53nv_declare_handle! {
54    /// A handle to address a single transition request
55    NvTransitionHandle
56}
57
58nv_declare_handle! {
59    /// NVIDIA HD Audio Device
60    NvAudioHandle
61}
62
63nv_declare_handle! {
64    /// A handle for a 3D Vision Pro (3DVP) context
65    Nv3DVPContextHandle
66}
67
68nv_declare_handle! {
69    /// A handle for a 3DVP RF transceiver
70    Nv3DVPTransceiverHandle
71}
72
73nv_declare_handle! {
74    /// A handle for a pair of 3DVP RF shutter glasses
75    Nv3DVPGlassesHandle
76}
77
78/// A stereo handle, that corresponds to the device interface
79pub type StereoHandle = *const c_void;
80
81nv_declare_handle! {
82    /// Unique source handle on the system
83    NvSourceHandle
84}
85
86nv_declare_handle! {
87    /// Unique target handle on the system
88    NvTargetHandle
89}
90
91nv_declare_handle! {
92    /// DirectX SwapChain objects
93    NVDX_SwapChainHandle
94}
95
96pub const NVDX_SWAPCHAIN_NONE: NVDX_SwapChainHandle = NVDX_SwapChainHandle(0 as *const _);
97
98pub const NVAPI_DEFAULT_HANDLE: usize = 0;