summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/src/nvapi.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/src/nvapi.h')
-rw-r--r--3rdparty/bgfx/src/nvapi.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/3rdparty/bgfx/src/nvapi.h b/3rdparty/bgfx/src/nvapi.h
new file mode 100644
index 00000000000..ce08052b3aa
--- /dev/null
+++ b/3rdparty/bgfx/src/nvapi.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2011-2017 Branimir Karadzic. All rights reserved.
+ * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
+ */
+
+#ifndef BGFX_NVAPI_H_HEADER_GUARD
+#define BGFX_NVAPI_H_HEADER_GUARD
+
+namespace bgfx
+{
+ struct NvPhysicalGpuHandle;
+
+ ///
+ struct NvApi
+ {
+ ///
+ NvApi();
+
+ ///
+ void init();
+
+ ///
+ void shutdown();
+
+ ///
+ void getMemoryInfo(int64_t& _gpuMemoryUsed, int64_t& _gpuMemoryMax);
+
+ void* m_nvApiDll;
+ NvPhysicalGpuHandle* m_nvGpu;
+ };
+
+} // namespace bgfx
+
+#endif // BGFX_NVAPI_H_HEADER_GUARD