Safe Haskell | None |
---|---|
Language | Haskell2010 |
Retrieve video memory information.
- getMemoryInfo :: IO MemoryInfo
- data MemoryInfo = MemoryInfo {
- availableVideoMemory :: !(Maybe Int)
- totalVideoMemory :: !(Maybe Int)
Documentation
getMemoryInfo :: IO MemoryInfo Source
Returns information about current state of video memory.
There is no guarantee that all, or even any information is actually returned. You need either 'GL_ATI_meminfo' or 'GL_NVX_gpu_memory_info' extension to get any results.
No guarantees for accuracy either. Seriously, don't rely on this for anything but rough estimation.