Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
963 B

  1. //===== Copyright � 1996-2010, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //===========================================================================//
  8. #ifndef GPUMEMORYSTATS_H
  9. #define GPUMEMORYSTATS_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. //-----------------------------------------------------------------------------
  14. // Stats on GPU memory usage
  15. //-----------------------------------------------------------------------------
  16. struct GPUMemoryStats
  17. {
  18. unsigned int nTextureSize; // Art textures
  19. unsigned int nRTSize; // Render targets and other system textures
  20. unsigned int nVBSize; // Vertex Buffers
  21. unsigned int nIBSize; // Index Buffers
  22. unsigned int nUnknown; // Other... if this gets big, we need a new bin!
  23. unsigned int nGPUMemSize; // Total size of GPU memory
  24. unsigned int nGPUMemFree; // Free GPU memory (cross-reference w/ the other totals to measure wasted space)
  25. };
  26. #endif // GPUMEMORYSTATS_H