MCPcopy Create free account
hub / github.com/baldurk/renderdoc / Load

Method Load

renderdoc/driver/ihv/intel/intel_counters.cpp:67–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void IntelCounters::Load()
68{
69 if(m_metricsDevice)
70 return;
71
72 m_MDLibraryHandle = (void *)LoadDynamicLibrary(L"igdmd64.dll", NULL, 0);
73 if(!m_MDLibraryHandle)
74 return;
75
76 OpenMetricsDevice =
77 (OpenMetricsDevice_fn)GetProcAddress((HMODULE)m_MDLibraryHandle, "OpenMetricsDevice");
78 if(!OpenMetricsDevice)
79 return;
80
81 CloseMetricsDevice =
82 (CloseMetricsDevice_fn)GetProcAddress((HMODULE)m_MDLibraryHandle, "CloseMetricsDevice");
83 if(!CloseMetricsDevice)
84 return;
85
86 OpenMetricsDevice(&m_metricsDevice);
87}
88
89bool IntelCounters::Init(void *pContext)
90{

Callers 4

IsUntrustedFileFunction · 0.45
SampleTextureUInt4Function · 0.45
SampleTextureInt4Function · 0.45
SampleTextureFloat4Function · 0.45

Calls 1

LoadDynamicLibraryFunction · 0.85

Tested by

no test coverage detected