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.

203 lines
3.8 KiB

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