summaryrefslogtreecommitdiffstats
path: root/tools/gfx/nvapi/nvapi-util.h
blob: 7715df8c61789a4b5090e798162d6ab0bbfe1112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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();
};


} // namespace gfx