summaryrefslogtreecommitdiffstats
path: root/tools/gfx/nvapi/nvapi-include.h
blob: 45a8ca77be7472cef7e6318d1c57eec765b6fed0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// nvapi-include.h
#pragma once

// A helper that makes the NVAPI available across targets

#ifdef GFX_NVAPI
// On windows if we include NVAPI, we must include windows.h first

#ifdef _WIN32
#pragma push_macro("WIN32_LEAN_AND_MEAN")
#pragma push_macro("NOMINMAX")
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#undef NOMINMAX
#define NOMINMAX
#include <windows.h>
#pragma pop_macro("NOMINMAX")
#pragma pop_macro("WIN32_LEAN_AND_MEAN")
#endif

#include <nvShaderExtnEnums.h>
#include <nvapi.h>

#endif