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.

407 lines
7.3 KiB

  1. //----------------------------------------------------------------------
  2. //
  3. // d3dxerr.h -- 0xC code definitions for the D3DX API
  4. //
  5. // Copyright (c) Microsoft Corp. All rights reserved.
  6. //
  7. //----------------------------------------------------------------------
  8. #ifndef __D3DXERR_H__
  9. #define __D3DXERR_H__
  10. //
  11. //
  12. // Values are 32 bit values layed out as follows:
  13. //
  14. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  15. // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  16. // +---+-+-+-----------------------+-------------------------------+
  17. // |Sev|C|R| Facility | Code |
  18. // +---+-+-+-----------------------+-------------------------------+
  19. //
  20. // where
  21. //
  22. // Sev - is the severity code
  23. //
  24. // 00 - Success
  25. // 01 - Informational
  26. // 10 - Warning
  27. // 11 - Error
  28. //
  29. // C - is the Customer code flag
  30. //
  31. // R - is a reserved bit
  32. //
  33. // Facility - is the facility code
  34. //
  35. // Code - is the facility's status code
  36. //
  37. //
  38. // Define the facility codes
  39. //
  40. #define FACILITY_D3DX 0x877
  41. //
  42. // MessageId: D3DXERR_NOMEMORY
  43. //
  44. // MessageText:
  45. //
  46. // Out of memory.
  47. //
  48. #define D3DXERR_NOMEMORY ((HRESULT)0xC8770BB8L)
  49. //
  50. // MessageId: D3DXERR_NULLPOINTER
  51. //
  52. // MessageText:
  53. //
  54. // A NULL pointer was passed as a parameter.
  55. //
  56. #define D3DXERR_NULLPOINTER ((HRESULT)0xC8770BB9L)
  57. //
  58. // MessageId: D3DXERR_INVALIDD3DXDEVICEINDEX
  59. //
  60. // MessageText:
  61. //
  62. // The Device Index passed in is invalid.
  63. //
  64. #define D3DXERR_INVALIDD3DXDEVICEINDEX ((HRESULT)0xC8770BBAL)
  65. //
  66. // MessageId: D3DXERR_NODIRECTDRAWAVAILABLE
  67. //
  68. // MessageText:
  69. //
  70. // DirectDraw has not been created.
  71. //
  72. #define D3DXERR_NODIRECTDRAWAVAILABLE ((HRESULT)0xC8770BBBL)
  73. //
  74. // MessageId: D3DXERR_NODIRECT3DAVAILABLE
  75. //
  76. // MessageText:
  77. //
  78. // Direct3D has not been created.
  79. //
  80. #define D3DXERR_NODIRECT3DAVAILABLE ((HRESULT)0xC8770BBCL)
  81. //
  82. // MessageId: D3DXERR_NODIRECT3DDEVICEAVAILABLE
  83. //
  84. // MessageText:
  85. //
  86. // Direct3D device has not been created.
  87. //
  88. #define D3DXERR_NODIRECT3DDEVICEAVAILABLE ((HRESULT)0xC8770BBDL)
  89. //
  90. // MessageId: D3DXERR_NOPRIMARYAVAILABLE
  91. //
  92. // MessageText:
  93. //
  94. // Primary surface has not been created.
  95. //
  96. #define D3DXERR_NOPRIMARYAVAILABLE ((HRESULT)0xC8770BBEL)
  97. //
  98. // MessageId: D3DXERR_NOZBUFFERAVAILABLE
  99. //
  100. // MessageText:
  101. //
  102. // Z buffer has not been created.
  103. //
  104. #define D3DXERR_NOZBUFFERAVAILABLE ((HRESULT)0xC8770BBFL)
  105. //
  106. // MessageId: D3DXERR_NOBACKBUFFERAVAILABLE
  107. //
  108. // MessageText:
  109. //
  110. // Backbuffer has not been created.
  111. //
  112. #define D3DXERR_NOBACKBUFFERAVAILABLE ((HRESULT)0xC8770BC0L)
  113. //
  114. // MessageId: D3DXERR_COULDNTUPDATECAPS
  115. //
  116. // MessageText:
  117. //
  118. // Failed to update caps database after changing display mode.
  119. //
  120. #define D3DXERR_COULDNTUPDATECAPS ((HRESULT)0xC8770BC1L)
  121. //
  122. // MessageId: D3DXERR_NOZBUFFER
  123. //
  124. // MessageText:
  125. //
  126. // Could not create Z buffer.
  127. //
  128. #define D3DXERR_NOZBUFFER ((HRESULT)0xC8770BC2L)
  129. //
  130. // MessageId: D3DXERR_INVALIDMODE
  131. //
  132. // MessageText:
  133. //
  134. // Display mode is not valid.
  135. //
  136. #define D3DXERR_INVALIDMODE ((HRESULT)0xC8770BC3L)
  137. //
  138. // MessageId: D3DXERR_INVALIDPARAMETER
  139. //
  140. // MessageText:
  141. //
  142. // One or more of the parameters passed is invalid.
  143. //
  144. #define D3DXERR_INVALIDPARAMETER ((HRESULT)0xC8770BC4L)
  145. //
  146. // MessageId: D3DXERR_INITFAILED
  147. //
  148. // MessageText:
  149. //
  150. // D3DX failed to initialize itself.
  151. //
  152. #define D3DXERR_INITFAILED ((HRESULT)0xC8770BC5L)
  153. //
  154. // MessageId: D3DXERR_STARTUPFAILED
  155. //
  156. // MessageText:
  157. //
  158. // D3DX failed to start up.
  159. //
  160. #define D3DXERR_STARTUPFAILED ((HRESULT)0xC8770BC6L)
  161. //
  162. // MessageId: D3DXERR_D3DXNOTSTARTEDYET
  163. //
  164. // MessageText:
  165. //
  166. // D3DXInitialize() must be called first.
  167. //
  168. #define D3DXERR_D3DXNOTSTARTEDYET ((HRESULT)0xC8770BC7L)
  169. //
  170. // MessageId: D3DXERR_NOTINITIALIZED
  171. //
  172. // MessageText:
  173. //
  174. // D3DX is not initialized yet.
  175. //
  176. #define D3DXERR_NOTINITIALIZED ((HRESULT)0xC8770BC8L)
  177. //
  178. // MessageId: D3DXERR_FAILEDDRAWTEXT
  179. //
  180. // MessageText:
  181. //
  182. // Failed to render text to the surface.
  183. //
  184. #define D3DXERR_FAILEDDRAWTEXT ((HRESULT)0xC8770BC9L)
  185. //
  186. // MessageId: D3DXERR_BADD3DXCONTEXT
  187. //
  188. // MessageText:
  189. //
  190. // Bad D3DX context.
  191. //
  192. #define D3DXERR_BADD3DXCONTEXT ((HRESULT)0xC8770BCAL)
  193. //
  194. // MessageId: D3DXERR_CAPSNOTSUPPORTED
  195. //
  196. // MessageText:
  197. //
  198. // The requested device capabilities are not supported.
  199. //
  200. #define D3DXERR_CAPSNOTSUPPORTED ((HRESULT)0xC8770BCBL)
  201. //
  202. // MessageId: D3DXERR_UNSUPPORTEDFILEFORMAT
  203. //
  204. // MessageText:
  205. //
  206. // The image file format is unrecognized.
  207. //
  208. #define D3DXERR_UNSUPPORTEDFILEFORMAT ((HRESULT)0xC8770BCCL)
  209. //
  210. // MessageId: D3DXERR_IFLERROR
  211. //
  212. // MessageText:
  213. //
  214. // The image file loading library error.
  215. //
  216. #define D3DXERR_IFLERROR ((HRESULT)0xC8770BCDL)
  217. //
  218. // MessageId: D3DXERR_FAILEDGETCAPS
  219. //
  220. // MessageText:
  221. //
  222. // Could not obtain device caps.
  223. //
  224. #define D3DXERR_FAILEDGETCAPS ((HRESULT)0xC8770BCEL)
  225. //
  226. // MessageId: D3DXERR_CANNOTRESIZEFULLSCREEN
  227. //
  228. // MessageText:
  229. //
  230. // Resize does not work for full-screen.
  231. //
  232. #define D3DXERR_CANNOTRESIZEFULLSCREEN ((HRESULT)0xC8770BCFL)
  233. //
  234. // MessageId: D3DXERR_CANNOTRESIZENONWINDOWED
  235. //
  236. // MessageText:
  237. //
  238. // Resize does not work for non-windowed contexts.
  239. //
  240. #define D3DXERR_CANNOTRESIZENONWINDOWED ((HRESULT)0xC8770BD0L)
  241. //
  242. // MessageId: D3DXERR_FRONTBUFFERALREADYEXISTS
  243. //
  244. // MessageText:
  245. //
  246. // Front buffer already exists.
  247. //
  248. #define D3DXERR_FRONTBUFFERALREADYEXISTS ((HRESULT)0xC8770BD1L)
  249. //
  250. // MessageId: D3DXERR_FULLSCREENPRIMARYEXISTS
  251. //
  252. // MessageText:
  253. //
  254. // The app is using the primary in full-screen mode.
  255. //
  256. #define D3DXERR_FULLSCREENPRIMARYEXISTS ((HRESULT)0xC8770BD2L)
  257. //
  258. // MessageId: D3DXERR_GETDCFAILED
  259. //
  260. // MessageText:
  261. //
  262. // Could not get device context.
  263. //
  264. #define D3DXERR_GETDCFAILED ((HRESULT)0xC8770BD3L)
  265. //
  266. // MessageId: D3DXERR_BITBLTFAILED
  267. //
  268. // MessageText:
  269. //
  270. // Could not bitBlt.
  271. //
  272. #define D3DXERR_BITBLTFAILED ((HRESULT)0xC8770BD4L)
  273. //
  274. // MessageId: D3DXERR_NOTEXTURE
  275. //
  276. // MessageText:
  277. //
  278. // There is no surface backing up this texture.
  279. //
  280. #define D3DXERR_NOTEXTURE ((HRESULT)0xC8770BD5L)
  281. //
  282. // MessageId: D3DXERR_MIPLEVELABSENT
  283. //
  284. // MessageText:
  285. //
  286. // There is no such miplevel for this surface.
  287. //
  288. #define D3DXERR_MIPLEVELABSENT ((HRESULT)0xC8770BD6L)
  289. //
  290. // MessageId: D3DXERR_SURFACENOTPALETTED
  291. //
  292. // MessageText:
  293. //
  294. // The surface is not paletted.
  295. //
  296. #define D3DXERR_SURFACENOTPALETTED ((HRESULT)0xC8770BD7L)
  297. //
  298. // MessageId: D3DXERR_ENUMFORMATSFAILED
  299. //
  300. // MessageText:
  301. //
  302. // An error occured while enumerating surface formats.
  303. //
  304. #define D3DXERR_ENUMFORMATSFAILED ((HRESULT)0xC8770BD8L)
  305. //
  306. // MessageId: D3DXERR_COLORDEPTHTOOLOW
  307. //
  308. // MessageText:
  309. //
  310. // D3DX only supports color depths of 16 bit or greater.
  311. //
  312. #define D3DXERR_COLORDEPTHTOOLOW ((HRESULT)0xC8770BD9L)
  313. //
  314. // MessageId: D3DXERR_INVALIDFILEFORMAT
  315. //
  316. // MessageText:
  317. //
  318. // The file format is invalid.
  319. //
  320. #define D3DXERR_INVALIDFILEFORMAT ((HRESULT)0xC8770BDAL)
  321. //
  322. // MessageId: D3DXERR_NOMATCHFOUND
  323. //
  324. // MessageText:
  325. //
  326. // No suitable match found.
  327. //
  328. #define D3DXERR_NOMATCHFOUND ((HRESULT)0xC8770BDBL)
  329. #endif //__D3DXERR_H__