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.

154 lines
3.0 KiB

  1. //========= Copyright � 1996-2007, Valve LLC, All rights reserved. ============
  2. //
  3. // Purpose: XBox VXConsole Common. Used for public remote access items.
  4. //
  5. //=============================================================================
  6. #pragma once
  7. // sent during connection, used to explicitly guarantee a binary compatibility
  8. #define VXCONSOLE_PROTOCOL_VERSION 300
  9. typedef struct
  10. {
  11. char labelString[128];
  12. COLORREF color;
  13. } xrProfile_t;
  14. typedef struct
  15. {
  16. char messageString[256];
  17. float time;
  18. float deltaTime;
  19. size_t memory;
  20. int deltaMemory;
  21. } xrTimeStamp_t;
  22. typedef struct
  23. {
  24. char nameString[256];
  25. char shaderString[256];
  26. int refCount;
  27. } xrMaterial_t;
  28. enum cacheableState_e
  29. {
  30. CS_STATIC = 0, // texture is not lru managed
  31. CS_EVICTED, // texture mip0 is not in memory
  32. CS_LOADING, // texture mip0 is loading
  33. CS_VALID, // texture mip0 is valid for rendering
  34. CS_MAX
  35. };
  36. typedef struct
  37. {
  38. char nameString[256];
  39. char groupString[64];
  40. char formatString[64];
  41. int size;
  42. int width;
  43. int height;
  44. int depth;
  45. int numLevels;
  46. int binds;
  47. int refCount;
  48. int sRGB;
  49. int edram;
  50. int procedural;
  51. int cacheableState;
  52. int cacheableSize : 31; // Packing avoids game-to-vxconsole protocol version conflict
  53. int final : 1;
  54. int failed;
  55. int pwl;
  56. int reduced;
  57. } xrTexture_t;
  58. typedef struct
  59. {
  60. char nameString[256];
  61. char formatString[64];
  62. int rate;
  63. int bits;
  64. int channels;
  65. int looped;
  66. int dataSize;
  67. int numSamples;
  68. int streamed;
  69. int quality;
  70. } xrSound_t;
  71. typedef struct
  72. {
  73. char nameString[128];
  74. char helpString[256];
  75. } xrCommand_t;
  76. typedef struct
  77. {
  78. float position[3];
  79. float angle[3];
  80. char mapPath[256];
  81. char savePath[256];
  82. int build;
  83. int skill;
  84. char details[1024];
  85. } xrMapInfo_t;
  86. typedef struct
  87. {
  88. int BSPSize;
  89. } xrBudgetInfo_t;
  90. struct xrModel_t
  91. {
  92. char nameString[256];
  93. int dataSize;
  94. int numVertices;
  95. int triCount;
  96. int dataSizeLod0;
  97. int numVerticesLod0;
  98. int triCountLod0;
  99. int numBones;
  100. int numParts;
  101. int numLODs;
  102. int numMeshes;
  103. };
  104. struct xrDataCacheItem_t
  105. {
  106. char nameString[256];
  107. char sectionString[64];
  108. int size;
  109. int lockCount;
  110. unsigned int clientId;
  111. unsigned int itemData;
  112. unsigned int handle;
  113. };
  114. struct xrVProfNodeItem_t
  115. {
  116. char nameString[128];
  117. char budgetGroupString[128];
  118. unsigned int budgetGroupColor;
  119. unsigned int totalCalls;
  120. double inclusiveTime;
  121. double exclusiveTime;
  122. };
  123. // Types of action taken in response to an rc_Assert() message
  124. enum AssertAction_t
  125. {
  126. ASSERT_ACTION_BREAK = 0, // Break on this Assert
  127. ASSERT_ACTION_IGNORE_THIS, // Ignore this Assert once
  128. ASSERT_ACTION_IGNORE_ALWAYS, // Ignore this Assert from now on
  129. ASSERT_ACTION_IGNORE_FILE, // Ignore all Asserts from this file from now on
  130. ASSERT_ACTION_IGNORE_ALL, // Ignore all Asserts from now on
  131. ASSERT_ACTION_OTHER // A more complex response requiring additional data (e.g. "ignore this Assert 5 times")
  132. };
  133. //id's for dispatching binary notifications to proper handlers
  134. enum XBX_DBGBinaryNotification_HandlerID_t
  135. {
  136. XBX_DBG_BNH_STACKTRANSLATOR,
  137. XBX_DBG_BNH_END,
  138. };