MeVisLab Toolbox Reference
macGPUInfo.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef MAC_GPUINFO_H
14 #define MAC_GPUINFO_H
15 
17 
18 #if defined(__APPLE__)
19 
21 #include <utility>
22 #include <stdint.h>
23 
24 namespace macos {
25 
28  {
29  public:
30 
33 
35 
37  static std::pair<uint32_t,uint32_t> getGPUMemoryInfoInMB();
38  };
39 
40 }
41 
42 #endif // __APPLE__
43 #endif // __macGPUInfo_H
Graphics card information.
Definition: macGPUInfo.h:28
static std::pair< uint32_t, uint32_t > getGPUMemoryInfoInMB()
Determine the amount of video memory and texture memory that is available to the accelerated renderer...
static bool drawingStateWillExecInHardware()
Determine if your current drawing state will execute in the GPU (vertex + fragment processing)
#define OSXSUPPORT_PUBLIC_API
Symbol visibility macros.
AppleScript support.