diff options
Diffstat (limited to 'tools/gfx/nvapi/nvapi-util.h')
| -rw-r--r-- | tools/gfx/nvapi/nvapi-util.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/gfx/nvapi/nvapi-util.h b/tools/gfx/nvapi/nvapi-util.h new file mode 100644 index 000000000..704f4ede4 --- /dev/null +++ b/tools/gfx/nvapi/nvapi-util.h @@ -0,0 +1,19 @@ +// nvapi-util.h +#pragma once + +#include "../../slang-com-helper.h" +#include "../../slang-com-ptr.h" + +namespace gfx { + +struct NVAPIUtil +{ + /// Set up NVAPI for use. Must be called before any other function is used. + static SlangResult initialize(); + /// True if the NVAPI is available, can be called even if initialize fails. + /// If initialize has not been called will return false + static bool isAvailable(); +}; + + +} // gfx |
