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.

512 lines
22 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: d3d9caps.h
  6. * Content: Direct3D capabilities include file
  7. *
  8. ***************************************************************************/
  9. #ifndef _d3d9CAPS_H
  10. #define _d3d9CAPS_H
  11. #ifndef DIRECT3D_VERSION
  12. #define DIRECT3D_VERSION 0x0900
  13. #endif //DIRECT3D_VERSION
  14. // include this file content only if compiling for DX9 interfaces
  15. #if(DIRECT3D_VERSION >= 0x0900)
  16. #if defined(_X86_) || defined(_IA64_)
  17. #pragma pack(4)
  18. #endif
  19. typedef struct _D3DVSHADERCAPS2_0
  20. {
  21. DWORD Caps;
  22. INT DynamicFlowControlDepth;
  23. INT NumTemps;
  24. INT StaticFlowControlDepth;
  25. } D3DVSHADERCAPS2_0;
  26. #define D3DVS20CAPS_PREDICATION (1<<0)
  27. #define D3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH 24
  28. #define D3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH 0
  29. #define D3DVS20_MAX_NUMTEMPS 32
  30. #define D3DVS20_MIN_NUMTEMPS 12
  31. #define D3DVS20_MAX_STATICFLOWCONTROLDEPTH 4
  32. #define D3DVS20_MIN_STATICFLOWCONTROLDEPTH 1
  33. typedef struct _D3DPSHADERCAPS2_0
  34. {
  35. DWORD Caps;
  36. INT DynamicFlowControlDepth;
  37. INT NumTemps;
  38. INT StaticFlowControlDepth;
  39. INT NumInstructionSlots;
  40. } D3DPSHADERCAPS2_0;
  41. #define D3DPS20CAPS_ARBITRARYSWIZZLE (1<<0)
  42. #define D3DPS20CAPS_GRADIENTINSTRUCTIONS (1<<1)
  43. #define D3DPS20CAPS_PREDICATION (1<<2)
  44. #define D3DPS20CAPS_NODEPENDENTREADLIMIT (1<<3)
  45. #define D3DPS20CAPS_NOTEXINSTRUCTIONLIMIT (1<<4)
  46. #define D3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH 24
  47. #define D3DPS20_MIN_DYNAMICFLOWCONTROLDEPTH 0
  48. #define D3DPS20_MAX_NUMTEMPS 32
  49. #define D3DPS20_MIN_NUMTEMPS 12
  50. #define D3DPS20_MAX_STATICFLOWCONTROLDEPTH 4
  51. #define D3DPS20_MIN_STATICFLOWCONTROLDEPTH 0
  52. #define D3DPS20_MAX_NUMINSTRUCTIONSLOTS 512
  53. #define D3DPS20_MIN_NUMINSTRUCTIONSLOTS 96
  54. #define D3DMIN30SHADERINSTRUCTIONS 512
  55. #define D3DMAX30SHADERINSTRUCTIONS 32768
  56. typedef struct _D3DCAPS9
  57. {
  58. /* Device Info */
  59. D3DDEVTYPE DeviceType;
  60. UINT AdapterOrdinal;
  61. /* Caps from DX7 Draw */
  62. DWORD Caps;
  63. DWORD Caps2;
  64. DWORD Caps3;
  65. DWORD PresentationIntervals;
  66. /* Cursor Caps */
  67. DWORD CursorCaps;
  68. /* 3D Device Caps */
  69. DWORD DevCaps;
  70. DWORD PrimitiveMiscCaps;
  71. DWORD RasterCaps;
  72. DWORD ZCmpCaps;
  73. DWORD SrcBlendCaps;
  74. DWORD DestBlendCaps;
  75. DWORD AlphaCmpCaps;
  76. DWORD ShadeCaps;
  77. DWORD TextureCaps;
  78. DWORD TextureFilterCaps; // D3DPTFILTERCAPS for IDirect3DTexture9's
  79. DWORD CubeTextureFilterCaps; // D3DPTFILTERCAPS for IDirect3DCubeTexture9's
  80. DWORD VolumeTextureFilterCaps; // D3DPTFILTERCAPS for IDirect3DVolumeTexture9's
  81. DWORD TextureAddressCaps; // D3DPTADDRESSCAPS for IDirect3DTexture9's
  82. DWORD VolumeTextureAddressCaps; // D3DPTADDRESSCAPS for IDirect3DVolumeTexture9's
  83. DWORD LineCaps; // D3DLINECAPS
  84. DWORD MaxTextureWidth, MaxTextureHeight;
  85. DWORD MaxVolumeExtent;
  86. DWORD MaxTextureRepeat;
  87. DWORD MaxTextureAspectRatio;
  88. DWORD MaxAnisotropy;
  89. float MaxVertexW;
  90. float GuardBandLeft;
  91. float GuardBandTop;
  92. float GuardBandRight;
  93. float GuardBandBottom;
  94. float ExtentsAdjust;
  95. DWORD StencilCaps;
  96. DWORD FVFCaps;
  97. DWORD TextureOpCaps;
  98. DWORD MaxTextureBlendStages;
  99. DWORD MaxSimultaneousTextures;
  100. DWORD VertexProcessingCaps;
  101. DWORD MaxActiveLights;
  102. DWORD MaxUserClipPlanes;
  103. DWORD MaxVertexBlendMatrices;
  104. DWORD MaxVertexBlendMatrixIndex;
  105. float MaxPointSize;
  106. DWORD MaxPrimitiveCount; // max number of primitives per DrawPrimitive call
  107. DWORD MaxVertexIndex;
  108. DWORD MaxStreams;
  109. DWORD MaxStreamStride; // max stride for SetStreamSource
  110. DWORD VertexShaderVersion;
  111. DWORD MaxVertexShaderConst; // number of vertex shader constant registers
  112. DWORD PixelShaderVersion;
  113. float PixelShader1xMaxValue; // max value storable in registers of ps.1.x shaders
  114. // Here are the DX9 specific ones
  115. DWORD DevCaps2;
  116. float MaxNpatchTessellationLevel;
  117. DWORD Reserved5;
  118. UINT MasterAdapterOrdinal; // ordinal of master adaptor for adapter group
  119. UINT AdapterOrdinalInGroup; // ordinal inside the adapter group
  120. UINT NumberOfAdaptersInGroup; // number of adapters in this adapter group (only if master)
  121. DWORD DeclTypes; // Data types, supported in vertex declarations
  122. DWORD NumSimultaneousRTs; // Will be at least 1
  123. DWORD StretchRectFilterCaps; // Filter caps supported by StretchRect
  124. D3DVSHADERCAPS2_0 VS20Caps;
  125. D3DPSHADERCAPS2_0 PS20Caps;
  126. DWORD VertexTextureFilterCaps; // D3DPTFILTERCAPS for IDirect3DTexture9's for texture, used in vertex shaders
  127. DWORD MaxVShaderInstructionsExecuted; // maximum number of vertex shader instructions that can be executed
  128. DWORD MaxPShaderInstructionsExecuted; // maximum number of pixel shader instructions that can be executed
  129. DWORD MaxVertexShader30InstructionSlots;
  130. DWORD MaxPixelShader30InstructionSlots;
  131. } D3DCAPS9;
  132. //
  133. // BIT DEFINES FOR D3DCAPS9 DWORD MEMBERS
  134. //
  135. //
  136. // Caps
  137. //
  138. #define D3DCAPS_READ_SCANLINE 0x00020000L
  139. //
  140. // Caps2
  141. //
  142. #define D3DCAPS2_FULLSCREENGAMMA 0x00020000L
  143. #define D3DCAPS2_CANCALIBRATEGAMMA 0x00100000L
  144. #define D3DCAPS2_RESERVED 0x02000000L
  145. #define D3DCAPS2_CANMANAGERESOURCE 0x10000000L
  146. #define D3DCAPS2_DYNAMICTEXTURES 0x20000000L
  147. #define D3DCAPS2_CANAUTOGENMIPMAP 0x40000000L
  148. /* D3D9Ex only -- */
  149. #if !defined(D3D_DISABLE_9EX)
  150. #define D3DCAPS2_CANSHARERESOURCE 0x80000000L
  151. #endif // !D3D_DISABLE_9EX
  152. /* -- D3D9Ex only */
  153. //
  154. // Caps3
  155. //
  156. #define D3DCAPS3_RESERVED 0x8000001fL
  157. // Indicates that the device can respect the ALPHABLENDENABLE render state
  158. // when fullscreen while using the FLIP or DISCARD swap effect.
  159. // COPY and COPYVSYNC swap effects work whether or not this flag is set.
  160. #define D3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD 0x00000020L
  161. // Indicates that the device can perform a gamma correction from
  162. // a windowed back buffer containing linear content to the sRGB desktop.
  163. #define D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION 0x00000080L
  164. #define D3DCAPS3_COPY_TO_VIDMEM 0x00000100L /* Device can acclerate copies from sysmem to local vidmem */
  165. #define D3DCAPS3_COPY_TO_SYSTEMMEM 0x00000200L /* Device can acclerate copies from local vidmem to sysmem */
  166. //
  167. // PresentationIntervals
  168. //
  169. #define D3DPRESENT_INTERVAL_DEFAULT 0x00000000L
  170. #define D3DPRESENT_INTERVAL_ONE 0x00000001L
  171. #define D3DPRESENT_INTERVAL_TWO 0x00000002L
  172. #define D3DPRESENT_INTERVAL_THREE 0x00000004L
  173. #define D3DPRESENT_INTERVAL_FOUR 0x00000008L
  174. #define D3DPRESENT_INTERVAL_IMMEDIATE 0x80000000L
  175. //
  176. // CursorCaps
  177. //
  178. // Driver supports HW color cursor in at least hi-res modes(height >=400)
  179. #define D3DCURSORCAPS_COLOR 0x00000001L
  180. // Driver supports HW cursor also in low-res modes(height < 400)
  181. #define D3DCURSORCAPS_LOWRES 0x00000002L
  182. //
  183. // DevCaps
  184. //
  185. #define D3DDEVCAPS_EXECUTESYSTEMMEMORY 0x00000010L /* Device can use execute buffers from system memory */
  186. #define D3DDEVCAPS_EXECUTEVIDEOMEMORY 0x00000020L /* Device can use execute buffers from video memory */
  187. #define D3DDEVCAPS_TLVERTEXSYSTEMMEMORY 0x00000040L /* Device can use TL buffers from system memory */
  188. #define D3DDEVCAPS_TLVERTEXVIDEOMEMORY 0x00000080L /* Device can use TL buffers from video memory */
  189. #define D3DDEVCAPS_TEXTURESYSTEMMEMORY 0x00000100L /* Device can texture from system memory */
  190. #define D3DDEVCAPS_TEXTUREVIDEOMEMORY 0x00000200L /* Device can texture from device memory */
  191. #define D3DDEVCAPS_DRAWPRIMTLVERTEX 0x00000400L /* Device can draw TLVERTEX primitives */
  192. #define D3DDEVCAPS_CANRENDERAFTERFLIP 0x00000800L /* Device can render without waiting for flip to complete */
  193. #define D3DDEVCAPS_TEXTURENONLOCALVIDMEM 0x00001000L /* Device can texture from nonlocal video memory */
  194. #define D3DDEVCAPS_DRAWPRIMITIVES2 0x00002000L /* Device can support DrawPrimitives2 */
  195. #define D3DDEVCAPS_SEPARATETEXTUREMEMORIES 0x00004000L /* Device is texturing from separate memory pools */
  196. #define D3DDEVCAPS_DRAWPRIMITIVES2EX 0x00008000L /* Device can support Extended DrawPrimitives2 i.e. DX7 compliant driver*/
  197. #define D3DDEVCAPS_HWTRANSFORMANDLIGHT 0x00010000L /* Device can support transformation and lighting in hardware and DRAWPRIMITIVES2EX must be also */
  198. #define D3DDEVCAPS_CANBLTSYSTONONLOCAL 0x00020000L /* Device supports a Tex Blt from system memory to non-local vidmem */
  199. #define D3DDEVCAPS_HWRASTERIZATION 0x00080000L /* Device has HW acceleration for rasterization */
  200. #define D3DDEVCAPS_PUREDEVICE 0x00100000L /* Device supports D3DCREATE_PUREDEVICE */
  201. #define D3DDEVCAPS_QUINTICRTPATCHES 0x00200000L /* Device supports quintic Beziers and BSplines */
  202. #define D3DDEVCAPS_RTPATCHES 0x00400000L /* Device supports Rect and Tri patches */
  203. #define D3DDEVCAPS_RTPATCHHANDLEZERO 0x00800000L /* Indicates that RT Patches may be drawn efficiently using handle 0 */
  204. #define D3DDEVCAPS_NPATCHES 0x01000000L /* Device supports N-Patches */
  205. //
  206. // PrimitiveMiscCaps
  207. //
  208. #define D3DPMISCCAPS_MASKZ 0x00000002L
  209. #define D3DPMISCCAPS_CULLNONE 0x00000010L
  210. #define D3DPMISCCAPS_CULLCW 0x00000020L
  211. #define D3DPMISCCAPS_CULLCCW 0x00000040L
  212. #define D3DPMISCCAPS_COLORWRITEENABLE 0x00000080L
  213. #define D3DPMISCCAPS_CLIPPLANESCALEDPOINTS 0x00000100L /* Device correctly clips scaled points to clip planes */
  214. #define D3DPMISCCAPS_CLIPTLVERTS 0x00000200L /* device will clip post-transformed vertex primitives */
  215. #define D3DPMISCCAPS_TSSARGTEMP 0x00000400L /* device supports D3DTA_TEMP for temporary register */
  216. #define D3DPMISCCAPS_BLENDOP 0x00000800L /* device supports D3DRS_BLENDOP */
  217. #define D3DPMISCCAPS_NULLREFERENCE 0x00001000L /* Reference Device that doesnt render */
  218. #define D3DPMISCCAPS_INDEPENDENTWRITEMASKS 0x00004000L /* Device supports independent write masks for MET or MRT */
  219. #define D3DPMISCCAPS_PERSTAGECONSTANT 0x00008000L /* Device supports per-stage constants */
  220. #define D3DPMISCCAPS_FOGANDSPECULARALPHA 0x00010000L /* Device supports separate fog and specular alpha (many devices
  221. use the specular alpha channel to store fog factor) */
  222. #define D3DPMISCCAPS_SEPARATEALPHABLEND 0x00020000L /* Device supports separate blend settings for the alpha channel */
  223. #define D3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS 0x00040000L /* Device supports different bit depths for MRT */
  224. #define D3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING 0x00080000L /* Device supports post-pixel shader operations for MRT */
  225. #define D3DPMISCCAPS_FOGVERTEXCLAMPED 0x00100000L /* Device clamps fog blend factor per vertex */
  226. /* D3D9Ex only -- */
  227. #if !defined(D3D_DISABLE_9EX)
  228. #define D3DPMISCCAPS_POSTBLENDSRGBCONVERT 0x00200000L /* Indicates device can perform conversion to sRGB after blending. */
  229. #endif // !D3D_DISABLE_9EX
  230. /* -- D3D9Ex only */
  231. //
  232. // LineCaps
  233. //
  234. #define D3DLINECAPS_TEXTURE 0x00000001L
  235. #define D3DLINECAPS_ZTEST 0x00000002L
  236. #define D3DLINECAPS_BLEND 0x00000004L
  237. #define D3DLINECAPS_ALPHACMP 0x00000008L
  238. #define D3DLINECAPS_FOG 0x00000010L
  239. #define D3DLINECAPS_ANTIALIAS 0x00000020L
  240. //
  241. // RasterCaps
  242. //
  243. #define D3DPRASTERCAPS_DITHER 0x00000001L
  244. #define D3DPRASTERCAPS_ZTEST 0x00000010L
  245. #define D3DPRASTERCAPS_FOGVERTEX 0x00000080L
  246. #define D3DPRASTERCAPS_FOGTABLE 0x00000100L
  247. #define D3DPRASTERCAPS_MIPMAPLODBIAS 0x00002000L
  248. #define D3DPRASTERCAPS_ZBUFFERLESSHSR 0x00008000L
  249. #define D3DPRASTERCAPS_FOGRANGE 0x00010000L
  250. #define D3DPRASTERCAPS_ANISOTROPY 0x00020000L
  251. #define D3DPRASTERCAPS_WBUFFER 0x00040000L
  252. #define D3DPRASTERCAPS_WFOG 0x00100000L
  253. #define D3DPRASTERCAPS_ZFOG 0x00200000L
  254. #define D3DPRASTERCAPS_COLORPERSPECTIVE 0x00400000L /* Device iterates colors perspective correct */
  255. #define D3DPRASTERCAPS_SCISSORTEST 0x01000000L
  256. #define D3DPRASTERCAPS_SLOPESCALEDEPTHBIAS 0x02000000L
  257. #define D3DPRASTERCAPS_DEPTHBIAS 0x04000000L
  258. #define D3DPRASTERCAPS_MULTISAMPLE_TOGGLE 0x08000000L
  259. //
  260. // ZCmpCaps, AlphaCmpCaps
  261. //
  262. #define D3DPCMPCAPS_NEVER 0x00000001L
  263. #define D3DPCMPCAPS_LESS 0x00000002L
  264. #define D3DPCMPCAPS_EQUAL 0x00000004L
  265. #define D3DPCMPCAPS_LESSEQUAL 0x00000008L
  266. #define D3DPCMPCAPS_GREATER 0x00000010L
  267. #define D3DPCMPCAPS_NOTEQUAL 0x00000020L
  268. #define D3DPCMPCAPS_GREATEREQUAL 0x00000040L
  269. #define D3DPCMPCAPS_ALWAYS 0x00000080L
  270. //
  271. // SourceBlendCaps, DestBlendCaps
  272. //
  273. #define D3DPBLENDCAPS_ZERO 0x00000001L
  274. #define D3DPBLENDCAPS_ONE 0x00000002L
  275. #define D3DPBLENDCAPS_SRCCOLOR 0x00000004L
  276. #define D3DPBLENDCAPS_INVSRCCOLOR 0x00000008L
  277. #define D3DPBLENDCAPS_SRCALPHA 0x00000010L
  278. #define D3DPBLENDCAPS_INVSRCALPHA 0x00000020L
  279. #define D3DPBLENDCAPS_DESTALPHA 0x00000040L
  280. #define D3DPBLENDCAPS_INVDESTALPHA 0x00000080L
  281. #define D3DPBLENDCAPS_DESTCOLOR 0x00000100L
  282. #define D3DPBLENDCAPS_INVDESTCOLOR 0x00000200L
  283. #define D3DPBLENDCAPS_SRCALPHASAT 0x00000400L
  284. #define D3DPBLENDCAPS_BOTHSRCALPHA 0x00000800L
  285. #define D3DPBLENDCAPS_BOTHINVSRCALPHA 0x00001000L
  286. #define D3DPBLENDCAPS_BLENDFACTOR 0x00002000L /* Supports both D3DBLEND_BLENDFACTOR and D3DBLEND_INVBLENDFACTOR */
  287. /* D3D9Ex only -- */
  288. #if !defined(D3D_DISABLE_9EX)
  289. #define D3DPBLENDCAPS_SRCCOLOR2 0x00004000L
  290. #define D3DPBLENDCAPS_INVSRCCOLOR2 0x00008000L
  291. #endif // !D3D_DISABLE_9EX
  292. /* -- D3D9Ex only */
  293. //
  294. // ShadeCaps
  295. //
  296. #define D3DPSHADECAPS_COLORGOURAUDRGB 0x00000008L
  297. #define D3DPSHADECAPS_SPECULARGOURAUDRGB 0x00000200L
  298. #define D3DPSHADECAPS_ALPHAGOURAUDBLEND 0x00004000L
  299. #define D3DPSHADECAPS_FOGGOURAUD 0x00080000L
  300. //
  301. // TextureCaps
  302. //
  303. #define D3DPTEXTURECAPS_PERSPECTIVE 0x00000001L /* Perspective-correct texturing is supported */
  304. #define D3DPTEXTURECAPS_POW2 0x00000002L /* Power-of-2 texture dimensions are required - applies to non-Cube/Volume textures only. */
  305. #define D3DPTEXTURECAPS_ALPHA 0x00000004L /* Alpha in texture pixels is supported */
  306. #define D3DPTEXTURECAPS_SQUAREONLY 0x00000020L /* Only square textures are supported */
  307. #define D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE 0x00000040L /* Texture indices are not scaled by the texture size prior to interpolation */
  308. #define D3DPTEXTURECAPS_ALPHAPALETTE 0x00000080L /* Device can draw alpha from texture palettes */
  309. // Device can use non-POW2 textures if:
  310. // 1) D3DTEXTURE_ADDRESS is set to CLAMP for this texture's stage
  311. // 2) D3DRS_WRAP(N) is zero for this texture's coordinates
  312. // 3) mip mapping is not enabled (use magnification filter only)
  313. #define D3DPTEXTURECAPS_NONPOW2CONDITIONAL 0x00000100L
  314. #define D3DPTEXTURECAPS_PROJECTED 0x00000400L /* Device can do D3DTTFF_PROJECTED */
  315. #define D3DPTEXTURECAPS_CUBEMAP 0x00000800L /* Device can do cubemap textures */
  316. #define D3DPTEXTURECAPS_VOLUMEMAP 0x00002000L /* Device can do volume textures */
  317. #define D3DPTEXTURECAPS_MIPMAP 0x00004000L /* Device can do mipmapped textures */
  318. #define D3DPTEXTURECAPS_MIPVOLUMEMAP 0x00008000L /* Device can do mipmapped volume textures */
  319. #define D3DPTEXTURECAPS_MIPCUBEMAP 0x00010000L /* Device can do mipmapped cube maps */
  320. #define D3DPTEXTURECAPS_CUBEMAP_POW2 0x00020000L /* Device requires that cubemaps be power-of-2 dimension */
  321. #define D3DPTEXTURECAPS_VOLUMEMAP_POW2 0x00040000L /* Device requires that volume maps be power-of-2 dimension */
  322. #define D3DPTEXTURECAPS_NOPROJECTEDBUMPENV 0x00200000L /* Device does not support projected bump env lookup operation
  323. in programmable and fixed function pixel shaders */
  324. //
  325. // TextureFilterCaps, StretchRectFilterCaps
  326. //
  327. #define D3DPTFILTERCAPS_MINFPOINT 0x00000100L /* Min Filter */
  328. #define D3DPTFILTERCAPS_MINFLINEAR 0x00000200L
  329. #define D3DPTFILTERCAPS_MINFANISOTROPIC 0x00000400L
  330. #define D3DPTFILTERCAPS_MINFPYRAMIDALQUAD 0x00000800L
  331. #define D3DPTFILTERCAPS_MINFGAUSSIANQUAD 0x00001000L
  332. #define D3DPTFILTERCAPS_MIPFPOINT 0x00010000L /* Mip Filter */
  333. #define D3DPTFILTERCAPS_MIPFLINEAR 0x00020000L
  334. /* D3D9Ex only -- */
  335. #if !defined(D3D_DISABLE_9EX)
  336. #define D3DPTFILTERCAPS_CONVOLUTIONMONO 0x00040000L /* Min and Mag for the convolution mono filter */
  337. #endif // !D3D_DISABLE_9EX
  338. /* -- D3D9Ex only */
  339. #define D3DPTFILTERCAPS_MAGFPOINT 0x01000000L /* Mag Filter */
  340. #define D3DPTFILTERCAPS_MAGFLINEAR 0x02000000L
  341. #define D3DPTFILTERCAPS_MAGFANISOTROPIC 0x04000000L
  342. #define D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD 0x08000000L
  343. #define D3DPTFILTERCAPS_MAGFGAUSSIANQUAD 0x10000000L
  344. //
  345. // TextureAddressCaps
  346. //
  347. #define D3DPTADDRESSCAPS_WRAP 0x00000001L
  348. #define D3DPTADDRESSCAPS_MIRROR 0x00000002L
  349. #define D3DPTADDRESSCAPS_CLAMP 0x00000004L
  350. #define D3DPTADDRESSCAPS_BORDER 0x00000008L
  351. #define D3DPTADDRESSCAPS_INDEPENDENTUV 0x00000010L
  352. #define D3DPTADDRESSCAPS_MIRRORONCE 0x00000020L
  353. //
  354. // StencilCaps
  355. //
  356. #define D3DSTENCILCAPS_KEEP 0x00000001L
  357. #define D3DSTENCILCAPS_ZERO 0x00000002L
  358. #define D3DSTENCILCAPS_REPLACE 0x00000004L
  359. #define D3DSTENCILCAPS_INCRSAT 0x00000008L
  360. #define D3DSTENCILCAPS_DECRSAT 0x00000010L
  361. #define D3DSTENCILCAPS_INVERT 0x00000020L
  362. #define D3DSTENCILCAPS_INCR 0x00000040L
  363. #define D3DSTENCILCAPS_DECR 0x00000080L
  364. #define D3DSTENCILCAPS_TWOSIDED 0x00000100L
  365. //
  366. // TextureOpCaps
  367. //
  368. #define D3DTEXOPCAPS_DISABLE 0x00000001L
  369. #define D3DTEXOPCAPS_SELECTARG1 0x00000002L
  370. #define D3DTEXOPCAPS_SELECTARG2 0x00000004L
  371. #define D3DTEXOPCAPS_MODULATE 0x00000008L
  372. #define D3DTEXOPCAPS_MODULATE2X 0x00000010L
  373. #define D3DTEXOPCAPS_MODULATE4X 0x00000020L
  374. #define D3DTEXOPCAPS_ADD 0x00000040L
  375. #define D3DTEXOPCAPS_ADDSIGNED 0x00000080L
  376. #define D3DTEXOPCAPS_ADDSIGNED2X 0x00000100L
  377. #define D3DTEXOPCAPS_SUBTRACT 0x00000200L
  378. #define D3DTEXOPCAPS_ADDSMOOTH 0x00000400L
  379. #define D3DTEXOPCAPS_BLENDDIFFUSEALPHA 0x00000800L
  380. #define D3DTEXOPCAPS_BLENDTEXTUREALPHA 0x00001000L
  381. #define D3DTEXOPCAPS_BLENDFACTORALPHA 0x00002000L
  382. #define D3DTEXOPCAPS_BLENDTEXTUREALPHAPM 0x00004000L
  383. #define D3DTEXOPCAPS_BLENDCURRENTALPHA 0x00008000L
  384. #define D3DTEXOPCAPS_PREMODULATE 0x00010000L
  385. #define D3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR 0x00020000L
  386. #define D3DTEXOPCAPS_MODULATECOLOR_ADDALPHA 0x00040000L
  387. #define D3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR 0x00080000L
  388. #define D3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA 0x00100000L
  389. #define D3DTEXOPCAPS_BUMPENVMAP 0x00200000L
  390. #define D3DTEXOPCAPS_BUMPENVMAPLUMINANCE 0x00400000L
  391. #define D3DTEXOPCAPS_DOTPRODUCT3 0x00800000L
  392. #define D3DTEXOPCAPS_MULTIPLYADD 0x01000000L
  393. #define D3DTEXOPCAPS_LERP 0x02000000L
  394. //
  395. // FVFCaps
  396. //
  397. #define D3DFVFCAPS_TEXCOORDCOUNTMASK 0x0000ffffL /* mask for texture coordinate count field */
  398. #define D3DFVFCAPS_DONOTSTRIPELEMENTS 0x00080000L /* Device prefers that vertex elements not be stripped */
  399. #define D3DFVFCAPS_PSIZE 0x00100000L /* Device can receive point size */
  400. //
  401. // VertexProcessingCaps
  402. //
  403. #define D3DVTXPCAPS_TEXGEN 0x00000001L /* device can do texgen */
  404. #define D3DVTXPCAPS_MATERIALSOURCE7 0x00000002L /* device can do DX7-level colormaterialsource ops */
  405. #define D3DVTXPCAPS_DIRECTIONALLIGHTS 0x00000008L /* device can do directional lights */
  406. #define D3DVTXPCAPS_POSITIONALLIGHTS 0x00000010L /* device can do positional lights (includes point and spot) */
  407. #define D3DVTXPCAPS_LOCALVIEWER 0x00000020L /* device can do local viewer */
  408. #define D3DVTXPCAPS_TWEENING 0x00000040L /* device can do vertex tweening */
  409. #define D3DVTXPCAPS_TEXGEN_SPHEREMAP 0x00000100L /* device supports D3DTSS_TCI_SPHEREMAP */
  410. #define D3DVTXPCAPS_NO_TEXGEN_NONLOCALVIEWER 0x00000200L /* device does not support TexGen in non-local
  411. viewer mode */
  412. //
  413. // DevCaps2
  414. //
  415. #define D3DDEVCAPS2_STREAMOFFSET 0x00000001L /* Device supports offsets in streams. Must be set by DX9 drivers */
  416. #define D3DDEVCAPS2_DMAPNPATCH 0x00000002L /* Device supports displacement maps for N-Patches*/
  417. #define D3DDEVCAPS2_ADAPTIVETESSRTPATCH 0x00000004L /* Device supports adaptive tesselation of RT-patches*/
  418. #define D3DDEVCAPS2_ADAPTIVETESSNPATCH 0x00000008L /* Device supports adaptive tesselation of N-patches*/
  419. #define D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES 0x00000010L /* Device supports StretchRect calls with a texture as the source*/
  420. #define D3DDEVCAPS2_PRESAMPLEDDMAPNPATCH 0x00000020L /* Device supports presampled displacement maps for N-Patches */
  421. #define D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET 0x00000040L /* Vertex elements in a vertex declaration can share the same stream offset */
  422. //
  423. // DeclTypes
  424. //
  425. #define D3DDTCAPS_UBYTE4 0x00000001L
  426. #define D3DDTCAPS_UBYTE4N 0x00000002L
  427. #define D3DDTCAPS_SHORT2N 0x00000004L
  428. #define D3DDTCAPS_SHORT4N 0x00000008L
  429. #define D3DDTCAPS_USHORT2N 0x00000010L
  430. #define D3DDTCAPS_USHORT4N 0x00000020L
  431. #define D3DDTCAPS_UDEC3 0x00000040L
  432. #define D3DDTCAPS_DEC3N 0x00000080L
  433. #define D3DDTCAPS_FLOAT16_2 0x00000100L
  434. #define D3DDTCAPS_FLOAT16_4 0x00000200L
  435. #pragma pack()
  436. #endif /* (DIRECT3D_VERSION >= 0x0900) */
  437. #endif /* _d3d9CAPS_H_ */