Source code of Windows XP (NT5)
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.

440 lines
18 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) 1995-1998 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: d3dcaps.h
  6. * Content: Direct3D capabilities include file
  7. *
  8. ***************************************************************************/
  9. #ifndef _D3DCAPS_H
  10. #define _D3DCAPS_H
  11. /*
  12. * Pull in DirectDraw include file automatically:
  13. */
  14. #include <ddraw.h>
  15. #ifndef DIRECT3D_VERSION
  16. #define DIRECT3D_VERSION 0x0600
  17. #endif
  18. #pragma pack(4)
  19. /* Description of capabilities of transform */
  20. typedef struct _D3DTRANSFORMCAPS {
  21. DWORD dwSize;
  22. DWORD dwCaps;
  23. } D3DTRANSFORMCAPS, *LPD3DTRANSFORMCAPS;
  24. #define D3DTRANSFORMCAPS_CLIP 0x00000001L /* Will clip whilst transforming */
  25. /* Description of capabilities of lighting */
  26. typedef struct _D3DLIGHTINGCAPS {
  27. DWORD dwSize;
  28. DWORD dwCaps; /* Lighting caps */
  29. DWORD dwLightingModel; /* Lighting model - RGB or mono */
  30. DWORD dwNumLights; /* Number of lights that can be handled */
  31. } D3DLIGHTINGCAPS, *LPD3DLIGHTINGCAPS;
  32. #define D3DLIGHTINGMODEL_RGB 0x00000001L
  33. #define D3DLIGHTINGMODEL_MONO 0x00000002L
  34. #define D3DLIGHTCAPS_POINT 0x00000001L /* Point lights supported */
  35. #define D3DLIGHTCAPS_SPOT 0x00000002L /* Spot lights supported */
  36. #define D3DLIGHTCAPS_DIRECTIONAL 0x00000004L /* Directional lights supported */
  37. #define D3DLIGHTCAPS_PARALLELPOINT 0x00000008L /* Parallel point lights supported */
  38. #if(DIRECT3D_VERSION < 0x500)
  39. #define D3DLIGHTCAPS_GLSPOT 0x00000010L /* GL syle spot lights supported */
  40. #endif
  41. /* Description of capabilities for each primitive type */
  42. typedef struct _D3DPrimCaps {
  43. DWORD dwSize;
  44. DWORD dwMiscCaps; /* Capability flags */
  45. DWORD dwRasterCaps;
  46. DWORD dwZCmpCaps;
  47. DWORD dwSrcBlendCaps;
  48. DWORD dwDestBlendCaps;
  49. DWORD dwAlphaCmpCaps;
  50. DWORD dwShadeCaps;
  51. DWORD dwTextureCaps;
  52. DWORD dwTextureFilterCaps;
  53. DWORD dwTextureBlendCaps;
  54. DWORD dwTextureAddressCaps;
  55. DWORD dwStippleWidth; /* maximum width and height of */
  56. DWORD dwStippleHeight; /* of supported stipple (up to 32x32) */
  57. } D3DPRIMCAPS, *LPD3DPRIMCAPS;
  58. /* D3DPRIMCAPS dwMiscCaps */
  59. #define D3DPMISCCAPS_MASKPLANES 0x00000001L
  60. #define D3DPMISCCAPS_MASKZ 0x00000002L
  61. #define D3DPMISCCAPS_LINEPATTERNREP 0x00000004L
  62. #define D3DPMISCCAPS_CONFORMANT 0x00000008L
  63. #define D3DPMISCCAPS_CULLNONE 0x00000010L
  64. #define D3DPMISCCAPS_CULLCW 0x00000020L
  65. #define D3DPMISCCAPS_CULLCCW 0x00000040L
  66. /* D3DPRIMCAPS dwRasterCaps */
  67. #define D3DPRASTERCAPS_DITHER 0x00000001L
  68. #define D3DPRASTERCAPS_ROP2 0x00000002L
  69. #define D3DPRASTERCAPS_XOR 0x00000004L
  70. #define D3DPRASTERCAPS_PAT 0x00000008L
  71. #define D3DPRASTERCAPS_ZTEST 0x00000010L
  72. #define D3DPRASTERCAPS_SUBPIXEL 0x00000020L
  73. #define D3DPRASTERCAPS_SUBPIXELX 0x00000040L
  74. #define D3DPRASTERCAPS_FOGVERTEX 0x00000080L
  75. #define D3DPRASTERCAPS_FOGTABLE 0x00000100L
  76. #define D3DPRASTERCAPS_STIPPLE 0x00000200L
  77. #define D3DPRASTERCAPS_ANTIALIASSORTDEPENDENT 0x00000400L
  78. #define D3DPRASTERCAPS_ANTIALIASSORTINDEPENDENT 0x00000800L
  79. #define D3DPRASTERCAPS_ANTIALIASEDGES 0x00001000L
  80. #define D3DPRASTERCAPS_MIPMAPLODBIAS 0x00002000L
  81. #define D3DPRASTERCAPS_ZBIAS 0x00004000L
  82. #define D3DPRASTERCAPS_ZBUFFERLESSHSR 0x00008000L
  83. #define D3DPRASTERCAPS_FOGRANGE 0x00010000L
  84. #define D3DPRASTERCAPS_ANISOTROPY 0x00020000L
  85. #define D3DPRASTERCAPS_WBUFFER 0x00040000L
  86. #define D3DPRASTERCAPS_TRANSLUCENTSORTINDEPENDENT 0x00080000L
  87. #define D3DPRASTERCAPS_WFOG 0x00100000L
  88. /* D3DPRIMCAPS dwZCmpCaps, dwAlphaCmpCaps */
  89. #define D3DPCMPCAPS_NEVER 0x00000001L
  90. #define D3DPCMPCAPS_LESS 0x00000002L
  91. #define D3DPCMPCAPS_EQUAL 0x00000004L
  92. #define D3DPCMPCAPS_LESSEQUAL 0x00000008L
  93. #define D3DPCMPCAPS_GREATER 0x00000010L
  94. #define D3DPCMPCAPS_NOTEQUAL 0x00000020L
  95. #define D3DPCMPCAPS_GREATEREQUAL 0x00000040L
  96. #define D3DPCMPCAPS_ALWAYS 0x00000080L
  97. /* D3DPRIMCAPS dwSourceBlendCaps, dwDestBlendCaps */
  98. #define D3DPBLENDCAPS_ZERO 0x00000001L
  99. #define D3DPBLENDCAPS_ONE 0x00000002L
  100. #define D3DPBLENDCAPS_SRCCOLOR 0x00000004L
  101. #define D3DPBLENDCAPS_INVSRCCOLOR 0x00000008L
  102. #define D3DPBLENDCAPS_SRCALPHA 0x00000010L
  103. #define D3DPBLENDCAPS_INVSRCALPHA 0x00000020L
  104. #define D3DPBLENDCAPS_DESTALPHA 0x00000040L
  105. #define D3DPBLENDCAPS_INVDESTALPHA 0x00000080L
  106. #define D3DPBLENDCAPS_DESTCOLOR 0x00000100L
  107. #define D3DPBLENDCAPS_INVDESTCOLOR 0x00000200L
  108. #define D3DPBLENDCAPS_SRCALPHASAT 0x00000400L
  109. #define D3DPBLENDCAPS_BOTHSRCALPHA 0x00000800L
  110. #define D3DPBLENDCAPS_BOTHINVSRCALPHA 0x00001000L
  111. /* D3DPRIMCAPS dwShadeCaps */
  112. #define D3DPSHADECAPS_COLORFLATMONO 0x00000001L
  113. #define D3DPSHADECAPS_COLORFLATRGB 0x00000002L
  114. #define D3DPSHADECAPS_COLORGOURAUDMONO 0x00000004L
  115. #define D3DPSHADECAPS_COLORGOURAUDRGB 0x00000008L
  116. #define D3DPSHADECAPS_COLORPHONGMONO 0x00000010L
  117. #define D3DPSHADECAPS_COLORPHONGRGB 0x00000020L
  118. #define D3DPSHADECAPS_SPECULARFLATMONO 0x00000040L
  119. #define D3DPSHADECAPS_SPECULARFLATRGB 0x00000080L
  120. #define D3DPSHADECAPS_SPECULARGOURAUDMONO 0x00000100L
  121. #define D3DPSHADECAPS_SPECULARGOURAUDRGB 0x00000200L
  122. #define D3DPSHADECAPS_SPECULARPHONGMONO 0x00000400L
  123. #define D3DPSHADECAPS_SPECULARPHONGRGB 0x00000800L
  124. #define D3DPSHADECAPS_ALPHAFLATBLEND 0x00001000L
  125. #define D3DPSHADECAPS_ALPHAFLATSTIPPLED 0x00002000L
  126. #define D3DPSHADECAPS_ALPHAGOURAUDBLEND 0x00004000L
  127. #define D3DPSHADECAPS_ALPHAGOURAUDSTIPPLED 0x00008000L
  128. #define D3DPSHADECAPS_ALPHAPHONGBLEND 0x00010000L
  129. #define D3DPSHADECAPS_ALPHAPHONGSTIPPLED 0x00020000L
  130. #define D3DPSHADECAPS_FOGFLAT 0x00040000L
  131. #define D3DPSHADECAPS_FOGGOURAUD 0x00080000L
  132. #define D3DPSHADECAPS_FOGPHONG 0x00100000L
  133. /* D3DPRIMCAPS dwTextureCaps */
  134. /*
  135. * Perspective-correct texturing is supported
  136. */
  137. #define D3DPTEXTURECAPS_PERSPECTIVE 0x00000001L
  138. /*
  139. * Power-of-2 texture dimensions are required
  140. */
  141. #define D3DPTEXTURECAPS_POW2 0x00000002L
  142. /*
  143. * Alpha in texture pixels is supported
  144. */
  145. #define D3DPTEXTURECAPS_ALPHA 0x00000004L
  146. /*
  147. * Color-keyed textures are supported
  148. */
  149. #define D3DPTEXTURECAPS_TRANSPARENCY 0x00000008L
  150. /*
  151. * obsolete, see D3DPTADDRESSCAPS_BORDER
  152. */
  153. #define D3DPTEXTURECAPS_BORDER 0x00000010L
  154. /*
  155. * Only square textures are supported
  156. */
  157. #define D3DPTEXTURECAPS_SQUAREONLY 0x00000020L
  158. /*
  159. * Texture indices are not scaled by the texture size prior
  160. * to interpolation.
  161. */
  162. #define D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE 0x00000040L
  163. /*
  164. * Device can draw alpha from texture palettes
  165. */
  166. #define D3DPTEXTURECAPS_ALPHAPALETTE 0x00000080L
  167. /* D3DPRIMCAPS dwTextureFilterCaps */
  168. #define D3DPTFILTERCAPS_NEAREST 0x00000001L
  169. #define D3DPTFILTERCAPS_LINEAR 0x00000002L
  170. #define D3DPTFILTERCAPS_MIPNEAREST 0x00000004L
  171. #define D3DPTFILTERCAPS_MIPLINEAR 0x00000008L
  172. #define D3DPTFILTERCAPS_LINEARMIPNEAREST 0x00000010L
  173. #define D3DPTFILTERCAPS_LINEARMIPLINEAR 0x00000020L
  174. /* Device3 Min Filter */
  175. #define D3DPTFILTERCAPS_MINFPOINT 0x00000100L
  176. #define D3DPTFILTERCAPS_MINFLINEAR 0x00000200L
  177. #define D3DPTFILTERCAPS_MINFANISOTROPIC 0x00000400L
  178. /* Device3 Mip Filter */
  179. #define D3DPTFILTERCAPS_MIPFPOINT 0x00010000L
  180. #define D3DPTFILTERCAPS_MIPFLINEAR 0x00020000L
  181. /* Device3 Mag Filter */
  182. #define D3DPTFILTERCAPS_MAGFPOINT 0x01000000L
  183. #define D3DPTFILTERCAPS_MAGFLINEAR 0x02000000L
  184. #define D3DPTFILTERCAPS_MAGFANISOTROPIC 0x04000000L
  185. #define D3DPTFILTERCAPS_MAGFAFLATCUBIC 0x08000000L
  186. #define D3DPTFILTERCAPS_MAGFGAUSSIANCUBIC 0x10000000L
  187. /* D3DPRIMCAPS dwTextureBlendCaps */
  188. #define D3DPTBLENDCAPS_DECAL 0x00000001L
  189. #define D3DPTBLENDCAPS_MODULATE 0x00000002L
  190. #define D3DPTBLENDCAPS_DECALALPHA 0x00000004L
  191. #define D3DPTBLENDCAPS_MODULATEALPHA 0x00000008L
  192. #define D3DPTBLENDCAPS_DECALMASK 0x00000010L
  193. #define D3DPTBLENDCAPS_MODULATEMASK 0x00000020L
  194. #define D3DPTBLENDCAPS_COPY 0x00000040L
  195. #define D3DPTBLENDCAPS_ADD 0x00000080L
  196. /* D3DPRIMCAPS dwTextureAddressCaps */
  197. #define D3DPTADDRESSCAPS_WRAP 0x00000001L
  198. #define D3DPTADDRESSCAPS_MIRROR 0x00000002L
  199. #define D3DPTADDRESSCAPS_CLAMP 0x00000004L
  200. #define D3DPTADDRESSCAPS_BORDER 0x00000008L
  201. #define D3DPTADDRESSCAPS_INDEPENDENTUV 0x00000010L
  202. /* D3DDEVICEDESC dwStencilCaps */
  203. #define D3DSTENCILCAPS_KEEP 0x00000001L
  204. #define D3DSTENCILCAPS_ZERO 0x00000002L
  205. #define D3DSTENCILCAPS_REPLACE 0x00000004L
  206. #define D3DSTENCILCAPS_INCRSAT 0x00000008L
  207. #define D3DSTENCILCAPS_DECRSAT 0x00000010L
  208. #define D3DSTENCILCAPS_INVERT 0x00000020L
  209. #define D3DSTENCILCAPS_INCR 0x00000040L
  210. #define D3DSTENCILCAPS_DECR 0x00000080L
  211. /* D3DDEVICEDESC dwTextureOpCaps */
  212. #define D3DTEXOPCAPS_DISABLE 0x00000001L
  213. #define D3DTEXOPCAPS_SELECTARG1 0x00000002L
  214. #define D3DTEXOPCAPS_SELECTARG2 0x00000004L
  215. #define D3DTEXOPCAPS_MODULATE 0x00000008L
  216. #define D3DTEXOPCAPS_MODULATE2X 0x00000010L
  217. #define D3DTEXOPCAPS_MODULATE4X 0x00000020L
  218. #define D3DTEXOPCAPS_ADD 0x00000040L
  219. #define D3DTEXOPCAPS_ADDSIGNED 0x00000080L
  220. #define D3DTEXOPCAPS_ADDSIGNED2X 0x00000100L
  221. #define D3DTEXOPCAPS_SUBTRACT 0x00000200L
  222. #define D3DTEXOPCAPS_ADDSMOOTH 0x00000400L
  223. #define D3DTEXOPCAPS_BLENDDIFFUSEALPHA 0x00000800L
  224. #define D3DTEXOPCAPS_BLENDTEXTUREALPHA 0x00001000L
  225. #define D3DTEXOPCAPS_BLENDFACTORALPHA 0x00002000L
  226. #define D3DTEXOPCAPS_BLENDTEXTUREALPHAPM 0x00004000L
  227. #define D3DTEXOPCAPS_BLENDCURRENTALPHA 0x00008000L
  228. #define D3DTEXOPCAPS_PREMODULATE 0x00010000L
  229. #define D3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR 0x00020000L
  230. #define D3DTEXOPCAPS_MODULATECOLOR_ADDALPHA 0x00040000L
  231. #define D3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR 0x00080000L
  232. #define D3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA 0x00100000L
  233. #define D3DTEXOPCAPS_BUMPENVMAP 0x00200000L
  234. #define D3DTEXOPCAPS_BUMPENVMAPLUMINANCE 0x00400000L
  235. #define D3DTEXOPCAPS_DOTPRODUCT3 0x00800000L
  236. /*
  237. * Description for a device.
  238. * This is used to describe a device that is to be created or to query
  239. * the current device.
  240. */
  241. typedef struct _D3DDeviceDesc {
  242. DWORD dwSize; /* Size of D3DDEVICEDESC structure */
  243. DWORD dwFlags; /* Indicates which fields have valid data */
  244. D3DCOLORMODEL dcmColorModel; /* Color model of device */
  245. DWORD dwDevCaps; /* Capabilities of device */
  246. D3DTRANSFORMCAPS dtcTransformCaps; /* Capabilities of transform */
  247. BOOL bClipping; /* Device can do 3D clipping */
  248. D3DLIGHTINGCAPS dlcLightingCaps; /* Capabilities of lighting */
  249. D3DPRIMCAPS dpcLineCaps;
  250. D3DPRIMCAPS dpcTriCaps;
  251. DWORD dwDeviceRenderBitDepth; /* One of DDBB_8, 16, etc.. */
  252. DWORD dwDeviceZBufferBitDepth;/* One of DDBD_16, 32, etc.. */
  253. DWORD dwMaxBufferSize; /* Maximum execute buffer size */
  254. DWORD dwMaxVertexCount; /* Maximum vertex count */
  255. #if(DIRECT3D_VERSION >= 0x0500)
  256. // *** New fields for DX5 *** //
  257. // Width and height caps are 0 for legacy HALs.
  258. DWORD dwMinTextureWidth, dwMinTextureHeight;
  259. DWORD dwMaxTextureWidth, dwMaxTextureHeight;
  260. DWORD dwMinStippleWidth, dwMaxStippleWidth;
  261. DWORD dwMinStippleHeight, dwMaxStippleHeight;
  262. #endif /* DIRECT3D_VERSION >= 0x0500 */
  263. #if(DIRECT3D_VERSION >= 0x0600)
  264. // New fields for DX6
  265. DWORD dwMaxTextureRepeat;
  266. DWORD dwMaxTextureAspectRatio;
  267. DWORD dwMaxAnisotropy;
  268. // Guard band that the rasterizer can accommodate
  269. // Screen-space vertices inside this space but outside the viewport
  270. // will get clipped properly.
  271. D3DVALUE dvGuardBandLeft;
  272. D3DVALUE dvGuardBandTop;
  273. D3DVALUE dvGuardBandRight;
  274. D3DVALUE dvGuardBandBottom;
  275. D3DVALUE dvExtentsAdjust;
  276. DWORD dwStencilCaps;
  277. DWORD dwFVFCaps; /* low 4 bits: 0 implies TLVERTEX only, 1..8 imply FVF aware */
  278. DWORD dwTextureOpCaps;
  279. WORD wMaxTextureBlendStages;
  280. WORD wMaxSimultaneousTextures;
  281. #endif /* DIRECT3D_VERSION >= 0x0600 */
  282. } D3DDEVICEDESC, *LPD3DDEVICEDESC;
  283. #define D3DDEVICEDESCSIZE (sizeof(D3DDEVICEDESC))
  284. typedef HRESULT (FAR PASCAL * LPD3DENUMDEVICESCALLBACK)(GUID FAR *lpGuid, LPSTR lpDeviceDescription, LPSTR lpDeviceName, LPD3DDEVICEDESC, LPD3DDEVICEDESC, LPVOID);
  285. /* D3DDEVICEDESC dwFlags indicating valid fields */
  286. #define D3DDD_COLORMODEL 0x00000001L /* dcmColorModel is valid */
  287. #define D3DDD_DEVCAPS 0x00000002L /* dwDevCaps is valid */
  288. #define D3DDD_TRANSFORMCAPS 0x00000004L /* dtcTransformCaps is valid */
  289. #define D3DDD_LIGHTINGCAPS 0x00000008L /* dlcLightingCaps is valid */
  290. #define D3DDD_BCLIPPING 0x00000010L /* bClipping is valid */
  291. #define D3DDD_LINECAPS 0x00000020L /* dpcLineCaps is valid */
  292. #define D3DDD_TRICAPS 0x00000040L /* dpcTriCaps is valid */
  293. #define D3DDD_DEVICERENDERBITDEPTH 0x00000080L /* dwDeviceRenderBitDepth is valid */
  294. #define D3DDD_DEVICEZBUFFERBITDEPTH 0x00000100L /* dwDeviceZBufferBitDepth is valid */
  295. #define D3DDD_MAXBUFFERSIZE 0x00000200L /* dwMaxBufferSize is valid */
  296. #define D3DDD_MAXVERTEXCOUNT 0x00000400L /* dwMaxVertexCount is valid */
  297. /* D3DDEVICEDESC dwDevCaps flags */
  298. #define D3DDEVCAPS_FLOATTLVERTEX 0x00000001L /* Device accepts floating point */
  299. /* for post-transform vertex data */
  300. #define D3DDEVCAPS_SORTINCREASINGZ 0x00000002L /* Device needs data sorted for increasing Z */
  301. #define D3DDEVCAPS_SORTDECREASINGZ 0X00000004L /* Device needs data sorted for decreasing Z */
  302. #define D3DDEVCAPS_SORTEXACT 0x00000008L /* Device needs data sorted exactly */
  303. #define D3DDEVCAPS_EXECUTESYSTEMMEMORY 0x00000010L /* Device can use execute buffers from system memory */
  304. #define D3DDEVCAPS_EXECUTEVIDEOMEMORY 0x00000020L /* Device can use execute buffers from video memory */
  305. #define D3DDEVCAPS_TLVERTEXSYSTEMMEMORY 0x00000040L /* Device can use TL buffers from system memory */
  306. #define D3DDEVCAPS_TLVERTEXVIDEOMEMORY 0x00000080L /* Device can use TL buffers from video memory */
  307. #define D3DDEVCAPS_TEXTURESYSTEMMEMORY 0x00000100L /* Device can texture from system memory */
  308. #define D3DDEVCAPS_TEXTUREVIDEOMEMORY 0x00000200L /* Device can texture from device memory */
  309. #define D3DDEVCAPS_DRAWPRIMTLVERTEX 0x00000400L /* Device can draw TLVERTEX primitives */
  310. #define D3DDEVCAPS_CANRENDERAFTERFLIP 0x00000800L /* Device can render without waiting for flip to complete */
  311. #define D3DDEVCAPS_TEXTURENONLOCALVIDMEM 0x00001000L /* Device can texture from nonlocal video memory */
  312. #define D3DFDS_COLORMODEL 0x00000001L /* Match color model */
  313. #define D3DFDS_GUID 0x00000002L /* Match guid */
  314. #define D3DFDS_HARDWARE 0x00000004L /* Match hardware/software */
  315. #define D3DFDS_TRIANGLES 0x00000008L /* Match in triCaps */
  316. #define D3DFDS_LINES 0x00000010L /* Match in lineCaps */
  317. #define D3DFDS_MISCCAPS 0x00000020L /* Match primCaps.dwMiscCaps */
  318. #define D3DFDS_RASTERCAPS 0x00000040L /* Match primCaps.dwRasterCaps */
  319. #define D3DFDS_ZCMPCAPS 0x00000080L /* Match primCaps.dwZCmpCaps */
  320. #define D3DFDS_ALPHACMPCAPS 0x00000100L /* Match primCaps.dwAlphaCmpCaps */
  321. #define D3DFDS_SRCBLENDCAPS 0x00000200L /* Match primCaps.dwSourceBlendCaps */
  322. #define D3DFDS_DSTBLENDCAPS 0x00000400L /* Match primCaps.dwDestBlendCaps */
  323. #define D3DFDS_SHADECAPS 0x00000800L /* Match primCaps.dwShadeCaps */
  324. #define D3DFDS_TEXTURECAPS 0x00001000L /* Match primCaps.dwTextureCaps */
  325. #define D3DFDS_TEXTUREFILTERCAPS 0x00002000L /* Match primCaps.dwTextureFilterCaps */
  326. #define D3DFDS_TEXTUREBLENDCAPS 0x00004000L /* Match primCaps.dwTextureBlendCaps */
  327. #define D3DFDS_TEXTUREADDRESSCAPS 0x00008000L /* Match primCaps.dwTextureBlendCaps */
  328. /*
  329. * FindDevice arguments
  330. */
  331. typedef struct _D3DFINDDEVICESEARCH {
  332. DWORD dwSize;
  333. DWORD dwFlags;
  334. BOOL bHardware;
  335. D3DCOLORMODEL dcmColorModel;
  336. GUID guid;
  337. DWORD dwCaps;
  338. D3DPRIMCAPS dpcPrimCaps;
  339. } D3DFINDDEVICESEARCH, *LPD3DFINDDEVICESEARCH;
  340. typedef struct _D3DFINDDEVICERESULT {
  341. DWORD dwSize;
  342. GUID guid; /* guid which matched */
  343. D3DDEVICEDESC ddHwDesc; /* hardware D3DDEVICEDESC */
  344. D3DDEVICEDESC ddSwDesc; /* software D3DDEVICEDESC */
  345. } D3DFINDDEVICERESULT, *LPD3DFINDDEVICERESULT;
  346. /*
  347. * Description of execute buffer.
  348. */
  349. typedef struct _D3DExecuteBufferDesc {
  350. DWORD dwSize; /* size of this structure */
  351. DWORD dwFlags; /* flags indicating which fields are valid */
  352. DWORD dwCaps; /* capabilities of execute buffer */
  353. DWORD dwBufferSize; /* size of execute buffer data */
  354. LPVOID lpData; /* pointer to actual data */
  355. } D3DEXECUTEBUFFERDESC, *LPD3DEXECUTEBUFFERDESC;
  356. /* D3DEXECUTEBUFFER dwFlags indicating valid fields */
  357. #define D3DDEB_BUFSIZE 0x00000001l /* buffer size valid */
  358. #define D3DDEB_CAPS 0x00000002l /* caps valid */
  359. #define D3DDEB_LPDATA 0x00000004l /* lpData valid */
  360. /* D3DEXECUTEBUFFER dwCaps */
  361. #define D3DDEBCAPS_SYSTEMMEMORY 0x00000001l /* buffer in system memory */
  362. #define D3DDEBCAPS_VIDEOMEMORY 0x00000002l /* buffer in device memory */
  363. #define D3DDEBCAPS_MEM (D3DDEBCAPS_SYSTEMMEMORY|D3DDEBCAPS_VIDEOMEMORY)
  364. #pragma pack()
  365. #endif /* _D3DCAPS_H_ */