MCPcopy Create free account
hub / github.com/3Shain/dxmt / NvAPI_Initialize

Function NvAPI_Initialize

src/nvapi/nvapi.cpp:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19static std::atomic_uint32_t s_initialization_count = 0;
20
21NVAPI_INTERFACE
22NvAPI_Initialize() {
23 if (FAILED(DXGIGetDebugInterface1(0, DXMT_NVEXT_GUID, nullptr))) {
24 return NVAPI_NVIDIA_DEVICE_NOT_FOUND;
25 }
26 s_initialization_count++;
27 return NVAPI_OK;
28};
29
30NVAPI_INTERFACE
31NvAPI_Unload() {

Callers

nothing calls this directly

Calls 1

DXGIGetDebugInterface1Function · 0.85

Tested by

no test coverage detected