Artifact 8267c3a32638d8fa5667990a5315342936ac7199:
- File
src/win32/directx/d3d9caps.d
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
The problem was __gshared. Replacing it with TLS fixed the issue. Remaining problem is that "hack.d"'s CloseHandle hack is not working anymore.
(user: kinaba) [annotate]
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
0000: 2f 2a 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d /*============== 0010: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================ 0020: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================ 0030: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================ 0040: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3b 0d 0a 20 ============;.. 0050: 2a 0d 0a 20 2a 20 20 43 6f 70 79 72 69 67 68 74 *.. * Copyright 0060: 20 28 43 29 20 4d 69 63 72 6f 73 6f 66 74 20 43 (C) Microsoft C 0070: 6f 72 70 6f 72 61 74 69 6f 6e 2e 20 20 41 6c 6c orporation. All 0080: 20 52 69 67 68 74 73 20 52 65 73 65 72 76 65 64 Rights Reserved 0090: 2e 0d 0a 20 2a 0d 0a 20 2a 20 20 46 69 6c 65 3a ... *.. * File: 00a0: 20 20 20 20 20 20 20 64 33 64 39 63 61 70 73 2e d3d9caps. 00b0: 68 0d 0a 20 2a 20 20 43 6f 6e 74 65 6e 74 3a 20 h.. * Content: 00c0: 20 20 20 44 69 72 65 63 74 33 44 20 63 61 70 61 Direct3D capa 00d0: 62 69 6c 69 74 69 65 73 20 69 6e 63 6c 75 64 65 bilities include 00e0: 20 66 69 6c 65 0d 0a 20 2a 0d 0a 20 2a 2a 2a 2a file.. *.. **** 00f0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 0100: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 0110: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 0120: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 0130: 2a 2a 2a 2a 2a 2a 2a 2f 0d 0a 0d 0a 6d 6f 64 75 *******/....modu 0140: 6c 65 20 77 69 6e 33 32 2e 64 69 72 65 63 74 78 le win32.directx 0150: 2e 64 33 64 39 63 61 70 73 3b 0d 0a 0d 0a 70 72 .d3d9caps;....pr 0160: 69 76 61 74 65 20 69 6d 70 6f 72 74 20 77 69 6e ivate import win 0170: 33 32 2e 77 69 6e 64 6f 77 73 2c 0d 0a 20 20 20 32.windows,.. 0180: 20 20 20 20 20 20 20 20 20 20 20 20 77 69 6e 33 win3 0190: 32 2e 64 69 72 65 63 74 78 2e 64 33 64 39 74 79 2.directx.d3d9ty 01a0: 70 65 73 3b 0d 0a 0d 0a 61 6c 69 67 6e 28 34 29 pes;....align(4) 01b0: 3a 0d 0a 0d 0a 73 74 72 75 63 74 20 44 33 44 56 :....struct D3DV 01c0: 53 48 41 44 45 52 43 41 50 53 32 5f 30 0d 0a 7b SHADERCAPS2_0..{ 01d0: 0d 0a 20 20 20 20 20 20 20 20 44 57 4f 52 44 20 .. DWORD 01e0: 43 61 70 73 3b 0d 0a 20 20 20 20 20 20 20 20 49 Caps;.. I 01f0: 4e 54 20 44 79 6e 61 6d 69 63 46 6c 6f 77 43 6f NT DynamicFlowCo 0200: 6e 74 72 6f 6c 44 65 70 74 68 3b 0d 0a 20 20 20 ntrolDepth;.. 0210: 20 20 20 20 20 49 4e 54 20 4e 75 6d 54 65 6d 70 INT NumTemp 0220: 73 3b 0d 0a 20 20 20 20 20 20 20 20 49 4e 54 20 s;.. INT 0230: 53 74 61 74 69 63 46 6c 6f 77 43 6f 6e 74 72 6f StaticFlowContro 0240: 6c 44 65 70 74 68 3b 0d 0a 7d 0d 0a 0d 0a 63 6f lDepth;..}....co 0250: 6e 73 74 20 44 33 44 56 53 32 30 43 41 50 53 5f nst D3DVS20CAPS_ 0260: 50 52 45 44 49 43 41 54 49 4f 4e 20 3d 20 28 31 PREDICATION = (1 0270: 3c 3c 30 29 3b 0d 0a 0d 0a 63 6f 6e 73 74 20 44 <<0);....const D 0280: 33 44 56 53 32 30 5f 4d 41 58 5f 44 59 4e 41 4d 3DVS20_MAX_DYNAM 0290: 49 43 46 4c 4f 57 43 4f 4e 54 52 4f 4c 44 45 50 ICFLOWCONTROLDEP 02a0: 54 48 20 3d 20 32 34 3b 0d 0a 63 6f 6e 73 74 20 TH = 24;..const 02b0: 44 33 44 56 53 32 30 5f 4d 49 4e 5f 44 59 4e 41 D3DVS20_MIN_DYNA 02c0: 4d 49 43 46 4c 4f 57 43 4f 4e 54 52 4f 4c 44 45 MICFLOWCONTROLDE 02d0: 50 54 48 20 3d 20 30 3b 0d 0a 63 6f 6e 73 74 20 PTH = 0;..const 02e0: 44 33 44 56 53 32 30 5f 4d 41 58 5f 4e 55 4d 54 D3DVS20_MAX_NUMT 02f0: 45 4d 50 53 20 3d 20 33 32 3b 0d 0a 63 6f 6e 73 EMPS = 32;..cons 0300: 74 20 44 33 44 56 53 32 30 5f 4d 49 4e 5f 4e 55 t D3DVS20_MIN_NU 0310: 4d 54 45 4d 50 53 20 3d 20 31 32 3b 0d 0a 63 6f MTEMPS = 12;..co 0320: 6e 73 74 20 44 33 44 56 53 32 30 5f 4d 41 58 5f nst D3DVS20_MAX_ 0330: 53 54 41 54 49 43 46 4c 4f 57 43 4f 4e 54 52 4f STATICFLOWCONTRO 0340: 4c 44 45 50 54 48 20 3d 20 34 3b 0d 0a 63 6f 6e LDEPTH = 4;..con 0350: 73 74 20 44 33 44 56 53 32 30 5f 4d 49 4e 5f 53 st D3DVS20_MIN_S 0360: 54 41 54 49 43 46 4c 4f 57 43 4f 4e 54 52 4f 4c TATICFLOWCONTROL 0370: 44 45 50 54 48 20 3d 20 31 3b 0d 0a 0d 0a 73 74 DEPTH = 1;....st 0380: 72 75 63 74 20 44 33 44 50 53 48 41 44 45 52 43 ruct D3DPSHADERC 0390: 41 50 53 32 5f 30 0d 0a 7b 0d 0a 20 20 20 20 44 APS2_0..{.. D 03a0: 57 4f 52 44 20 43 61 70 73 3b 0d 0a 20 20 20 20 WORD Caps;.. 03b0: 49 4e 54 20 44 79 6e 61 6d 69 63 46 6c 6f 77 43 INT DynamicFlowC 03c0: 6f 6e 74 72 6f 6c 44 65 70 74 68 3b 0d 0a 20 20 ontrolDepth;.. 03d0: 20 20 49 4e 54 20 4e 75 6d 54 65 6d 70 73 3b 0d INT NumTemps;. 03e0: 0a 20 20 20 20 49 4e 54 20 53 74 61 74 69 63 46 . INT StaticF 03f0: 6c 6f 77 43 6f 6e 74 72 6f 6c 44 65 70 74 68 3b lowControlDepth; 0400: 0d 0a 20 20 20 20 49 4e 54 20 4e 75 6d 49 6e 73 .. INT NumIns 0410: 74 72 75 63 74 69 6f 6e 53 6c 6f 74 73 3b 0d 0a tructionSlots;.. 0420: 7d 0d 0a 0d 0a 63 6f 6e 73 74 20 44 33 44 50 53 }....const D3DPS 0430: 32 30 43 41 50 53 5f 41 52 42 49 54 52 41 52 59 20CAPS_ARBITRARY 0440: 53 57 49 5a 5a 4c 45 20 3d 20 28 31 3c 3c 30 29 SWIZZLE = (1<<0) 0450: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 53 32 30 ;..const D3DPS20 0460: 43 41 50 53 5f 47 52 41 44 49 45 4e 54 49 4e 53 CAPS_GRADIENTINS 0470: 54 52 55 43 54 49 4f 4e 53 20 3d 20 28 31 3c 3c TRUCTIONS = (1<< 0480: 31 29 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 53 1);..const D3DPS 0490: 32 30 43 41 50 53 5f 50 52 45 44 49 43 41 54 49 20CAPS_PREDICATI 04a0: 4f 4e 20 3d 20 28 31 3c 3c 32 29 3b 0d 0a 63 6f ON = (1<<2);..co 04b0: 6e 73 74 20 44 33 44 50 53 32 30 43 41 50 53 5f nst D3DPS20CAPS_ 04c0: 4e 4f 44 45 50 45 4e 44 45 4e 54 52 45 41 44 4c NODEPENDENTREADL 04d0: 49 4d 49 54 20 3d 20 28 31 3c 3c 33 29 3b 0d 0a IMIT = (1<<3);.. 04e0: 63 6f 6e 73 74 20 44 33 44 50 53 32 30 43 41 50 const D3DPS20CAP 04f0: 53 5f 4e 4f 54 45 58 49 4e 53 54 52 55 43 54 49 S_NOTEXINSTRUCTI 0500: 4f 4e 4c 49 4d 49 54 20 3d 20 28 31 3c 3c 34 29 ONLIMIT = (1<<4) 0510: 3b 0d 0a 0d 0a 63 6f 6e 73 74 20 44 33 44 50 53 ;....const D3DPS 0520: 32 30 5f 4d 41 58 5f 44 59 4e 41 4d 49 43 46 4c 20_MAX_DYNAMICFL 0530: 4f 57 43 4f 4e 54 52 4f 4c 44 45 50 54 48 20 3d OWCONTROLDEPTH = 0540: 20 32 34 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 24;..const D3DP 0550: 53 32 30 5f 4d 49 4e 5f 44 59 4e 41 4d 49 43 46 S20_MIN_DYNAMICF 0560: 4c 4f 57 43 4f 4e 54 52 4f 4c 44 45 50 54 48 20 LOWCONTROLDEPTH 0570: 3d 20 30 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 = 0;..const D3DP 0580: 53 32 30 5f 4d 41 58 5f 4e 55 4d 54 45 4d 50 53 S20_MAX_NUMTEMPS 0590: 20 3d 20 33 32 3b 0d 0a 63 6f 6e 73 74 20 44 33 = 32;..const D3 05a0: 44 50 53 32 30 5f 4d 49 4e 5f 4e 55 4d 54 45 4d DPS20_MIN_NUMTEM 05b0: 50 53 20 3d 20 31 32 3b 0d 0a 63 6f 6e 73 74 20 PS = 12;..const 05c0: 44 33 44 50 53 32 30 5f 4d 41 58 5f 53 54 41 54 D3DPS20_MAX_STAT 05d0: 49 43 46 4c 4f 57 43 4f 4e 54 52 4f 4c 44 45 50 ICFLOWCONTROLDEP 05e0: 54 48 20 3d 20 34 3b 0d 0a 63 6f 6e 73 74 20 44 TH = 4;..const D 05f0: 33 44 50 53 32 30 5f 4d 49 4e 5f 53 54 41 54 49 3DPS20_MIN_STATI 0600: 43 46 4c 4f 57 43 4f 4e 54 52 4f 4c 44 45 50 54 CFLOWCONTROLDEPT 0610: 48 20 3d 20 30 3b 0d 0a 63 6f 6e 73 74 20 44 33 H = 0;..const D3 0620: 44 50 53 32 30 5f 4d 41 58 5f 4e 55 4d 49 4e 53 DPS20_MAX_NUMINS 0630: 54 52 55 43 54 49 4f 4e 53 4c 4f 54 53 20 3d 20 TRUCTIONSLOTS = 0640: 35 31 32 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 512;..const D3DP 0650: 53 32 30 5f 4d 49 4e 5f 4e 55 4d 49 4e 53 54 52 S20_MIN_NUMINSTR 0660: 55 43 54 49 4f 4e 53 4c 4f 54 53 20 3d 20 39 36 UCTIONSLOTS = 96 0670: 3b 0d 0a 0d 0a 63 6f 6e 73 74 20 44 33 44 4d 49 ;....const D3DMI 0680: 4e 33 30 53 48 41 44 45 52 49 4e 53 54 52 55 43 N30SHADERINSTRUC 0690: 54 49 4f 4e 53 20 3d 20 35 31 32 3b 0d 0a 63 6f TIONS = 512;..co 06a0: 6e 73 74 20 44 33 44 4d 41 58 33 30 53 48 41 44 nst D3DMAX30SHAD 06b0: 45 52 49 4e 53 54 52 55 43 54 49 4f 4e 53 20 3d ERINSTRUCTIONS = 06c0: 20 33 32 37 36 38 3b 0d 0a 0d 0a 73 74 72 75 63 32768;....struc 06d0: 74 20 44 33 44 43 41 50 53 39 0d 0a 7b 0d 0a 20 t D3DCAPS9..{.. 06e0: 20 20 20 2f 2a 20 44 65 76 69 63 65 20 49 6e 66 /* Device Inf 06f0: 6f 20 2a 2f 0d 0a 20 20 20 20 44 33 44 44 45 56 o */.. D3DDEV 0700: 54 59 50 45 20 20 44 65 76 69 63 65 54 79 70 65 TYPE DeviceType 0710: 3b 0d 0a 20 20 20 20 55 49 4e 54 20 20 20 20 20 ;.. UINT 0720: 20 20 20 41 64 61 70 74 65 72 4f 72 64 69 6e 61 AdapterOrdina 0730: 6c 3b 0d 0a 0d 0a 20 20 20 20 2f 2a 20 43 61 70 l;.... /* Cap 0740: 73 20 66 72 6f 6d 20 44 58 37 20 44 72 61 77 20 s from DX7 Draw 0750: 2a 2f 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 20 */.. DWORD 0760: 43 61 70 73 3b 0d 0a 20 20 20 20 44 57 4f 52 44 Caps;.. DWORD 0770: 20 20 20 43 61 70 73 32 3b 0d 0a 20 20 20 20 44 Caps2;.. D 0780: 57 4f 52 44 20 20 20 43 61 70 73 33 3b 0d 0a 20 WORD Caps3;.. 0790: 20 20 20 44 57 4f 52 44 20 20 20 50 72 65 73 65 DWORD Prese 07a0: 6e 74 61 74 69 6f 6e 49 6e 74 65 72 76 61 6c 73 ntationIntervals 07b0: 3b 0d 0a 0d 0a 20 20 20 20 2f 2a 20 43 75 72 73 ;.... /* Curs 07c0: 6f 72 20 43 61 70 73 20 2a 2f 0d 0a 20 20 20 20 or Caps */.. 07d0: 44 57 4f 52 44 20 20 20 43 75 72 73 6f 72 43 61 DWORD CursorCa 07e0: 70 73 3b 0d 0a 0d 0a 20 20 20 20 2f 2a 20 33 44 ps;.... /* 3D 07f0: 20 44 65 76 69 63 65 20 43 61 70 73 20 2a 2f 0d Device Caps */. 0800: 0a 20 20 20 20 44 57 4f 52 44 20 20 20 44 65 76 . DWORD Dev 0810: 43 61 70 73 3b 0d 0a 0d 0a 20 20 20 20 44 57 4f Caps;.... DWO 0820: 52 44 20 20 20 50 72 69 6d 69 74 69 76 65 4d 69 RD PrimitiveMi 0830: 73 63 43 61 70 73 3b 0d 0a 20 20 20 20 44 57 4f scCaps;.. DWO 0840: 52 44 20 20 20 52 61 73 74 65 72 43 61 70 73 3b RD RasterCaps; 0850: 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 20 5a 43 .. DWORD ZC 0860: 6d 70 43 61 70 73 3b 0d 0a 20 20 20 20 44 57 4f mpCaps;.. DWO 0870: 52 44 20 20 20 53 72 63 42 6c 65 6e 64 43 61 70 RD SrcBlendCap 0880: 73 3b 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 20 s;.. DWORD 0890: 44 65 73 74 42 6c 65 6e 64 43 61 70 73 3b 0d 0a DestBlendCaps;.. 08a0: 20 20 20 20 44 57 4f 52 44 20 20 20 41 6c 70 68 DWORD Alph 08b0: 61 43 6d 70 43 61 70 73 3b 0d 0a 20 20 20 20 44 aCmpCaps;.. D 08c0: 57 4f 52 44 20 20 20 53 68 61 64 65 43 61 70 73 WORD ShadeCaps 08d0: 3b 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 20 54 ;.. DWORD T 08e0: 65 78 74 75 72 65 43 61 70 73 3b 0d 0a 20 20 20 extureCaps;.. 08f0: 20 44 57 4f 52 44 20 20 20 54 65 78 74 75 72 65 DWORD Texture 0900: 46 69 6c 74 65 72 43 61 70 73 3b 20 20 20 20 20 FilterCaps; 0910: 20 20 20 20 20 2f 2f 20 44 33 44 50 54 46 49 4c // D3DPTFIL 0920: 54 45 52 43 41 50 53 20 66 6f 72 20 49 44 69 72 TERCAPS for IDir 0930: 65 63 74 33 44 54 65 78 74 75 72 65 39 27 73 0d ect3DTexture9's. 0940: 0a 20 20 20 20 44 57 4f 52 44 20 20 20 43 75 62 . DWORD Cub 0950: 65 54 65 78 74 75 72 65 46 69 6c 74 65 72 43 61 eTextureFilterCa 0960: 70 73 3b 20 20 20 20 20 20 2f 2f 20 44 33 44 50 ps; // D3DP 0970: 54 46 49 4c 54 45 52 43 41 50 53 20 66 6f 72 20 TFILTERCAPS for 0980: 49 44 69 72 65 63 74 33 44 43 75 62 65 54 65 78 IDirect3DCubeTex 0990: 74 75 72 65 39 27 73 0d 0a 20 20 20 20 44 57 4f ture9's.. DWO 09a0: 52 44 20 20 20 56 6f 6c 75 6d 65 54 65 78 74 75 RD VolumeTextu 09b0: 72 65 46 69 6c 74 65 72 43 61 70 73 3b 20 20 20 reFilterCaps; 09c0: 20 2f 2f 20 44 33 44 50 54 46 49 4c 54 45 52 43 // D3DPTFILTERC 09d0: 41 50 53 20 66 6f 72 20 49 44 69 72 65 63 74 33 APS for IDirect3 09e0: 44 56 6f 6c 75 6d 65 54 65 78 74 75 72 65 39 27 DVolumeTexture9' 09f0: 73 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 20 54 s.. DWORD T 0a00: 65 78 74 75 72 65 41 64 64 72 65 73 73 43 61 70 extureAddressCap 0a10: 73 3b 20 20 20 20 20 20 20 20 20 2f 2f 20 44 33 s; // D3 0a20: 44 50 54 41 44 44 52 45 53 53 43 41 50 53 20 66 DPTADDRESSCAPS f 0a30: 6f 72 20 49 44 69 72 65 63 74 33 44 54 65 78 74 or IDirect3DText 0a40: 75 72 65 39 27 73 0d 0a 20 20 20 20 44 57 4f 52 ure9's.. DWOR 0a50: 44 20 20 20 56 6f 6c 75 6d 65 54 65 78 74 75 72 D VolumeTextur 0a60: 65 41 64 64 72 65 73 73 43 61 70 73 3b 20 20 20 eAddressCaps; 0a70: 2f 2f 20 44 33 44 50 54 41 44 44 52 45 53 53 43 // D3DPTADDRESSC 0a80: 41 50 53 20 66 6f 72 20 49 44 69 72 65 63 74 33 APS for IDirect3 0a90: 44 56 6f 6c 75 6d 65 54 65 78 74 75 72 65 39 27 DVolumeTexture9' 0aa0: 73 0d 0a 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 s.... DWORD 0ab0: 20 4c 69 6e 65 43 61 70 73 3b 20 20 20 20 20 20 LineCaps; 0ac0: 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 // 0ad0: 44 33 44 4c 49 4e 45 43 41 50 53 0d 0a 0d 0a 20 D3DLINECAPS.... 0ae0: 20 20 20 44 57 4f 52 44 20 20 20 4d 61 78 54 65 DWORD MaxTe 0af0: 78 74 75 72 65 57 69 64 74 68 2c 20 4d 61 78 54 xtureWidth, MaxT 0b00: 65 78 74 75 72 65 48 65 69 67 68 74 3b 0d 0a 20 extureHeight;.. 0b10: 20 20 20 44 57 4f 52 44 20 20 20 4d 61 78 56 6f DWORD MaxVo 0b20: 6c 75 6d 65 45 78 74 65 6e 74 3b 0d 0a 0d 0a 20 lumeExtent;.... 0b30: 20 20 20 44 57 4f 52 44 20 20 20 4d 61 78 54 65 DWORD MaxTe 0b40: 78 74 75 72 65 52 65 70 65 61 74 3b 0d 0a 20 20 xtureRepeat;.. 0b50: 20 20 44 57 4f 52 44 20 20 20 4d 61 78 54 65 78 DWORD MaxTex 0b60: 74 75 72 65 41 73 70 65 63 74 52 61 74 69 6f 3b tureAspectRatio; 0b70: 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 20 4d 61 .. DWORD Ma 0b80: 78 41 6e 69 73 6f 74 72 6f 70 79 3b 0d 0a 20 20 xAnisotropy;.. 0b90: 20 20 66 6c 6f 61 74 20 20 20 4d 61 78 56 65 72 float MaxVer 0ba0: 74 65 78 57 3b 0d 0a 0d 0a 20 20 20 20 66 6c 6f texW;.... flo 0bb0: 61 74 20 20 20 47 75 61 72 64 42 61 6e 64 4c 65 at GuardBandLe 0bc0: 66 74 3b 0d 0a 20 20 20 20 66 6c 6f 61 74 20 20 ft;.. float 0bd0: 20 47 75 61 72 64 42 61 6e 64 54 6f 70 3b 0d 0a GuardBandTop;.. 0be0: 20 20 20 20 66 6c 6f 61 74 20 20 20 47 75 61 72 float Guar 0bf0: 64 42 61 6e 64 52 69 67 68 74 3b 0d 0a 20 20 20 dBandRight;.. 0c00: 20 66 6c 6f 61 74 20 20 20 47 75 61 72 64 42 61 float GuardBa 0c10: 6e 64 42 6f 74 74 6f 6d 3b 0d 0a 0d 0a 20 20 20 ndBottom;.... 0c20: 20 66 6c 6f 61 74 20 20 20 45 78 74 65 6e 74 73 float Extents 0c30: 41 64 6a 75 73 74 3b 0d 0a 20 20 20 20 44 57 4f Adjust;.. DWO 0c40: 52 44 20 20 20 53 74 65 6e 63 69 6c 43 61 70 73 RD StencilCaps 0c50: 3b 0d 0a 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 ;.... DWORD 0c60: 20 46 56 46 43 61 70 73 3b 0d 0a 20 20 20 20 44 FVFCaps;.. D 0c70: 57 4f 52 44 20 20 20 54 65 78 74 75 72 65 4f 70 WORD TextureOp 0c80: 43 61 70 73 3b 0d 0a 20 20 20 20 44 57 4f 52 44 Caps;.. DWORD 0c90: 20 20 20 4d 61 78 54 65 78 74 75 72 65 42 6c 65 MaxTextureBle 0ca0: 6e 64 53 74 61 67 65 73 3b 0d 0a 20 20 20 20 44 ndStages;.. D 0cb0: 57 4f 52 44 20 20 20 4d 61 78 53 69 6d 75 6c 74 WORD MaxSimult 0cc0: 61 6e 65 6f 75 73 54 65 78 74 75 72 65 73 3b 0d aneousTextures;. 0cd0: 0a 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 20 56 ... DWORD V 0ce0: 65 72 74 65 78 50 72 6f 63 65 73 73 69 6e 67 43 ertexProcessingC 0cf0: 61 70 73 3b 0d 0a 20 20 20 20 44 57 4f 52 44 20 aps;.. DWORD 0d00: 20 20 4d 61 78 41 63 74 69 76 65 4c 69 67 68 74 MaxActiveLight 0d10: 73 3b 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 20 s;.. DWORD 0d20: 4d 61 78 55 73 65 72 43 6c 69 70 50 6c 61 6e 65 MaxUserClipPlane 0d30: 73 3b 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 20 s;.. DWORD 0d40: 4d 61 78 56 65 72 74 65 78 42 6c 65 6e 64 4d 61 MaxVertexBlendMa 0d50: 74 72 69 63 65 73 3b 0d 0a 20 20 20 20 44 57 4f trices;.. DWO 0d60: 52 44 20 20 20 4d 61 78 56 65 72 74 65 78 42 6c RD MaxVertexBl 0d70: 65 6e 64 4d 61 74 72 69 78 49 6e 64 65 78 3b 0d endMatrixIndex;. 0d80: 0a 0d 0a 20 20 20 20 66 6c 6f 61 74 20 20 20 4d ... float M 0d90: 61 78 50 6f 69 6e 74 53 69 7a 65 3b 0d 0a 0d 0a axPointSize;.... 0da0: 20 20 20 20 44 57 4f 52 44 20 20 20 4d 61 78 50 DWORD MaxP 0db0: 72 69 6d 69 74 69 76 65 43 6f 75 6e 74 3b 20 20 rimitiveCount; 0dc0: 20 20 20 20 20 20 20 20 2f 2f 20 6d 61 78 20 6e // max n 0dd0: 75 6d 62 65 72 20 6f 66 20 70 72 69 6d 69 74 69 umber of primiti 0de0: 76 65 73 20 70 65 72 20 44 72 61 77 50 72 69 6d ves per DrawPrim 0df0: 69 74 69 76 65 20 63 61 6c 6c 0d 0a 20 20 20 20 itive call.. 0e00: 44 57 4f 52 44 20 20 20 4d 61 78 56 65 72 74 65 DWORD MaxVerte 0e10: 78 49 6e 64 65 78 3b 0d 0a 20 20 20 20 44 57 4f xIndex;.. DWO 0e20: 52 44 20 20 20 4d 61 78 53 74 72 65 61 6d 73 3b RD MaxStreams; 0e30: 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 20 4d 61 .. DWORD Ma 0e40: 78 53 74 72 65 61 6d 53 74 72 69 64 65 3b 20 20 xStreamStride; 0e50: 20 20 20 20 20 20 20 20 20 20 2f 2f 20 6d 61 78 // max 0e60: 20 73 74 72 69 64 65 20 66 6f 72 20 53 65 74 53 stride for SetS 0e70: 74 72 65 61 6d 53 6f 75 72 63 65 0d 0a 0d 0a 20 treamSource.... 0e80: 20 20 20 44 57 4f 52 44 20 20 20 56 65 72 74 65 DWORD Verte 0e90: 78 53 68 61 64 65 72 56 65 72 73 69 6f 6e 3b 0d xShaderVersion;. 0ea0: 0a 20 20 20 20 44 57 4f 52 44 20 20 20 4d 61 78 . DWORD Max 0eb0: 56 65 72 74 65 78 53 68 61 64 65 72 43 6f 6e 73 VertexShaderCons 0ec0: 74 3b 20 20 20 20 20 20 20 2f 2f 20 6e 75 6d 62 t; // numb 0ed0: 65 72 20 6f 66 20 76 65 72 74 65 78 20 73 68 61 er of vertex sha 0ee0: 64 65 72 20 63 6f 6e 73 74 61 6e 74 20 72 65 67 der constant reg 0ef0: 69 73 74 65 72 73 0d 0a 0d 0a 20 20 20 20 44 57 isters.... DW 0f00: 4f 52 44 20 20 20 50 69 78 65 6c 53 68 61 64 65 ORD PixelShade 0f10: 72 56 65 72 73 69 6f 6e 3b 0d 0a 20 20 20 20 66 rVersion;.. f 0f20: 6c 6f 61 74 20 20 20 50 69 78 65 6c 53 68 61 64 loat PixelShad 0f30: 65 72 31 78 4d 61 78 56 61 6c 75 65 3b 20 20 20 er1xMaxValue; 0f40: 20 20 20 2f 2f 20 6d 61 78 20 76 61 6c 75 65 20 // max value 0f50: 73 74 6f 72 61 62 6c 65 20 69 6e 20 72 65 67 69 storable in regi 0f60: 73 74 65 72 73 20 6f 66 20 70 73 2e 31 2e 78 20 sters of ps.1.x 0f70: 73 68 61 64 65 72 73 0d 0a 0d 0a 20 20 20 20 2f shaders.... / 0f80: 2f 20 48 65 72 65 20 61 72 65 20 74 68 65 20 44 / Here are the D 0f90: 58 39 20 73 70 65 63 69 66 69 63 20 6f 6e 65 73 X9 specific ones 0fa0: 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 20 44 65 .. DWORD De 0fb0: 76 43 61 70 73 32 3b 0d 0a 0d 0a 20 20 20 20 66 vCaps2;.... f 0fc0: 6c 6f 61 74 20 20 20 4d 61 78 4e 70 61 74 63 68 loat MaxNpatch 0fd0: 54 65 73 73 65 6c 6c 61 74 69 6f 6e 4c 65 76 65 TessellationLeve 0fe0: 6c 3b 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 20 l;.. DWORD 0ff0: 52 65 73 65 72 76 65 64 35 3b 0d 0a 0d 0a 20 20 Reserved5;.... 1000: 20 20 55 49 4e 54 20 20 20 20 4d 61 73 74 65 72 UINT Master 1010: 41 64 61 70 74 65 72 4f 72 64 69 6e 61 6c 3b 20 AdapterOrdinal; 1020: 20 20 20 20 20 20 2f 2f 20 6f 72 64 69 6e 61 6c // ordinal 1030: 20 6f 66 20 6d 61 73 74 65 72 20 61 64 61 70 74 of master adapt 1040: 6f 72 20 66 6f 72 20 61 64 61 70 74 65 72 20 67 or for adapter g 1050: 72 6f 75 70 0d 0a 20 20 20 20 55 49 4e 54 20 20 roup.. UINT 1060: 20 20 41 64 61 70 74 65 72 4f 72 64 69 6e 61 6c AdapterOrdinal 1070: 49 6e 47 72 6f 75 70 3b 20 20 20 20 20 20 2f 2f InGroup; // 1080: 20 6f 72 64 69 6e 61 6c 20 69 6e 73 69 64 65 20 ordinal inside 1090: 74 68 65 20 61 64 61 70 74 65 72 20 67 72 6f 75 the adapter grou 10a0: 70 0d 0a 20 20 20 20 55 49 4e 54 20 20 20 20 4e p.. UINT N 10b0: 75 6d 62 65 72 4f 66 41 64 61 70 74 65 72 73 49 umberOfAdaptersI 10c0: 6e 47 72 6f 75 70 3b 20 20 20 20 2f 2f 20 6e 75 nGroup; // nu 10d0: 6d 62 65 72 20 6f 66 20 61 64 61 70 74 65 72 73 mber of adapters 10e0: 20 69 6e 20 74 68 69 73 20 61 64 61 70 74 65 72 in this adapter 10f0: 20 67 72 6f 75 70 20 28 6f 6e 6c 79 20 69 66 20 group (only if 1100: 6d 61 73 74 65 72 29 0d 0a 20 20 20 20 44 57 4f master).. DWO 1110: 52 44 20 20 20 44 65 63 6c 54 79 70 65 73 3b 20 RD DeclTypes; 1120: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 1130: 20 2f 2f 20 44 61 74 61 20 74 79 70 65 73 2c 20 // Data types, 1140: 73 75 70 70 6f 72 74 65 64 20 69 6e 20 76 65 72 supported in ver 1150: 74 65 78 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 tex declarations 1160: 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 20 4e 75 .. DWORD Nu 1170: 6d 53 69 6d 75 6c 74 61 6e 65 6f 75 73 52 54 73 mSimultaneousRTs 1180: 3b 20 20 20 20 20 20 20 20 20 2f 2f 20 57 69 6c ; // Wil 1190: 6c 20 62 65 20 61 74 20 6c 65 61 73 74 20 31 0d l be at least 1. 11a0: 0a 20 20 20 20 44 57 4f 52 44 20 20 20 53 74 72 . DWORD Str 11b0: 65 74 63 68 52 65 63 74 46 69 6c 74 65 72 43 61 etchRectFilterCa 11c0: 70 73 3b 20 20 20 20 20 20 2f 2f 20 46 69 6c 74 ps; // Filt 11d0: 65 72 20 63 61 70 73 20 73 75 70 70 6f 72 74 65 er caps supporte 11e0: 64 20 62 79 20 53 74 72 65 74 63 68 52 65 63 74 d by StretchRect 11f0: 0d 0a 20 20 20 20 44 33 44 56 53 48 41 44 45 52 .. D3DVSHADER 1200: 43 41 50 53 32 5f 30 20 56 53 32 30 43 61 70 73 CAPS2_0 VS20Caps 1210: 3b 0d 0a 20 20 20 20 44 33 44 50 53 48 41 44 45 ;.. D3DPSHADE 1220: 52 43 41 50 53 32 5f 30 20 50 53 32 30 43 61 70 RCAPS2_0 PS20Cap 1230: 73 3b 0d 0a 20 20 20 20 44 57 4f 52 44 20 20 20 s;.. DWORD 1240: 56 65 72 74 65 78 54 65 78 74 75 72 65 46 69 6c VertexTextureFil 1250: 74 65 72 43 61 70 73 3b 20 20 20 20 2f 2f 20 44 terCaps; // D 1260: 33 44 50 54 46 49 4c 54 45 52 43 41 50 53 20 66 3DPTFILTERCAPS f 1270: 6f 72 20 49 44 69 72 65 63 74 33 44 54 65 78 74 or IDirect3DText 1280: 75 72 65 39 27 73 20 66 6f 72 20 74 65 78 74 75 ure9's for textu 1290: 72 65 2c 20 75 73 65 64 20 69 6e 20 76 65 72 74 re, used in vert 12a0: 65 78 20 73 68 61 64 65 72 73 0d 0a 20 20 20 20 ex shaders.. 12b0: 44 57 4f 52 44 20 20 20 4d 61 78 56 53 68 61 64 DWORD MaxVShad 12c0: 65 72 49 6e 73 74 72 75 63 74 69 6f 6e 73 45 78 erInstructionsEx 12d0: 65 63 75 74 65 64 3b 20 2f 2f 20 6d 61 78 69 6d ecuted; // maxim 12e0: 75 6d 20 6e 75 6d 62 65 72 20 6f 66 20 76 65 72 um number of ver 12f0: 74 65 78 20 73 68 61 64 65 72 20 69 6e 73 74 72 tex shader instr 1300: 75 63 74 69 6f 6e 73 20 74 68 61 74 20 63 61 6e uctions that can 1310: 20 62 65 20 65 78 65 63 75 74 65 64 0d 0a 20 20 be executed.. 1320: 20 20 44 57 4f 52 44 20 20 20 4d 61 78 50 53 68 DWORD MaxPSh 1330: 61 64 65 72 49 6e 73 74 72 75 63 74 69 6f 6e 73 aderInstructions 1340: 45 78 65 63 75 74 65 64 3b 20 2f 2f 20 6d 61 78 Executed; // max 1350: 69 6d 75 6d 20 6e 75 6d 62 65 72 20 6f 66 20 70 imum number of p 1360: 69 78 65 6c 20 73 68 61 64 65 72 20 69 6e 73 74 ixel shader inst 1370: 72 75 63 74 69 6f 6e 73 20 74 68 61 74 20 63 61 ructions that ca 1380: 6e 20 62 65 20 65 78 65 63 75 74 65 64 0d 0a 20 n be executed.. 1390: 20 20 20 44 57 4f 52 44 20 20 20 4d 61 78 56 65 DWORD MaxVe 13a0: 72 74 65 78 53 68 61 64 65 72 33 30 49 6e 73 74 rtexShader30Inst 13b0: 72 75 63 74 69 6f 6e 53 6c 6f 74 73 3b 20 0d 0a ructionSlots; .. 13c0: 20 20 20 20 44 57 4f 52 44 20 20 20 4d 61 78 50 DWORD MaxP 13d0: 69 78 65 6c 53 68 61 64 65 72 33 30 49 6e 73 74 ixelShader30Inst 13e0: 72 75 63 74 69 6f 6e 53 6c 6f 74 73 3b 0d 0a 7d ructionSlots;..} 13f0: 0d 0a 0d 0a 2f 2f 0d 0a 2f 2f 20 42 49 54 20 44 ....//..// BIT D 1400: 45 46 49 4e 45 53 20 46 4f 52 20 44 33 44 43 41 EFINES FOR D3DCA 1410: 50 53 39 20 44 57 4f 52 44 20 4d 45 4d 42 45 52 PS9 DWORD MEMBER 1420: 53 0d 0a 2f 2f 0d 0a 0d 0a 2f 2f 0d 0a 2f 2f 20 S..//....//..// 1430: 43 61 70 73 0d 0a 2f 2f 0d 0a 63 6f 6e 73 74 20 Caps..//..const 1440: 44 33 44 43 41 50 53 5f 52 45 41 44 5f 53 43 41 D3DCAPS_READ_SCA 1450: 4e 4c 49 4e 45 20 3d 20 30 78 30 30 30 32 30 30 NLINE = 0x000200 1460: 30 30 4c 3b 0d 0a 0d 0a 2f 2f 0d 0a 2f 2f 20 43 00L;....//..// C 1470: 61 70 73 32 0d 0a 2f 2f 0d 0a 63 6f 6e 73 74 20 aps2..//..const 1480: 44 33 44 43 41 50 53 32 5f 46 55 4c 4c 53 43 52 D3DCAPS2_FULLSCR 1490: 45 45 4e 47 41 4d 4d 41 20 3d 20 30 78 30 30 30 EENGAMMA = 0x000 14a0: 32 30 30 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 20000L;..const D 14b0: 33 44 43 41 50 53 32 5f 43 41 4e 43 41 4c 49 42 3DCAPS2_CANCALIB 14c0: 52 41 54 45 47 41 4d 4d 41 20 3d 20 30 78 30 30 RATEGAMMA = 0x00 14d0: 31 30 30 30 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 100000L;..const 14e0: 44 33 44 43 41 50 53 32 5f 52 45 53 45 52 56 45 D3DCAPS2_RESERVE 14f0: 44 20 3d 20 30 78 30 32 30 30 30 30 30 30 4c 3b D = 0x02000000L; 1500: 0d 0a 63 6f 6e 73 74 20 44 33 44 43 41 50 53 32 ..const D3DCAPS2 1510: 5f 43 41 4e 4d 41 4e 41 47 45 52 45 53 4f 55 52 _CANMANAGERESOUR 1520: 43 45 20 3d 20 30 78 31 30 30 30 30 30 30 30 4c CE = 0x10000000L 1530: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 43 41 50 53 ;..const D3DCAPS 1540: 32 5f 44 59 4e 41 4d 49 43 54 45 58 54 55 52 45 2_DYNAMICTEXTURE 1550: 53 20 3d 20 30 78 32 30 30 30 30 30 30 30 4c 3b S = 0x20000000L; 1560: 0d 0a 63 6f 6e 73 74 20 44 33 44 43 41 50 53 32 ..const D3DCAPS2 1570: 5f 43 41 4e 41 55 54 4f 47 45 4e 4d 49 50 4d 41 _CANAUTOGENMIPMA 1580: 50 20 3d 20 30 78 34 30 30 30 30 30 30 30 4c 3b P = 0x40000000L; 1590: 0d 0a 0d 0a 63 6f 6e 73 74 20 44 33 44 43 41 50 ....const D3DCAP 15a0: 53 32 5f 43 41 4e 53 48 41 52 45 52 45 53 4f 55 S2_CANSHARERESOU 15b0: 52 43 45 20 3d 20 30 78 38 30 30 30 30 30 30 30 RCE = 0x80000000 15c0: 4c 3b 0d 0a 0d 0a 2f 2f 0d 0a 2f 2f 20 43 61 70 L;....//..// Cap 15d0: 73 33 0d 0a 2f 2f 0d 0a 63 6f 6e 73 74 20 44 33 s3..//..const D3 15e0: 44 43 41 50 53 33 5f 52 45 53 45 52 56 45 44 20 DCAPS3_RESERVED 15f0: 3d 20 30 78 38 30 30 30 30 30 31 66 4c 3b 0d 0a = 0x8000001fL;.. 1600: 0d 0a 2f 2f 20 49 6e 64 69 63 61 74 65 73 20 74 ..// Indicates t 1610: 68 61 74 20 74 68 65 20 64 65 76 69 63 65 20 63 hat the device c 1620: 61 6e 20 72 65 73 70 65 63 74 20 74 68 65 20 41 an respect the A 1630: 4c 50 48 41 42 4c 45 4e 44 45 4e 41 42 4c 45 20 LPHABLENDENABLE 1640: 72 65 6e 64 65 72 20 73 74 61 74 65 0d 0a 2f 2f render state..// 1650: 20 77 68 65 6e 20 66 75 6c 6c 73 63 72 65 65 6e when fullscreen 1660: 20 77 68 69 6c 65 20 75 73 69 6e 67 20 74 68 65 while using the 1670: 20 46 4c 49 50 20 6f 72 20 44 49 53 43 41 52 44 FLIP or DISCARD 1680: 20 73 77 61 70 20 65 66 66 65 63 74 2e 0d 0a 2f swap effect.../ 1690: 2f 20 43 4f 50 59 20 61 6e 64 20 43 4f 50 59 56 / COPY and COPYV 16a0: 53 59 4e 43 20 73 77 61 70 20 65 66 66 65 63 74 SYNC swap effect 16b0: 73 20 77 6f 72 6b 20 77 68 65 74 68 65 72 20 6f s work whether o 16c0: 72 20 6e 6f 74 20 74 68 69 73 20 66 6c 61 67 20 r not this flag 16d0: 69 73 20 73 65 74 2e 0d 0a 63 6f 6e 73 74 20 44 is set...const D 16e0: 33 44 43 41 50 53 33 5f 41 4c 50 48 41 5f 46 55 3DCAPS3_ALPHA_FU 16f0: 4c 4c 53 43 52 45 45 4e 5f 46 4c 49 50 5f 4f 52 LLSCREEN_FLIP_OR 1700: 5f 44 49 53 43 41 52 44 20 3d 20 30 78 30 30 30 _DISCARD = 0x000 1710: 30 30 30 32 30 4c 3b 0d 0a 0d 0a 2f 2f 20 49 6e 00020L;....// In 1720: 64 69 63 61 74 65 73 20 74 68 61 74 20 74 68 65 dicates that the 1730: 20 64 65 76 69 63 65 20 63 61 6e 20 70 65 72 66 device can perf 1740: 6f 72 6d 20 61 20 67 61 6d 6d 61 20 63 6f 72 72 orm a gamma corr 1750: 65 63 74 69 6f 6e 20 66 72 6f 6d 20 0d 0a 2f 2f ection from ..// 1760: 20 61 20 77 69 6e 64 6f 77 65 64 20 62 61 63 6b a windowed back 1770: 20 62 75 66 66 65 72 20 63 6f 6e 74 61 69 6e 69 buffer containi 1780: 6e 67 20 6c 69 6e 65 61 72 20 63 6f 6e 74 65 6e ng linear conten 1790: 74 20 74 6f 20 74 68 65 20 73 52 47 42 20 64 65 t to the sRGB de 17a0: 73 6b 74 6f 70 2e 0d 0a 63 6f 6e 73 74 20 44 33 sktop...const D3 17b0: 44 43 41 50 53 33 5f 4c 49 4e 45 41 52 5f 54 4f DCAPS3_LINEAR_TO 17c0: 5f 53 52 47 42 5f 50 52 45 53 45 4e 54 41 54 49 _SRGB_PRESENTATI 17d0: 4f 4e 20 3d 20 30 78 30 30 30 30 30 30 38 30 4c ON = 0x00000080L 17e0: 3b 0d 0a 0d 0a 63 6f 6e 73 74 20 44 33 44 43 41 ;....const D3DCA 17f0: 50 53 33 5f 43 4f 50 59 5f 54 4f 5f 56 49 44 4d PS3_COPY_TO_VIDM 1800: 45 4d 20 3d 20 30 78 30 30 30 30 30 31 30 30 4c EM = 0x00000100L 1810: 3b 20 2f 2a 20 44 65 76 69 63 65 20 63 61 6e 20 ; /* Device can 1820: 61 63 63 6c 65 72 61 74 65 20 63 6f 70 69 65 73 acclerate copies 1830: 20 66 72 6f 6d 20 73 79 73 6d 65 6d 20 74 6f 20 from sysmem to 1840: 6c 6f 63 61 6c 20 76 69 64 6d 65 6d 20 2a 2f 0d local vidmem */. 1850: 0a 63 6f 6e 73 74 20 44 33 44 43 41 50 53 33 5f .const D3DCAPS3_ 1860: 43 4f 50 59 5f 54 4f 5f 53 59 53 54 45 4d 4d 45 COPY_TO_SYSTEMME 1870: 4d 20 3d 20 30 78 30 30 30 30 30 32 30 30 4c 3b M = 0x00000200L; 1880: 20 2f 2a 20 44 65 76 69 63 65 20 63 61 6e 20 61 /* Device can a 1890: 63 63 6c 65 72 61 74 65 20 63 6f 70 69 65 73 20 cclerate copies 18a0: 66 72 6f 6d 20 6c 6f 63 61 6c 20 76 69 64 6d 65 from local vidme 18b0: 6d 20 74 6f 20 73 79 73 6d 65 6d 20 2a 2f 0d 0a m to sysmem */.. 18c0: 0d 0a 0d 0a 2f 2f 0d 0a 2f 2f 20 50 72 65 73 65 ....//..// Prese 18d0: 6e 74 61 74 69 6f 6e 49 6e 74 65 72 76 61 6c 73 ntationIntervals 18e0: 0d 0a 2f 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 50 ..//..const D3DP 18f0: 52 45 53 45 4e 54 5f 49 4e 54 45 52 56 41 4c 5f RESENT_INTERVAL_ 1900: 44 45 46 41 55 4c 54 20 3d 20 30 78 30 30 30 30 DEFAULT = 0x0000 1910: 30 30 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 0000L;..const D3 1920: 44 50 52 45 53 45 4e 54 5f 49 4e 54 45 52 56 41 DPRESENT_INTERVA 1930: 4c 5f 4f 4e 45 20 3d 20 30 78 30 30 30 30 30 30 L_ONE = 0x000000 1940: 30 31 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 01L;..const D3DP 1950: 52 45 53 45 4e 54 5f 49 4e 54 45 52 56 41 4c 5f RESENT_INTERVAL_ 1960: 54 57 4f 20 3d 20 30 78 30 30 30 30 30 30 30 32 TWO = 0x00000002 1970: 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 52 45 L;..const D3DPRE 1980: 53 45 4e 54 5f 49 4e 54 45 52 56 41 4c 5f 54 48 SENT_INTERVAL_TH 1990: 52 45 45 20 3d 20 30 78 30 30 30 30 30 30 30 34 REE = 0x00000004 19a0: 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 52 45 L;..const D3DPRE 19b0: 53 45 4e 54 5f 49 4e 54 45 52 56 41 4c 5f 46 4f SENT_INTERVAL_FO 19c0: 55 52 20 3d 20 30 78 30 30 30 30 30 30 30 38 4c UR = 0x00000008L 19d0: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 52 45 53 ;..const D3DPRES 19e0: 45 4e 54 5f 49 4e 54 45 52 56 41 4c 5f 49 4d 4d ENT_INTERVAL_IMM 19f0: 45 44 49 41 54 45 20 3d 20 30 78 38 30 30 30 30 EDIATE = 0x80000 1a00: 30 30 30 4c 3b 0d 0a 0d 0a 2f 2f 0d 0a 2f 2f 20 000L;....//..// 1a10: 43 75 72 73 6f 72 43 61 70 73 0d 0a 2f 2f 0d 0a CursorCaps..//.. 1a20: 2f 2f 20 44 72 69 76 65 72 20 73 75 70 70 6f 72 // Driver suppor 1a30: 74 73 20 48 57 20 63 6f 6c 6f 72 20 63 75 72 73 ts HW color curs 1a40: 6f 72 20 69 6e 20 61 74 20 6c 65 61 73 74 20 68 or in at least h 1a50: 69 2d 72 65 73 20 6d 6f 64 65 73 28 68 65 69 67 i-res modes(heig 1a60: 68 74 20 3e 3d 34 30 30 29 0d 0a 63 6f 6e 73 74 ht >=400)..const 1a70: 20 44 33 44 43 55 52 53 4f 52 43 41 50 53 5f 43 D3DCURSORCAPS_C 1a80: 4f 4c 4f 52 20 3d 20 30 78 30 30 30 30 30 30 30 OLOR = 0x0000000 1a90: 31 4c 3b 0d 0a 2f 2f 20 44 72 69 76 65 72 20 73 1L;..// Driver s 1aa0: 75 70 70 6f 72 74 73 20 48 57 20 63 75 72 73 6f upports HW curso 1ab0: 72 20 61 6c 73 6f 20 69 6e 20 6c 6f 77 2d 72 65 r also in low-re 1ac0: 73 20 6d 6f 64 65 73 28 68 65 69 67 68 74 20 3c s modes(height < 1ad0: 20 34 30 30 29 0d 0a 63 6f 6e 73 74 20 44 33 44 400)..const D3D 1ae0: 43 55 52 53 4f 52 43 41 50 53 5f 4c 4f 57 52 45 CURSORCAPS_LOWRE 1af0: 53 20 3d 20 30 78 30 30 30 30 30 30 30 32 4c 3b S = 0x00000002L; 1b00: 0d 0a 0d 0a 2f 2f 0d 0a 2f 2f 20 44 65 76 43 61 ....//..// DevCa 1b10: 70 73 0d 0a 2f 2f 0d 0a 63 6f 6e 73 74 20 44 33 ps..//..const D3 1b20: 44 44 45 56 43 41 50 53 5f 45 58 45 43 55 54 45 DDEVCAPS_EXECUTE 1b30: 53 59 53 54 45 4d 4d 45 4d 4f 52 59 20 3d 20 30 SYSTEMMEMORY = 0 1b40: 78 30 30 30 30 30 30 31 30 4c 3b 20 2f 2a 20 44 x00000010L; /* D 1b50: 65 76 69 63 65 20 63 61 6e 20 75 73 65 20 65 78 evice can use ex 1b60: 65 63 75 74 65 20 62 75 66 66 65 72 73 20 66 72 ecute buffers fr 1b70: 6f 6d 20 73 79 73 74 65 6d 20 6d 65 6d 6f 72 79 om system memory 1b80: 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 44 45 */..const D3DDE 1b90: 56 43 41 50 53 5f 45 58 45 43 55 54 45 56 49 44 VCAPS_EXECUTEVID 1ba0: 45 4f 4d 45 4d 4f 52 59 20 3d 20 30 78 30 30 30 EOMEMORY = 0x000 1bb0: 30 30 30 32 30 4c 3b 20 2f 2a 20 44 65 76 69 63 00020L; /* Devic 1bc0: 65 20 63 61 6e 20 75 73 65 20 65 78 65 63 75 74 e can use execut 1bd0: 65 20 62 75 66 66 65 72 73 20 66 72 6f 6d 20 76 e buffers from v 1be0: 69 64 65 6f 20 6d 65 6d 6f 72 79 20 2a 2f 0d 0a ideo memory */.. 1bf0: 63 6f 6e 73 74 20 44 33 44 44 45 56 43 41 50 53 const D3DDEVCAPS 1c00: 5f 54 4c 56 45 52 54 45 58 53 59 53 54 45 4d 4d _TLVERTEXSYSTEMM 1c10: 45 4d 4f 52 59 20 3d 20 30 78 30 30 30 30 30 30 EMORY = 0x000000 1c20: 34 30 4c 3b 20 2f 2a 20 44 65 76 69 63 65 20 63 40L; /* Device c 1c30: 61 6e 20 75 73 65 20 54 4c 20 62 75 66 66 65 72 an use TL buffer 1c40: 73 20 66 72 6f 6d 20 73 79 73 74 65 6d 20 6d 65 s from system me 1c50: 6d 6f 72 79 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 mory */..const D 1c60: 33 44 44 45 56 43 41 50 53 5f 54 4c 56 45 52 54 3DDEVCAPS_TLVERT 1c70: 45 58 56 49 44 45 4f 4d 45 4d 4f 52 59 20 3d 20 EXVIDEOMEMORY = 1c80: 30 78 30 30 30 30 30 30 38 30 4c 3b 20 2f 2a 20 0x00000080L; /* 1c90: 44 65 76 69 63 65 20 63 61 6e 20 75 73 65 20 54 Device can use T 1ca0: 4c 20 62 75 66 66 65 72 73 20 66 72 6f 6d 20 76 L buffers from v 1cb0: 69 64 65 6f 20 6d 65 6d 6f 72 79 20 2a 2f 0d 0a ideo memory */.. 1cc0: 63 6f 6e 73 74 20 44 33 44 44 45 56 43 41 50 53 const D3DDEVCAPS 1cd0: 5f 54 45 58 54 55 52 45 53 59 53 54 45 4d 4d 45 _TEXTURESYSTEMME 1ce0: 4d 4f 52 59 20 3d 20 30 78 30 30 30 30 30 31 30 MORY = 0x0000010 1cf0: 30 4c 3b 20 2f 2a 20 44 65 76 69 63 65 20 63 61 0L; /* Device ca 1d00: 6e 20 74 65 78 74 75 72 65 20 66 72 6f 6d 20 73 n texture from s 1d10: 79 73 74 65 6d 20 6d 65 6d 6f 72 79 20 2a 2f 0d ystem memory */. 1d20: 0a 63 6f 6e 73 74 20 44 33 44 44 45 56 43 41 50 .const D3DDEVCAP 1d30: 53 5f 54 45 58 54 55 52 45 56 49 44 45 4f 4d 45 S_TEXTUREVIDEOME 1d40: 4d 4f 52 59 20 3d 20 30 78 30 30 30 30 30 32 30 MORY = 0x0000020 1d50: 30 4c 3b 20 2f 2a 20 44 65 76 69 63 65 20 63 61 0L; /* Device ca 1d60: 6e 20 74 65 78 74 75 72 65 20 66 72 6f 6d 20 64 n texture from d 1d70: 65 76 69 63 65 20 6d 65 6d 6f 72 79 20 2a 2f 0d evice memory */. 1d80: 0a 63 6f 6e 73 74 20 44 33 44 44 45 56 43 41 50 .const D3DDEVCAP 1d90: 53 5f 44 52 41 57 50 52 49 4d 54 4c 56 45 52 54 S_DRAWPRIMTLVERT 1da0: 45 58 20 3d 20 30 78 30 30 30 30 30 34 30 30 4c EX = 0x00000400L 1db0: 3b 20 2f 2a 20 44 65 76 69 63 65 20 63 61 6e 20 ; /* Device can 1dc0: 64 72 61 77 20 54 4c 56 45 52 54 45 58 20 70 72 draw TLVERTEX pr 1dd0: 69 6d 69 74 69 76 65 73 20 2a 2f 0d 0a 63 6f 6e imitives */..con 1de0: 73 74 20 44 33 44 44 45 56 43 41 50 53 5f 43 41 st D3DDEVCAPS_CA 1df0: 4e 52 45 4e 44 45 52 41 46 54 45 52 46 4c 49 50 NRENDERAFTERFLIP 1e00: 20 3d 20 30 78 30 30 30 30 30 38 30 30 4c 3b 20 = 0x00000800L; 1e10: 2f 2a 20 44 65 76 69 63 65 20 63 61 6e 20 72 65 /* Device can re 1e20: 6e 64 65 72 20 77 69 74 68 6f 75 74 20 77 61 69 nder without wai 1e30: 74 69 6e 67 20 66 6f 72 20 66 6c 69 70 20 74 6f ting for flip to 1e40: 20 63 6f 6d 70 6c 65 74 65 20 2a 2f 0d 0a 63 6f complete */..co 1e50: 6e 73 74 20 44 33 44 44 45 56 43 41 50 53 5f 54 nst D3DDEVCAPS_T 1e60: 45 58 54 55 52 45 4e 4f 4e 4c 4f 43 41 4c 56 49 EXTURENONLOCALVI 1e70: 44 4d 45 4d 20 3d 20 30 78 30 30 30 30 31 30 30 DMEM = 0x0000100 1e80: 30 4c 3b 20 2f 2a 20 44 65 76 69 63 65 20 63 61 0L; /* Device ca 1e90: 6e 20 74 65 78 74 75 72 65 20 66 72 6f 6d 20 6e n texture from n 1ea0: 6f 6e 6c 6f 63 61 6c 20 76 69 64 65 6f 20 6d 65 onlocal video me 1eb0: 6d 6f 72 79 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 mory */..const D 1ec0: 33 44 44 45 56 43 41 50 53 5f 44 52 41 57 50 52 3DDEVCAPS_DRAWPR 1ed0: 49 4d 49 54 49 56 45 53 32 20 3d 20 30 78 30 30 IMITIVES2 = 0x00 1ee0: 30 30 32 30 30 30 4c 3b 20 2f 2a 20 44 65 76 69 002000L; /* Devi 1ef0: 63 65 20 63 61 6e 20 73 75 70 70 6f 72 74 20 44 ce can support D 1f00: 72 61 77 50 72 69 6d 69 74 69 76 65 73 32 20 2a rawPrimitives2 * 1f10: 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 44 45 56 43 /..const D3DDEVC 1f20: 41 50 53 5f 53 45 50 41 52 41 54 45 54 45 58 54 APS_SEPARATETEXT 1f30: 55 52 45 4d 45 4d 4f 52 49 45 53 20 3d 20 30 78 UREMEMORIES = 0x 1f40: 30 30 30 30 34 30 30 30 4c 3b 20 2f 2a 20 44 65 00004000L; /* De 1f50: 76 69 63 65 20 69 73 20 74 65 78 74 75 72 69 6e vice is texturin 1f60: 67 20 66 72 6f 6d 20 73 65 70 61 72 61 74 65 20 g from separate 1f70: 6d 65 6d 6f 72 79 20 70 6f 6f 6c 73 20 2a 2f 0d memory pools */. 1f80: 0a 63 6f 6e 73 74 20 44 33 44 44 45 56 43 41 50 .const D3DDEVCAP 1f90: 53 5f 44 52 41 57 50 52 49 4d 49 54 49 56 45 53 S_DRAWPRIMITIVES 1fa0: 32 45 58 20 3d 20 30 78 30 30 30 30 38 30 30 30 2EX = 0x00008000 1fb0: 4c 3b 20 2f 2a 20 44 65 76 69 63 65 20 63 61 6e L; /* Device can 1fc0: 20 73 75 70 70 6f 72 74 20 45 78 74 65 6e 64 65 support Extende 1fd0: 64 20 44 72 61 77 50 72 69 6d 69 74 69 76 65 73 d DrawPrimitives 1fe0: 32 20 69 2e 65 2e 20 44 58 37 20 63 6f 6d 70 6c 2 i.e. DX7 compl 1ff0: 69 61 6e 74 20 64 72 69 76 65 72 2a 2f 0d 0a 63 iant driver*/..c 2000: 6f 6e 73 74 20 44 33 44 44 45 56 43 41 50 53 5f onst D3DDEVCAPS_ 2010: 48 57 54 52 41 4e 53 46 4f 52 4d 41 4e 44 4c 49 HWTRANSFORMANDLI 2020: 47 48 54 20 3d 20 30 78 30 30 30 31 30 30 30 30 GHT = 0x00010000 2030: 4c 3b 20 2f 2a 20 44 65 76 69 63 65 20 63 61 6e L; /* Device can 2040: 20 73 75 70 70 6f 72 74 20 74 72 61 6e 73 66 6f support transfo 2050: 72 6d 61 74 69 6f 6e 20 61 6e 64 20 6c 69 67 68 rmation and ligh 2060: 74 69 6e 67 20 69 6e 20 68 61 72 64 77 61 72 65 ting in hardware 2070: 20 61 6e 64 20 44 52 41 57 50 52 49 4d 49 54 49 and DRAWPRIMITI 2080: 56 45 53 32 45 58 20 6d 75 73 74 20 62 65 20 61 VES2EX must be a 2090: 6c 73 6f 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 33 lso */..const D3 20a0: 44 44 45 56 43 41 50 53 5f 43 41 4e 42 4c 54 53 DDEVCAPS_CANBLTS 20b0: 59 53 54 4f 4e 4f 4e 4c 4f 43 41 4c 20 3d 20 30 YSTONONLOCAL = 0 20c0: 78 30 30 30 32 30 30 30 30 4c 3b 20 2f 2a 20 44 x00020000L; /* D 20d0: 65 76 69 63 65 20 73 75 70 70 6f 72 74 73 20 61 evice supports a 20e0: 20 54 65 78 20 42 6c 74 20 66 72 6f 6d 20 73 79 Tex Blt from sy 20f0: 73 74 65 6d 20 6d 65 6d 6f 72 79 20 74 6f 20 6e stem memory to n 2100: 6f 6e 2d 6c 6f 63 61 6c 20 76 69 64 6d 65 6d 20 on-local vidmem 2110: 2a 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 44 45 56 */..const D3DDEV 2120: 43 41 50 53 5f 48 57 52 41 53 54 45 52 49 5a 41 CAPS_HWRASTERIZA 2130: 54 49 4f 4e 20 3d 20 30 78 30 30 30 38 30 30 30 TION = 0x0008000 2140: 30 4c 3b 20 2f 2a 20 44 65 76 69 63 65 20 68 61 0L; /* Device ha 2150: 73 20 48 57 20 61 63 63 65 6c 65 72 61 74 69 6f s HW acceleratio 2160: 6e 20 66 6f 72 20 72 61 73 74 65 72 69 7a 61 74 n for rasterizat 2170: 69 6f 6e 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 33 ion */..const D3 2180: 44 44 45 56 43 41 50 53 5f 50 55 52 45 44 45 56 DDEVCAPS_PUREDEV 2190: 49 43 45 20 3d 20 30 78 30 30 31 30 30 30 30 30 ICE = 0x00100000 21a0: 4c 3b 20 2f 2a 20 44 65 76 69 63 65 20 73 75 70 L; /* Device sup 21b0: 70 6f 72 74 73 20 44 33 44 43 52 45 41 54 45 5f ports D3DCREATE_ 21c0: 50 55 52 45 44 45 56 49 43 45 20 2a 2f 0d 0a 63 PUREDEVICE */..c 21d0: 6f 6e 73 74 20 44 33 44 44 45 56 43 41 50 53 5f onst D3DDEVCAPS_ 21e0: 51 55 49 4e 54 49 43 52 54 50 41 54 43 48 45 53 QUINTICRTPATCHES 21f0: 20 3d 20 30 78 30 30 32 30 30 30 30 30 4c 3b 20 = 0x00200000L; 2200: 2f 2a 20 44 65 76 69 63 65 20 73 75 70 70 6f 72 /* Device suppor 2210: 74 73 20 71 75 69 6e 74 69 63 20 42 65 7a 69 65 ts quintic Bezie 2220: 72 73 20 61 6e 64 20 42 53 70 6c 69 6e 65 73 20 rs and BSplines 2230: 2a 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 44 45 56 */..const D3DDEV 2240: 43 41 50 53 5f 52 54 50 41 54 43 48 45 53 20 3d CAPS_RTPATCHES = 2250: 20 30 78 30 30 34 30 30 30 30 30 4c 3b 20 2f 2a 0x00400000L; /* 2260: 20 44 65 76 69 63 65 20 73 75 70 70 6f 72 74 73 Device supports 2270: 20 52 65 63 74 20 61 6e 64 20 54 72 69 20 70 61 Rect and Tri pa 2280: 74 63 68 65 73 20 2a 2f 0d 0a 63 6f 6e 73 74 20 tches */..const 2290: 44 33 44 44 45 56 43 41 50 53 5f 52 54 50 41 54 D3DDEVCAPS_RTPAT 22a0: 43 48 48 41 4e 44 4c 45 5a 45 52 4f 20 3d 20 30 CHHANDLEZERO = 0 22b0: 78 30 30 38 30 30 30 30 30 4c 3b 20 2f 2a 20 49 x00800000L; /* I 22c0: 6e 64 69 63 61 74 65 73 20 74 68 61 74 20 52 54 ndicates that RT 22d0: 20 50 61 74 63 68 65 73 20 6d 61 79 20 62 65 20 Patches may be 22e0: 64 72 61 77 6e 20 65 66 66 69 63 69 65 6e 74 6c drawn efficientl 22f0: 79 20 75 73 69 6e 67 20 68 61 6e 64 6c 65 20 30 y using handle 0 2300: 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 44 45 */..const D3DDE 2310: 56 43 41 50 53 5f 4e 50 41 54 43 48 45 53 20 3d VCAPS_NPATCHES = 2320: 20 30 78 30 31 30 30 30 30 30 30 4c 3b 20 2f 2a 0x01000000L; /* 2330: 20 44 65 76 69 63 65 20 73 75 70 70 6f 72 74 73 Device supports 2340: 20 4e 2d 50 61 74 63 68 65 73 20 2a 2f 0d 0a 0d N-Patches */... 2350: 0a 2f 2f 0d 0a 2f 2f 20 50 72 69 6d 69 74 69 76 .//..// Primitiv 2360: 65 4d 69 73 63 43 61 70 73 0d 0a 2f 2f 0d 0a 63 eMiscCaps..//..c 2370: 6f 6e 73 74 20 44 33 44 50 4d 49 53 43 43 41 50 onst D3DPMISCCAP 2380: 53 5f 4d 41 53 4b 5a 20 3d 20 30 78 30 30 30 30 S_MASKZ = 0x0000 2390: 30 30 30 32 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 0002L;..const D3 23a0: 44 50 4d 49 53 43 43 41 50 53 5f 43 55 4c 4c 4e DPMISCCAPS_CULLN 23b0: 4f 4e 45 20 3d 20 30 78 30 30 30 30 30 30 31 30 ONE = 0x00000010 23c0: 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 4d 49 L;..const D3DPMI 23d0: 53 43 43 41 50 53 5f 43 55 4c 4c 43 57 20 3d 20 SCCAPS_CULLCW = 23e0: 30 78 30 30 30 30 30 30 32 30 4c 3b 0d 0a 63 6f 0x00000020L;..co 23f0: 6e 73 74 20 44 33 44 50 4d 49 53 43 43 41 50 53 nst D3DPMISCCAPS 2400: 5f 43 55 4c 4c 43 43 57 20 3d 20 30 78 30 30 30 _CULLCCW = 0x000 2410: 30 30 30 34 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 00040L;..const D 2420: 33 44 50 4d 49 53 43 43 41 50 53 5f 43 4f 4c 4f 3DPMISCCAPS_COLO 2430: 52 57 52 49 54 45 45 4e 41 42 4c 45 20 3d 20 30 RWRITEENABLE = 0 2440: 78 30 30 30 30 30 30 38 30 4c 3b 0d 0a 63 6f 6e x00000080L;..con 2450: 73 74 20 44 33 44 50 4d 49 53 43 43 41 50 53 5f st D3DPMISCCAPS_ 2460: 43 4c 49 50 50 4c 41 4e 45 53 43 41 4c 45 44 50 CLIPPLANESCALEDP 2470: 4f 49 4e 54 53 20 3d 20 30 78 30 30 30 30 30 31 OINTS = 0x000001 2480: 30 30 4c 3b 20 2f 2a 20 44 65 76 69 63 65 20 63 00L; /* Device c 2490: 6f 72 72 65 63 74 6c 79 20 63 6c 69 70 73 20 73 orrectly clips s 24a0: 63 61 6c 65 64 20 70 6f 69 6e 74 73 20 74 6f 20 caled points to 24b0: 63 6c 69 70 20 70 6c 61 6e 65 73 20 2a 2f 0d 0a clip planes */.. 24c0: 63 6f 6e 73 74 20 44 33 44 50 4d 49 53 43 43 41 const D3DPMISCCA 24d0: 50 53 5f 43 4c 49 50 54 4c 56 45 52 54 53 20 3d PS_CLIPTLVERTS = 24e0: 20 30 78 30 30 30 30 30 32 30 30 4c 3b 20 2f 2a 0x00000200L; /* 24f0: 20 64 65 76 69 63 65 20 77 69 6c 6c 20 63 6c 69 device will cli 2500: 70 20 70 6f 73 74 2d 74 72 61 6e 73 66 6f 72 6d p post-transform 2510: 65 64 20 76 65 72 74 65 78 20 70 72 69 6d 69 74 ed vertex primit 2520: 69 76 65 73 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 ives */..const D 2530: 33 44 50 4d 49 53 43 43 41 50 53 5f 54 53 53 41 3DPMISCCAPS_TSSA 2540: 52 47 54 45 4d 50 20 3d 20 30 78 30 30 30 30 30 RGTEMP = 0x00000 2550: 34 30 30 4c 3b 20 2f 2a 20 64 65 76 69 63 65 20 400L; /* device 2560: 73 75 70 70 6f 72 74 73 20 44 33 44 54 41 5f 54 supports D3DTA_T 2570: 45 4d 50 20 66 6f 72 20 74 65 6d 70 6f 72 61 72 EMP for temporar 2580: 79 20 72 65 67 69 73 74 65 72 20 2a 2f 0d 0a 63 y register */..c 2590: 6f 6e 73 74 20 44 33 44 50 4d 49 53 43 43 41 50 onst D3DPMISCCAP 25a0: 53 5f 42 4c 45 4e 44 4f 50 20 3d 20 30 78 30 30 S_BLENDOP = 0x00 25b0: 30 30 30 38 30 30 4c 3b 20 2f 2a 20 64 65 76 69 000800L; /* devi 25c0: 63 65 20 73 75 70 70 6f 72 74 73 20 44 33 44 52 ce supports D3DR 25d0: 53 5f 42 4c 45 4e 44 4f 50 20 2a 2f 0d 0a 63 6f S_BLENDOP */..co 25e0: 6e 73 74 20 44 33 44 50 4d 49 53 43 43 41 50 53 nst D3DPMISCCAPS 25f0: 5f 4e 55 4c 4c 52 45 46 45 52 45 4e 43 45 20 3d _NULLREFERENCE = 2600: 20 30 78 30 30 30 30 31 30 30 30 4c 3b 20 2f 2a 0x00001000L; /* 2610: 20 52 65 66 65 72 65 6e 63 65 20 44 65 76 69 63 Reference Devic 2620: 65 20 74 68 61 74 20 64 6f 65 73 6e 74 20 72 65 e that doesnt re 2630: 6e 64 65 72 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 nder */..const D 2640: 33 44 50 4d 49 53 43 43 41 50 53 5f 49 4e 44 45 3DPMISCCAPS_INDE 2650: 50 45 4e 44 45 4e 54 57 52 49 54 45 4d 41 53 4b PENDENTWRITEMASK 2660: 53 20 3d 20 30 78 30 30 30 30 34 30 30 30 4c 3b S = 0x00004000L; 2670: 20 2f 2a 20 44 65 76 69 63 65 20 73 75 70 70 6f /* Device suppo 2680: 72 74 73 20 69 6e 64 65 70 65 6e 64 65 6e 74 20 rts independent 2690: 77 72 69 74 65 20 6d 61 73 6b 73 20 66 6f 72 20 write masks for 26a0: 4d 45 54 20 6f 72 20 4d 52 54 20 2a 2f 0d 0a 63 MET or MRT */..c 26b0: 6f 6e 73 74 20 44 33 44 50 4d 49 53 43 43 41 50 onst D3DPMISCCAP 26c0: 53 5f 50 45 52 53 54 41 47 45 43 4f 4e 53 54 41 S_PERSTAGECONSTA 26d0: 4e 54 20 3d 20 30 78 30 30 30 30 38 30 30 30 4c NT = 0x00008000L 26e0: 3b 20 2f 2a 20 44 65 76 69 63 65 20 73 75 70 70 ; /* Device supp 26f0: 6f 72 74 73 20 70 65 72 2d 73 74 61 67 65 20 63 orts per-stage c 2700: 6f 6e 73 74 61 6e 74 73 20 2a 2f 0d 0a 63 6f 6e onstants */..con 2710: 73 74 20 44 33 44 50 4d 49 53 43 43 41 50 53 5f st D3DPMISCCAPS_ 2720: 46 4f 47 41 4e 44 53 50 45 43 55 4c 41 52 41 4c FOGANDSPECULARAL 2730: 50 48 41 20 3d 20 30 78 30 30 30 31 30 30 30 30 PHA = 0x00010000 2740: 4c 3b 20 2f 2a 20 44 65 76 69 63 65 20 73 75 70 L; /* Device sup 2750: 70 6f 72 74 73 20 73 65 70 61 72 61 74 65 20 66 ports separate f 2760: 6f 67 20 61 6e 64 20 73 70 65 63 75 6c 61 72 20 og and specular 2770: 61 6c 70 68 61 20 28 6d 61 6e 79 20 64 65 76 69 alpha (many devi 2780: 63 65 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ces.. 2790: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 27a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 27b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 u 27c0: 73 65 20 74 68 65 20 73 70 65 63 75 6c 61 72 20 se the specular 27d0: 61 6c 70 68 61 20 63 68 61 6e 6e 65 6c 20 74 6f alpha channel to 27e0: 20 73 74 6f 72 65 20 66 6f 67 20 66 61 63 74 6f store fog facto 27f0: 72 29 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 r) */..const D3D 2800: 50 4d 49 53 43 43 41 50 53 5f 53 45 50 41 52 41 PMISCCAPS_SEPARA 2810: 54 45 41 4c 50 48 41 42 4c 45 4e 44 20 3d 20 30 TEALPHABLEND = 0 2820: 78 30 30 30 32 30 30 30 30 4c 3b 20 2f 2a 20 44 x00020000L; /* D 2830: 65 76 69 63 65 20 73 75 70 70 6f 72 74 73 20 73 evice supports s 2840: 65 70 61 72 61 74 65 20 62 6c 65 6e 64 20 73 65 eparate blend se 2850: 74 74 69 6e 67 73 20 66 6f 72 20 74 68 65 20 61 ttings for the a 2860: 6c 70 68 61 20 63 68 61 6e 6e 65 6c 20 2a 2f 0d lpha channel */. 2870: 0a 63 6f 6e 73 74 20 44 33 44 50 4d 49 53 43 43 .const D3DPMISCC 2880: 41 50 53 5f 4d 52 54 49 4e 44 45 50 45 4e 44 45 APS_MRTINDEPENDE 2890: 4e 54 42 49 54 44 45 50 54 48 53 20 3d 20 30 78 NTBITDEPTHS = 0x 28a0: 30 30 30 34 30 30 30 30 4c 3b 20 2f 2a 20 44 65 00040000L; /* De 28b0: 76 69 63 65 20 73 75 70 70 6f 72 74 73 20 64 69 vice supports di 28c0: 66 66 65 72 65 6e 74 20 62 69 74 20 64 65 70 74 fferent bit dept 28d0: 68 73 20 66 6f 72 20 4d 52 54 20 2a 2f 0d 0a 63 hs for MRT */..c 28e0: 6f 6e 73 74 20 44 33 44 50 4d 49 53 43 43 41 50 onst D3DPMISCCAP 28f0: 53 5f 4d 52 54 50 4f 53 54 50 49 58 45 4c 53 48 S_MRTPOSTPIXELSH 2900: 41 44 45 52 42 4c 45 4e 44 49 4e 47 20 3d 20 30 ADERBLENDING = 0 2910: 78 30 30 30 38 30 30 30 30 4c 3b 20 2f 2a 20 44 x00080000L; /* D 2920: 65 76 69 63 65 20 73 75 70 70 6f 72 74 73 20 70 evice supports p 2930: 6f 73 74 2d 70 69 78 65 6c 20 73 68 61 64 65 72 ost-pixel shader 2940: 20 6f 70 65 72 61 74 69 6f 6e 73 20 66 6f 72 20 operations for 2950: 4d 52 54 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 33 MRT */..const D3 2960: 44 50 4d 49 53 43 43 41 50 53 5f 46 4f 47 56 45 DPMISCCAPS_FOGVE 2970: 52 54 45 58 43 4c 41 4d 50 45 44 20 3d 20 30 78 RTEXCLAMPED = 0x 2980: 30 30 31 30 30 30 30 30 4c 3b 20 2f 2a 20 44 65 00100000L; /* De 2990: 76 69 63 65 20 63 6c 61 6d 70 73 20 66 6f 67 20 vice clamps fog 29a0: 62 6c 65 6e 64 20 66 61 63 74 6f 72 20 70 65 72 blend factor per 29b0: 20 76 65 72 74 65 78 20 2a 2f 0d 0a 0d 0a 63 6f vertex */....co 29c0: 6e 73 74 20 44 33 44 50 4d 49 53 43 43 41 50 53 nst D3DPMISCCAPS 29d0: 5f 50 4f 53 54 42 4c 45 4e 44 53 52 47 42 43 4f _POSTBLENDSRGBCO 29e0: 4e 56 45 52 54 20 3d 20 30 78 30 30 32 30 30 30 NVERT = 0x002000 29f0: 30 30 4c 3b 20 2f 2a 20 49 6e 64 69 63 61 74 65 00L; /* Indicate 2a00: 73 20 64 65 76 69 63 65 20 63 61 6e 20 70 65 72 s device can per 2a10: 66 6f 72 6d 20 63 6f 6e 76 65 72 73 69 6f 6e 20 form conversion 2a20: 74 6f 20 73 52 47 42 20 61 66 74 65 72 20 62 6c to sRGB after bl 2a30: 65 6e 64 69 6e 67 2e 20 2a 2f 0d 0a 0d 0a 2f 2f ending. */....// 2a40: 0d 0a 2f 2f 20 4c 69 6e 65 43 61 70 73 0d 0a 2f ..// LineCaps../ 2a50: 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 4c 49 4e 45 /..const D3DLINE 2a60: 43 41 50 53 5f 54 45 58 54 55 52 45 20 3d 20 30 CAPS_TEXTURE = 0 2a70: 78 30 30 30 30 30 30 30 31 4c 3b 0d 0a 63 6f 6e x00000001L;..con 2a80: 73 74 20 44 33 44 4c 49 4e 45 43 41 50 53 5f 5a st D3DLINECAPS_Z 2a90: 54 45 53 54 20 3d 20 30 78 30 30 30 30 30 30 30 TEST = 0x0000000 2aa0: 32 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 4c 49 2L;..const D3DLI 2ab0: 4e 45 43 41 50 53 5f 42 4c 45 4e 44 20 3d 20 30 NECAPS_BLEND = 0 2ac0: 78 30 30 30 30 30 30 30 34 4c 3b 0d 0a 63 6f 6e x00000004L;..con 2ad0: 73 74 20 44 33 44 4c 49 4e 45 43 41 50 53 5f 41 st D3DLINECAPS_A 2ae0: 4c 50 48 41 43 4d 50 20 3d 20 30 78 30 30 30 30 LPHACMP = 0x0000 2af0: 30 30 30 38 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 0008L;..const D3 2b00: 44 4c 49 4e 45 43 41 50 53 5f 46 4f 47 20 3d 20 DLINECAPS_FOG = 2b10: 30 78 30 30 30 30 30 30 31 30 4c 3b 0d 0a 63 6f 0x00000010L;..co 2b20: 6e 73 74 20 44 33 44 4c 49 4e 45 43 41 50 53 5f nst D3DLINECAPS_ 2b30: 41 4e 54 49 41 4c 49 41 53 20 3d 20 30 78 30 30 ANTIALIAS = 0x00 2b40: 30 30 30 30 32 30 4c 3b 0d 0a 0d 0a 2f 2f 0d 0a 000020L;....//.. 2b50: 2f 2f 20 52 61 73 74 65 72 43 61 70 73 0d 0a 2f // RasterCaps../ 2b60: 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 50 52 41 53 /..const D3DPRAS 2b70: 54 45 52 43 41 50 53 5f 44 49 54 48 45 52 20 3d TERCAPS_DITHER = 2b80: 20 30 78 30 30 30 30 30 30 30 31 4c 3b 0d 0a 63 0x00000001L;..c 2b90: 6f 6e 73 74 20 44 33 44 50 52 41 53 54 45 52 43 onst D3DPRASTERC 2ba0: 41 50 53 5f 5a 54 45 53 54 20 3d 20 30 78 30 30 APS_ZTEST = 0x00 2bb0: 30 30 30 30 31 30 4c 3b 0d 0a 63 6f 6e 73 74 20 000010L;..const 2bc0: 44 33 44 50 52 41 53 54 45 52 43 41 50 53 5f 46 D3DPRASTERCAPS_F 2bd0: 4f 47 56 45 52 54 45 58 20 3d 20 30 78 30 30 30 OGVERTEX = 0x000 2be0: 30 30 30 38 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 00080L;..const D 2bf0: 33 44 50 52 41 53 54 45 52 43 41 50 53 5f 46 4f 3DPRASTERCAPS_FO 2c00: 47 54 41 42 4c 45 20 3d 20 30 78 30 30 30 30 30 GTABLE = 0x00000 2c10: 31 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 100L;..const D3D 2c20: 50 52 41 53 54 45 52 43 41 50 53 5f 4d 49 50 4d PRASTERCAPS_MIPM 2c30: 41 50 4c 4f 44 42 49 41 53 20 3d 20 30 78 30 30 APLODBIAS = 0x00 2c40: 30 30 32 30 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 002000L;..const 2c50: 44 33 44 50 52 41 53 54 45 52 43 41 50 53 5f 5a D3DPRASTERCAPS_Z 2c60: 42 55 46 46 45 52 4c 45 53 53 48 53 52 20 3d 20 BUFFERLESSHSR = 2c70: 30 78 30 30 30 30 38 30 30 30 4c 3b 0d 0a 63 6f 0x00008000L;..co 2c80: 6e 73 74 20 44 33 44 50 52 41 53 54 45 52 43 41 nst D3DPRASTERCA 2c90: 50 53 5f 46 4f 47 52 41 4e 47 45 20 3d 20 30 78 PS_FOGRANGE = 0x 2ca0: 30 30 30 31 30 30 30 30 4c 3b 0d 0a 63 6f 6e 73 00010000L;..cons 2cb0: 74 20 44 33 44 50 52 41 53 54 45 52 43 41 50 53 t D3DPRASTERCAPS 2cc0: 5f 41 4e 49 53 4f 54 52 4f 50 59 20 3d 20 30 78 _ANISOTROPY = 0x 2cd0: 30 30 30 32 30 30 30 30 4c 3b 0d 0a 63 6f 6e 73 00020000L;..cons 2ce0: 74 20 44 33 44 50 52 41 53 54 45 52 43 41 50 53 t D3DPRASTERCAPS 2cf0: 5f 57 42 55 46 46 45 52 20 3d 20 30 78 30 30 30 _WBUFFER = 0x000 2d00: 34 30 30 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 40000L;..const D 2d10: 33 44 50 52 41 53 54 45 52 43 41 50 53 5f 57 46 3DPRASTERCAPS_WF 2d20: 4f 47 20 3d 20 30 78 30 30 31 30 30 30 30 30 4c OG = 0x00100000L 2d30: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 52 41 53 ;..const D3DPRAS 2d40: 54 45 52 43 41 50 53 5f 5a 46 4f 47 20 3d 20 30 TERCAPS_ZFOG = 0 2d50: 78 30 30 32 30 30 30 30 30 4c 3b 0d 0a 63 6f 6e x00200000L;..con 2d60: 73 74 20 44 33 44 50 52 41 53 54 45 52 43 41 50 st D3DPRASTERCAP 2d70: 53 5f 43 4f 4c 4f 52 50 45 52 53 50 45 43 54 49 S_COLORPERSPECTI 2d80: 56 45 20 3d 20 30 78 30 30 34 30 30 30 30 30 4c VE = 0x00400000L 2d90: 3b 20 2f 2a 20 44 65 76 69 63 65 20 69 74 65 72 ; /* Device iter 2da0: 61 74 65 73 20 63 6f 6c 6f 72 73 20 70 65 72 73 ates colors pers 2db0: 70 65 63 74 69 76 65 20 63 6f 72 72 65 63 74 20 pective correct 2dc0: 2a 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 50 52 41 */..const D3DPRA 2dd0: 53 54 45 52 43 41 50 53 5f 53 43 49 53 53 4f 52 STERCAPS_SCISSOR 2de0: 54 45 53 54 20 3d 20 30 78 30 31 30 30 30 30 30 TEST = 0x0100000 2df0: 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 52 0L;..const D3DPR 2e00: 41 53 54 45 52 43 41 50 53 5f 53 4c 4f 50 45 53 ASTERCAPS_SLOPES 2e10: 43 41 4c 45 44 45 50 54 48 42 49 41 53 20 3d 20 CALEDEPTHBIAS = 2e20: 30 78 30 32 30 30 30 30 30 30 4c 3b 0d 0a 63 6f 0x02000000L;..co 2e30: 6e 73 74 20 44 33 44 50 52 41 53 54 45 52 43 41 nst D3DPRASTERCA 2e40: 50 53 5f 44 45 50 54 48 42 49 41 53 20 3d 20 30 PS_DEPTHBIAS = 0 2e50: 78 30 34 30 30 30 30 30 30 4c 3b 20 0d 0a 63 6f x04000000L; ..co 2e60: 6e 73 74 20 44 33 44 50 52 41 53 54 45 52 43 41 nst D3DPRASTERCA 2e70: 50 53 5f 4d 55 4c 54 49 53 41 4d 50 4c 45 5f 54 PS_MULTISAMPLE_T 2e80: 4f 47 47 4c 45 20 3d 20 30 78 30 38 30 30 30 30 OGGLE = 0x080000 2e90: 30 30 4c 3b 0d 0a 0d 0a 2f 2f 0d 0a 2f 2f 20 5a 00L;....//..// Z 2ea0: 43 6d 70 43 61 70 73 2c 20 41 6c 70 68 61 43 6d CmpCaps, AlphaCm 2eb0: 70 43 61 70 73 0d 0a 2f 2f 0d 0a 63 6f 6e 73 74 pCaps..//..const 2ec0: 20 44 33 44 50 43 4d 50 43 41 50 53 5f 4e 45 56 D3DPCMPCAPS_NEV 2ed0: 45 52 20 3d 20 30 78 30 30 30 30 30 30 30 31 4c ER = 0x00000001L 2ee0: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 43 4d 50 ;..const D3DPCMP 2ef0: 43 41 50 53 5f 4c 45 53 53 20 3d 20 30 78 30 30 CAPS_LESS = 0x00 2f00: 30 30 30 30 30 32 4c 3b 0d 0a 63 6f 6e 73 74 20 000002L;..const 2f10: 44 33 44 50 43 4d 50 43 41 50 53 5f 45 51 55 41 D3DPCMPCAPS_EQUA 2f20: 4c 20 3d 20 30 78 30 30 30 30 30 30 30 34 4c 3b L = 0x00000004L; 2f30: 0d 0a 63 6f 6e 73 74 20 44 33 44 50 43 4d 50 43 ..const D3DPCMPC 2f40: 41 50 53 5f 4c 45 53 53 45 51 55 41 4c 20 3d 20 APS_LESSEQUAL = 2f50: 30 78 30 30 30 30 30 30 30 38 4c 3b 0d 0a 63 6f 0x00000008L;..co 2f60: 6e 73 74 20 44 33 44 50 43 4d 50 43 41 50 53 5f nst D3DPCMPCAPS_ 2f70: 47 52 45 41 54 45 52 20 3d 20 30 78 30 30 30 30 GREATER = 0x0000 2f80: 30 30 31 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 0010L;..const D3 2f90: 44 50 43 4d 50 43 41 50 53 5f 4e 4f 54 45 51 55 DPCMPCAPS_NOTEQU 2fa0: 41 4c 20 3d 20 30 78 30 30 30 30 30 30 32 30 4c AL = 0x00000020L 2fb0: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 43 4d 50 ;..const D3DPCMP 2fc0: 43 41 50 53 5f 47 52 45 41 54 45 52 45 51 55 41 CAPS_GREATEREQUA 2fd0: 4c 20 3d 20 30 78 30 30 30 30 30 30 34 30 4c 3b L = 0x00000040L; 2fe0: 0d 0a 63 6f 6e 73 74 20 44 33 44 50 43 4d 50 43 ..const D3DPCMPC 2ff0: 41 50 53 5f 41 4c 57 41 59 53 20 3d 20 30 78 30 APS_ALWAYS = 0x0 3000: 30 30 30 30 30 38 30 4c 3b 0d 0a 0d 0a 2f 2f 0d 0000080L;....//. 3010: 0a 2f 2f 20 53 6f 75 72 63 65 42 6c 65 6e 64 43 .// SourceBlendC 3020: 61 70 73 2c 20 44 65 73 74 42 6c 65 6e 64 43 61 aps, DestBlendCa 3030: 70 73 0d 0a 2f 2f 0d 0a 63 6f 6e 73 74 20 44 33 ps..//..const D3 3040: 44 50 42 4c 45 4e 44 43 41 50 53 5f 5a 45 52 4f DPBLENDCAPS_ZERO 3050: 20 3d 20 30 78 30 30 30 30 30 30 30 31 4c 3b 0d = 0x00000001L;. 3060: 0a 63 6f 6e 73 74 20 44 33 44 50 42 4c 45 4e 44 .const D3DPBLEND 3070: 43 41 50 53 5f 4f 4e 45 20 3d 20 30 78 30 30 30 CAPS_ONE = 0x000 3080: 30 30 30 30 32 4c 3b 0d 0a 63 6f 6e 73 74 20 44 00002L;..const D 3090: 33 44 50 42 4c 45 4e 44 43 41 50 53 5f 53 52 43 3DPBLENDCAPS_SRC 30a0: 43 4f 4c 4f 52 20 3d 20 30 78 30 30 30 30 30 30 COLOR = 0x000000 30b0: 30 34 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 04L;..const D3DP 30c0: 42 4c 45 4e 44 43 41 50 53 5f 49 4e 56 53 52 43 BLENDCAPS_INVSRC 30d0: 43 4f 4c 4f 52 20 3d 20 30 78 30 30 30 30 30 30 COLOR = 0x000000 30e0: 30 38 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 08L;..const D3DP 30f0: 42 4c 45 4e 44 43 41 50 53 5f 53 52 43 41 4c 50 BLENDCAPS_SRCALP 3100: 48 41 20 3d 20 30 78 30 30 30 30 30 30 31 30 4c HA = 0x00000010L 3110: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 42 4c 45 ;..const D3DPBLE 3120: 4e 44 43 41 50 53 5f 49 4e 56 53 52 43 41 4c 50 NDCAPS_INVSRCALP 3130: 48 41 20 3d 20 30 78 30 30 30 30 30 30 32 30 4c HA = 0x00000020L 3140: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 42 4c 45 ;..const D3DPBLE 3150: 4e 44 43 41 50 53 5f 44 45 53 54 41 4c 50 48 41 NDCAPS_DESTALPHA 3160: 20 3d 20 30 78 30 30 30 30 30 30 34 30 4c 3b 0d = 0x00000040L;. 3170: 0a 63 6f 6e 73 74 20 44 33 44 50 42 4c 45 4e 44 .const D3DPBLEND 3180: 43 41 50 53 5f 49 4e 56 44 45 53 54 41 4c 50 48 CAPS_INVDESTALPH 3190: 41 20 3d 20 30 78 30 30 30 30 30 30 38 30 4c 3b A = 0x00000080L; 31a0: 0d 0a 63 6f 6e 73 74 20 44 33 44 50 42 4c 45 4e ..const D3DPBLEN 31b0: 44 43 41 50 53 5f 44 45 53 54 43 4f 4c 4f 52 20 DCAPS_DESTCOLOR 31c0: 3d 20 30 78 30 30 30 30 30 31 30 30 4c 3b 0d 0a = 0x00000100L;.. 31d0: 63 6f 6e 73 74 20 44 33 44 50 42 4c 45 4e 44 43 const D3DPBLENDC 31e0: 41 50 53 5f 49 4e 56 44 45 53 54 43 4f 4c 4f 52 APS_INVDESTCOLOR 31f0: 20 3d 20 30 78 30 30 30 30 30 32 30 30 4c 3b 0d = 0x00000200L;. 3200: 0a 63 6f 6e 73 74 20 44 33 44 50 42 4c 45 4e 44 .const D3DPBLEND 3210: 43 41 50 53 5f 53 52 43 41 4c 50 48 41 53 41 54 CAPS_SRCALPHASAT 3220: 20 3d 20 30 78 30 30 30 30 30 34 30 30 4c 3b 0d = 0x00000400L;. 3230: 0a 63 6f 6e 73 74 20 44 33 44 50 42 4c 45 4e 44 .const D3DPBLEND 3240: 43 41 50 53 5f 42 4f 54 48 53 52 43 41 4c 50 48 CAPS_BOTHSRCALPH 3250: 41 20 3d 20 30 78 30 30 30 30 30 38 30 30 4c 3b A = 0x00000800L; 3260: 0d 0a 63 6f 6e 73 74 20 44 33 44 50 42 4c 45 4e ..const D3DPBLEN 3270: 44 43 41 50 53 5f 42 4f 54 48 49 4e 56 53 52 43 DCAPS_BOTHINVSRC 3280: 41 4c 50 48 41 20 3d 20 30 78 30 30 30 30 31 30 ALPHA = 0x000010 3290: 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 00L;..const D3DP 32a0: 42 4c 45 4e 44 43 41 50 53 5f 42 4c 45 4e 44 46 BLENDCAPS_BLENDF 32b0: 41 43 54 4f 52 20 3d 20 30 78 30 30 30 30 32 30 ACTOR = 0x000020 32c0: 30 30 4c 3b 20 2f 2a 20 53 75 70 70 6f 72 74 73 00L; /* Supports 32d0: 20 62 6f 74 68 20 44 33 44 42 4c 45 4e 44 5f 42 both D3DBLEND_B 32e0: 4c 45 4e 44 46 41 43 54 4f 52 20 61 6e 64 20 44 LENDFACTOR and D 32f0: 33 44 42 4c 45 4e 44 5f 49 4e 56 42 4c 45 4e 44 3DBLEND_INVBLEND 3300: 46 41 43 54 4f 52 20 2a 2f 0d 0a 0d 0a 63 6f 6e FACTOR */....con 3310: 73 74 20 44 33 44 50 42 4c 45 4e 44 43 41 50 53 st D3DPBLENDCAPS 3320: 5f 53 52 43 43 4f 4c 4f 52 32 20 3d 20 30 78 30 _SRCCOLOR2 = 0x0 3330: 30 30 30 34 30 30 30 4c 3b 0d 0a 63 6f 6e 73 74 0004000L;..const 3340: 20 44 33 44 50 42 4c 45 4e 44 43 41 50 53 5f 49 D3DPBLENDCAPS_I 3350: 4e 56 53 52 43 43 4f 4c 4f 52 32 20 3d 20 30 78 NVSRCCOLOR2 = 0x 3360: 30 30 30 30 38 30 30 30 4c 3b 0d 0a 0d 0a 2f 2f 00008000L;....// 3370: 0d 0a 2f 2f 20 53 68 61 64 65 43 61 70 73 0d 0a ..// ShadeCaps.. 3380: 2f 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 50 53 48 //..const D3DPSH 3390: 41 44 45 43 41 50 53 5f 43 4f 4c 4f 52 47 4f 55 ADECAPS_COLORGOU 33a0: 52 41 55 44 52 47 42 20 3d 20 30 78 30 30 30 30 RAUDRGB = 0x0000 33b0: 30 30 30 38 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 0008L;..const D3 33c0: 44 50 53 48 41 44 45 43 41 50 53 5f 53 50 45 43 DPSHADECAPS_SPEC 33d0: 55 4c 41 52 47 4f 55 52 41 55 44 52 47 42 20 3d ULARGOURAUDRGB = 33e0: 20 30 78 30 30 30 30 30 32 30 30 4c 3b 0d 0a 63 0x00000200L;..c 33f0: 6f 6e 73 74 20 44 33 44 50 53 48 41 44 45 43 41 onst D3DPSHADECA 3400: 50 53 5f 41 4c 50 48 41 47 4f 55 52 41 55 44 42 PS_ALPHAGOURAUDB 3410: 4c 45 4e 44 20 3d 20 30 78 30 30 30 30 34 30 30 LEND = 0x0000400 3420: 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 53 0L;..const D3DPS 3430: 48 41 44 45 43 41 50 53 5f 46 4f 47 47 4f 55 52 HADECAPS_FOGGOUR 3440: 41 55 44 20 3d 20 30 78 30 30 30 38 30 30 30 30 AUD = 0x00080000 3450: 4c 3b 0d 0a 0d 0a 2f 2f 0d 0a 2f 2f 20 54 65 78 L;....//..// Tex 3460: 74 75 72 65 43 61 70 73 0d 0a 2f 2f 0d 0a 63 6f tureCaps..//..co 3470: 6e 73 74 20 44 33 44 50 54 45 58 54 55 52 45 43 nst D3DPTEXTUREC 3480: 41 50 53 5f 50 45 52 53 50 45 43 54 49 56 45 20 APS_PERSPECTIVE 3490: 3d 20 30 78 30 30 30 30 30 30 30 31 4c 3b 20 2f = 0x00000001L; / 34a0: 2a 20 50 65 72 73 70 65 63 74 69 76 65 2d 63 6f * Perspective-co 34b0: 72 72 65 63 74 20 74 65 78 74 75 72 69 6e 67 20 rrect texturing 34c0: 69 73 20 73 75 70 70 6f 72 74 65 64 20 2a 2f 0d is supported */. 34d0: 0a 63 6f 6e 73 74 20 44 33 44 50 54 45 58 54 55 .const D3DPTEXTU 34e0: 52 45 43 41 50 53 5f 50 4f 57 32 20 3d 20 30 78 RECAPS_POW2 = 0x 34f0: 30 30 30 30 30 30 30 32 4c 3b 20 2f 2a 20 50 6f 00000002L; /* Po 3500: 77 65 72 2d 6f 66 2d 32 20 74 65 78 74 75 72 65 wer-of-2 texture 3510: 20 64 69 6d 65 6e 73 69 6f 6e 73 20 61 72 65 20 dimensions are 3520: 72 65 71 75 69 72 65 64 20 2d 20 61 70 70 6c 69 required - appli 3530: 65 73 20 74 6f 20 6e 6f 6e 2d 43 75 62 65 2f 56 es to non-Cube/V 3540: 6f 6c 75 6d 65 20 74 65 78 74 75 72 65 73 20 6f olume textures o 3550: 6e 6c 79 2e 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 nly. */..const D 3560: 33 44 50 54 45 58 54 55 52 45 43 41 50 53 5f 41 3DPTEXTURECAPS_A 3570: 4c 50 48 41 20 3d 20 30 78 30 30 30 30 30 30 30 LPHA = 0x0000000 3580: 34 4c 3b 20 2f 2a 20 41 6c 70 68 61 20 69 6e 20 4L; /* Alpha in 3590: 74 65 78 74 75 72 65 20 70 69 78 65 6c 73 20 69 texture pixels i 35a0: 73 20 73 75 70 70 6f 72 74 65 64 20 2a 2f 0d 0a s supported */.. 35b0: 63 6f 6e 73 74 20 44 33 44 50 54 45 58 54 55 52 const D3DPTEXTUR 35c0: 45 43 41 50 53 5f 53 51 55 41 52 45 4f 4e 4c 59 ECAPS_SQUAREONLY 35d0: 20 3d 20 30 78 30 30 30 30 30 30 32 30 4c 3b 20 = 0x00000020L; 35e0: 2f 2a 20 4f 6e 6c 79 20 73 71 75 61 72 65 20 74 /* Only square t 35f0: 65 78 74 75 72 65 73 20 61 72 65 20 73 75 70 70 extures are supp 3600: 6f 72 74 65 64 20 2a 2f 0d 0a 63 6f 6e 73 74 20 orted */..const 3610: 44 33 44 50 54 45 58 54 55 52 45 43 41 50 53 5f D3DPTEXTURECAPS_ 3620: 54 45 58 52 45 50 45 41 54 4e 4f 54 53 43 41 4c TEXREPEATNOTSCAL 3630: 45 44 42 59 53 49 5a 45 20 3d 20 30 78 30 30 30 EDBYSIZE = 0x000 3640: 30 30 30 34 30 4c 3b 20 2f 2a 20 54 65 78 74 75 00040L; /* Textu 3650: 72 65 20 69 6e 64 69 63 65 73 20 61 72 65 20 6e re indices are n 3660: 6f 74 20 73 63 61 6c 65 64 20 62 79 20 74 68 65 ot scaled by the 3670: 20 74 65 78 74 75 72 65 20 73 69 7a 65 20 70 72 texture size pr 3680: 69 6f 72 20 74 6f 20 69 6e 74 65 72 70 6f 6c 61 ior to interpola 3690: 74 69 6f 6e 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 tion */..const D 36a0: 33 44 50 54 45 58 54 55 52 45 43 41 50 53 5f 41 3DPTEXTURECAPS_A 36b0: 4c 50 48 41 50 41 4c 45 54 54 45 20 3d 20 30 78 LPHAPALETTE = 0x 36c0: 30 30 30 30 30 30 38 30 4c 3b 20 2f 2a 20 44 65 00000080L; /* De 36d0: 76 69 63 65 20 63 61 6e 20 64 72 61 77 20 61 6c vice can draw al 36e0: 70 68 61 20 66 72 6f 6d 20 74 65 78 74 75 72 65 pha from texture 36f0: 20 70 61 6c 65 74 74 65 73 20 2a 2f 0d 0a 2f 2f palettes */..// 3700: 20 44 65 76 69 63 65 20 63 61 6e 20 75 73 65 20 Device can use 3710: 6e 6f 6e 2d 50 4f 57 32 20 74 65 78 74 75 72 65 non-POW2 texture 3720: 73 20 69 66 3a 0d 0a 2f 2f 20 20 31 29 20 44 33 s if:..// 1) D3 3730: 44 54 45 58 54 55 52 45 5f 41 44 44 52 45 53 53 DTEXTURE_ADDRESS 3740: 20 69 73 20 73 65 74 20 74 6f 20 43 4c 41 4d 50 is set to CLAMP 3750: 20 66 6f 72 20 74 68 69 73 20 74 65 78 74 75 72 for this textur 3760: 65 27 73 20 73 74 61 67 65 0d 0a 2f 2f 20 20 32 e's stage..// 2 3770: 29 20 44 33 44 52 53 5f 57 52 41 50 28 4e 29 20 ) D3DRS_WRAP(N) 3780: 69 73 20 7a 65 72 6f 20 66 6f 72 20 74 68 69 73 is zero for this 3790: 20 74 65 78 74 75 72 65 27 73 20 63 6f 6f 72 64 texture's coord 37a0: 69 6e 61 74 65 73 0d 0a 2f 2f 20 20 33 29 20 6d inates..// 3) m 37b0: 69 70 20 6d 61 70 70 69 6e 67 20 69 73 20 6e 6f ip mapping is no 37c0: 74 20 65 6e 61 62 6c 65 64 20 28 75 73 65 20 6d t enabled (use m 37d0: 61 67 6e 69 66 69 63 61 74 69 6f 6e 20 66 69 6c agnification fil 37e0: 74 65 72 20 6f 6e 6c 79 29 0d 0a 63 6f 6e 73 74 ter only)..const 37f0: 20 44 33 44 50 54 45 58 54 55 52 45 43 41 50 53 D3DPTEXTURECAPS 3800: 5f 4e 4f 4e 50 4f 57 32 43 4f 4e 44 49 54 49 4f _NONPOW2CONDITIO 3810: 4e 41 4c 20 3d 20 30 78 30 30 30 30 30 31 30 30 NAL = 0x00000100 3820: 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 54 45 L;..const D3DPTE 3830: 58 54 55 52 45 43 41 50 53 5f 50 52 4f 4a 45 43 XTURECAPS_PROJEC 3840: 54 45 44 20 3d 20 30 78 30 30 30 30 30 34 30 30 TED = 0x00000400 3850: 4c 3b 20 2f 2a 20 44 65 76 69 63 65 20 63 61 6e L; /* Device can 3860: 20 64 6f 20 44 33 44 54 54 46 46 5f 50 52 4f 4a do D3DTTFF_PROJ 3870: 45 43 54 45 44 20 2a 2f 0d 0a 63 6f 6e 73 74 20 ECTED */..const 3880: 44 33 44 50 54 45 58 54 55 52 45 43 41 50 53 5f D3DPTEXTURECAPS_ 3890: 43 55 42 45 4d 41 50 20 3d 20 30 78 30 30 30 30 CUBEMAP = 0x0000 38a0: 30 38 30 30 4c 3b 20 2f 2a 20 44 65 76 69 63 65 0800L; /* Device 38b0: 20 63 61 6e 20 64 6f 20 63 75 62 65 6d 61 70 20 can do cubemap 38c0: 74 65 78 74 75 72 65 73 20 2a 2f 0d 0a 63 6f 6e textures */..con 38d0: 73 74 20 44 33 44 50 54 45 58 54 55 52 45 43 41 st D3DPTEXTURECA 38e0: 50 53 5f 56 4f 4c 55 4d 45 4d 41 50 20 3d 20 30 PS_VOLUMEMAP = 0 38f0: 78 30 30 30 30 32 30 30 30 4c 3b 20 2f 2a 20 44 x00002000L; /* D 3900: 65 76 69 63 65 20 63 61 6e 20 64 6f 20 76 6f 6c evice can do vol 3910: 75 6d 65 20 74 65 78 74 75 72 65 73 20 2a 2f 0d ume textures */. 3920: 0a 63 6f 6e 73 74 20 44 33 44 50 54 45 58 54 55 .const D3DPTEXTU 3930: 52 45 43 41 50 53 5f 4d 49 50 4d 41 50 20 3d 20 RECAPS_MIPMAP = 3940: 30 78 30 30 30 30 34 30 30 30 4c 3b 20 2f 2a 20 0x00004000L; /* 3950: 44 65 76 69 63 65 20 63 61 6e 20 64 6f 20 6d 69 Device can do mi 3960: 70 6d 61 70 70 65 64 20 74 65 78 74 75 72 65 73 pmapped textures 3970: 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 50 54 */..const D3DPT 3980: 45 58 54 55 52 45 43 41 50 53 5f 4d 49 50 56 4f EXTURECAPS_MIPVO 3990: 4c 55 4d 45 4d 41 50 20 3d 20 30 78 30 30 30 30 LUMEMAP = 0x0000 39a0: 38 30 30 30 4c 3b 20 2f 2a 20 44 65 76 69 63 65 8000L; /* Device 39b0: 20 63 61 6e 20 64 6f 20 6d 69 70 6d 61 70 70 65 can do mipmappe 39c0: 64 20 76 6f 6c 75 6d 65 20 74 65 78 74 75 72 65 d volume texture 39d0: 73 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 50 s */..const D3DP 39e0: 54 45 58 54 55 52 45 43 41 50 53 5f 4d 49 50 43 TEXTURECAPS_MIPC 39f0: 55 42 45 4d 41 50 20 3d 20 30 78 30 30 30 31 30 UBEMAP = 0x00010 3a00: 30 30 30 4c 3b 20 2f 2a 20 44 65 76 69 63 65 20 000L; /* Device 3a10: 63 61 6e 20 64 6f 20 6d 69 70 6d 61 70 70 65 64 can do mipmapped 3a20: 20 63 75 62 65 20 6d 61 70 73 20 2a 2f 0d 0a 63 cube maps */..c 3a30: 6f 6e 73 74 20 44 33 44 50 54 45 58 54 55 52 45 onst D3DPTEXTURE 3a40: 43 41 50 53 5f 43 55 42 45 4d 41 50 5f 50 4f 57 CAPS_CUBEMAP_POW 3a50: 32 20 3d 20 30 78 30 30 30 32 30 30 30 30 4c 3b 2 = 0x00020000L; 3a60: 20 2f 2a 20 44 65 76 69 63 65 20 72 65 71 75 69 /* Device requi 3a70: 72 65 73 20 74 68 61 74 20 63 75 62 65 6d 61 70 res that cubemap 3a80: 73 20 62 65 20 70 6f 77 65 72 2d 6f 66 2d 32 20 s be power-of-2 3a90: 64 69 6d 65 6e 73 69 6f 6e 20 2a 2f 0d 0a 63 6f dimension */..co 3aa0: 6e 73 74 20 44 33 44 50 54 45 58 54 55 52 45 43 nst D3DPTEXTUREC 3ab0: 41 50 53 5f 56 4f 4c 55 4d 45 4d 41 50 5f 50 4f APS_VOLUMEMAP_PO 3ac0: 57 32 20 3d 20 30 78 30 30 30 34 30 30 30 30 4c W2 = 0x00040000L 3ad0: 3b 20 2f 2a 20 44 65 76 69 63 65 20 72 65 71 75 ; /* Device requ 3ae0: 69 72 65 73 20 74 68 61 74 20 76 6f 6c 75 6d 65 ires that volume 3af0: 20 6d 61 70 73 20 62 65 20 70 6f 77 65 72 2d 6f maps be power-o 3b00: 66 2d 32 20 64 69 6d 65 6e 73 69 6f 6e 20 2a 2f f-2 dimension */ 3b10: 0d 0a 63 6f 6e 73 74 20 44 33 44 50 54 45 58 54 ..const D3DPTEXT 3b20: 55 52 45 43 41 50 53 5f 4e 4f 50 52 4f 4a 45 43 URECAPS_NOPROJEC 3b30: 54 45 44 42 55 4d 50 45 4e 56 20 3d 20 30 78 30 TEDBUMPENV = 0x0 3b40: 30 32 30 30 30 30 30 4c 3b 20 2f 2a 20 44 65 76 0200000L; /* Dev 3b50: 69 63 65 20 64 6f 65 73 20 6e 6f 74 20 73 75 70 ice does not sup 3b60: 70 6f 72 74 20 70 72 6f 6a 65 63 74 65 64 20 62 port projected b 3b70: 75 6d 70 20 65 6e 76 20 6c 6f 6f 6b 75 70 20 6f ump env lookup o 3b80: 70 65 72 61 74 69 6f 6e 20 0d 0a 20 20 20 20 20 peration .. 3b90: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3ba0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3bb0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3bc0: 20 20 20 20 20 20 69 6e 20 70 72 6f 67 72 61 6d in program 3bd0: 6d 61 62 6c 65 20 61 6e 64 20 66 69 78 65 64 20 mable and fixed 3be0: 66 75 6e 63 74 69 6f 6e 20 70 69 78 65 6c 20 73 function pixel s 3bf0: 68 61 64 65 72 73 20 2a 2f 0d 0a 0d 0a 2f 2f 0d haders */....//. 3c00: 0a 2f 2f 20 54 65 78 74 75 72 65 46 69 6c 74 65 .// TextureFilte 3c10: 72 43 61 70 73 2c 20 53 74 72 65 74 63 68 52 65 rCaps, StretchRe 3c20: 63 74 46 69 6c 74 65 72 43 61 70 73 0d 0a 2f 2f ctFilterCaps..// 3c30: 0d 0a 63 6f 6e 73 74 20 44 33 44 50 54 46 49 4c ..const D3DPTFIL 3c40: 54 45 52 43 41 50 53 5f 4d 49 4e 46 50 4f 49 4e TERCAPS_MINFPOIN 3c50: 54 20 3d 20 30 78 30 30 30 30 30 31 30 30 4c 3b T = 0x00000100L; 3c60: 20 2f 2a 20 4d 69 6e 20 46 69 6c 74 65 72 20 2a /* Min Filter * 3c70: 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 50 54 46 49 /..const D3DPTFI 3c80: 4c 54 45 52 43 41 50 53 5f 4d 49 4e 46 4c 49 4e LTERCAPS_MINFLIN 3c90: 45 41 52 20 3d 20 30 78 30 30 30 30 30 32 30 30 EAR = 0x00000200 3ca0: 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 54 46 L;..const D3DPTF 3cb0: 49 4c 54 45 52 43 41 50 53 5f 4d 49 4e 46 41 4e ILTERCAPS_MINFAN 3cc0: 49 53 4f 54 52 4f 50 49 43 20 3d 20 30 78 30 30 ISOTROPIC = 0x00 3cd0: 30 30 30 34 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 000400L;..const 3ce0: 44 33 44 50 54 46 49 4c 54 45 52 43 41 50 53 5f D3DPTFILTERCAPS_ 3cf0: 4d 49 4e 46 50 59 52 41 4d 49 44 41 4c 51 55 41 MINFPYRAMIDALQUA 3d00: 44 20 3d 20 30 78 30 30 30 30 30 38 30 30 4c 3b D = 0x00000800L; 3d10: 0d 0a 63 6f 6e 73 74 20 44 33 44 50 54 46 49 4c ..const D3DPTFIL 3d20: 54 45 52 43 41 50 53 5f 4d 49 4e 46 47 41 55 53 TERCAPS_MINFGAUS 3d30: 53 49 41 4e 51 55 41 44 20 3d 20 30 78 30 30 30 SIANQUAD = 0x000 3d40: 30 31 30 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 01000L;..const D 3d50: 33 44 50 54 46 49 4c 54 45 52 43 41 50 53 5f 4d 3DPTFILTERCAPS_M 3d60: 49 50 46 50 4f 49 4e 54 20 3d 20 30 78 30 30 30 IPFPOINT = 0x000 3d70: 31 30 30 30 30 4c 3b 20 2f 2a 20 4d 69 70 20 46 10000L; /* Mip F 3d80: 69 6c 74 65 72 20 2a 2f 0d 0a 63 6f 6e 73 74 20 ilter */..const 3d90: 44 33 44 50 54 46 49 4c 54 45 52 43 41 50 53 5f D3DPTFILTERCAPS_ 3da0: 4d 49 50 46 4c 49 4e 45 41 52 20 3d 20 30 78 30 MIPFLINEAR = 0x0 3db0: 30 30 32 30 30 30 30 4c 3b 0d 0a 0d 0a 63 6f 6e 0020000L;....con 3dc0: 73 74 20 44 33 44 50 54 46 49 4c 54 45 52 43 41 st D3DPTFILTERCA 3dd0: 50 53 5f 43 4f 4e 56 4f 4c 55 54 49 4f 4e 4d 4f PS_CONVOLUTIONMO 3de0: 4e 4f 20 3d 20 30 78 30 30 30 34 30 30 30 30 4c NO = 0x00040000L 3df0: 3b 20 2f 2a 20 4d 69 6e 20 61 6e 64 20 4d 61 67 ; /* Min and Mag 3e00: 20 66 6f 72 20 74 68 65 20 63 6f 6e 76 6f 6c 75 for the convolu 3e10: 74 69 6f 6e 20 6d 6f 6e 6f 20 66 69 6c 74 65 72 tion mono filter 3e20: 20 2a 2f 0d 0a 0d 0a 63 6f 6e 73 74 20 44 33 44 */....const D3D 3e30: 50 54 46 49 4c 54 45 52 43 41 50 53 5f 4d 41 47 PTFILTERCAPS_MAG 3e40: 46 50 4f 49 4e 54 20 3d 20 30 78 30 31 30 30 30 FPOINT = 0x01000 3e50: 30 30 30 4c 3b 20 2f 2a 20 4d 61 67 20 46 69 6c 000L; /* Mag Fil 3e60: 74 65 72 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 33 ter */..const D3 3e70: 44 50 54 46 49 4c 54 45 52 43 41 50 53 5f 4d 41 DPTFILTERCAPS_MA 3e80: 47 46 4c 49 4e 45 41 52 20 3d 20 30 78 30 32 30 GFLINEAR = 0x020 3e90: 30 30 30 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 00000L;..const D 3ea0: 33 44 50 54 46 49 4c 54 45 52 43 41 50 53 5f 4d 3DPTFILTERCAPS_M 3eb0: 41 47 46 41 4e 49 53 4f 54 52 4f 50 49 43 20 3d AGFANISOTROPIC = 3ec0: 20 30 78 30 34 30 30 30 30 30 30 4c 3b 0d 0a 63 0x04000000L;..c 3ed0: 6f 6e 73 74 20 44 33 44 50 54 46 49 4c 54 45 52 onst D3DPTFILTER 3ee0: 43 41 50 53 5f 4d 41 47 46 50 59 52 41 4d 49 44 CAPS_MAGFPYRAMID 3ef0: 41 4c 51 55 41 44 20 3d 20 30 78 30 38 30 30 30 ALQUAD = 0x08000 3f00: 30 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 000L;..const D3D 3f10: 50 54 46 49 4c 54 45 52 43 41 50 53 5f 4d 41 47 PTFILTERCAPS_MAG 3f20: 46 47 41 55 53 53 49 41 4e 51 55 41 44 20 3d 20 FGAUSSIANQUAD = 3f30: 30 78 31 30 30 30 30 30 30 30 4c 3b 0d 0a 0d 0a 0x10000000L;.... 3f40: 2f 2f 0d 0a 2f 2f 20 54 65 78 74 75 72 65 41 64 //..// TextureAd 3f50: 64 72 65 73 73 43 61 70 73 0d 0a 2f 2f 0d 0a 63 dressCaps..//..c 3f60: 6f 6e 73 74 20 44 33 44 50 54 41 44 44 52 45 53 onst D3DPTADDRES 3f70: 53 43 41 50 53 5f 57 52 41 50 20 3d 20 30 78 30 SCAPS_WRAP = 0x0 3f80: 30 30 30 30 30 30 31 4c 3b 0d 0a 63 6f 6e 73 74 0000001L;..const 3f90: 20 44 33 44 50 54 41 44 44 52 45 53 53 43 41 50 D3DPTADDRESSCAP 3fa0: 53 5f 4d 49 52 52 4f 52 20 3d 20 30 78 30 30 30 S_MIRROR = 0x000 3fb0: 30 30 30 30 32 4c 3b 0d 0a 63 6f 6e 73 74 20 44 00002L;..const D 3fc0: 33 44 50 54 41 44 44 52 45 53 53 43 41 50 53 5f 3DPTADDRESSCAPS_ 3fd0: 43 4c 41 4d 50 20 3d 20 30 78 30 30 30 30 30 30 CLAMP = 0x000000 3fe0: 30 34 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 04L;..const D3DP 3ff0: 54 41 44 44 52 45 53 53 43 41 50 53 5f 42 4f 52 TADDRESSCAPS_BOR 4000: 44 45 52 20 3d 20 30 78 30 30 30 30 30 30 30 38 DER = 0x00000008 4010: 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 50 54 41 L;..const D3DPTA 4020: 44 44 52 45 53 53 43 41 50 53 5f 49 4e 44 45 50 DDRESSCAPS_INDEP 4030: 45 4e 44 45 4e 54 55 56 20 3d 20 30 78 30 30 30 ENDENTUV = 0x000 4040: 30 30 30 31 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 00010L;..const D 4050: 33 44 50 54 41 44 44 52 45 53 53 43 41 50 53 5f 3DPTADDRESSCAPS_ 4060: 4d 49 52 52 4f 52 4f 4e 43 45 20 3d 20 30 78 30 MIRRORONCE = 0x0 4070: 30 30 30 30 30 32 30 4c 3b 0d 0a 0d 0a 2f 2f 0d 0000020L;....//. 4080: 0a 2f 2f 20 53 74 65 6e 63 69 6c 43 61 70 73 0d .// StencilCaps. 4090: 0a 2f 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 53 54 .//..const D3DST 40a0: 45 4e 43 49 4c 43 41 50 53 5f 4b 45 45 50 20 3d ENCILCAPS_KEEP = 40b0: 20 30 78 30 30 30 30 30 30 30 31 4c 3b 0d 0a 63 0x00000001L;..c 40c0: 6f 6e 73 74 20 44 33 44 53 54 45 4e 43 49 4c 43 onst D3DSTENCILC 40d0: 41 50 53 5f 5a 45 52 4f 20 3d 20 30 78 30 30 30 APS_ZERO = 0x000 40e0: 30 30 30 30 32 4c 3b 0d 0a 63 6f 6e 73 74 20 44 00002L;..const D 40f0: 33 44 53 54 45 4e 43 49 4c 43 41 50 53 5f 52 45 3DSTENCILCAPS_RE 4100: 50 4c 41 43 45 20 3d 20 30 78 30 30 30 30 30 30 PLACE = 0x000000 4110: 30 34 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 53 04L;..const D3DS 4120: 54 45 4e 43 49 4c 43 41 50 53 5f 49 4e 43 52 53 TENCILCAPS_INCRS 4130: 41 54 20 3d 20 30 78 30 30 30 30 30 30 30 38 4c AT = 0x00000008L 4140: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 53 54 45 4e ;..const D3DSTEN 4150: 43 49 4c 43 41 50 53 5f 44 45 43 52 53 41 54 20 CILCAPS_DECRSAT 4160: 3d 20 30 78 30 30 30 30 30 30 31 30 4c 3b 0d 0a = 0x00000010L;.. 4170: 63 6f 6e 73 74 20 44 33 44 53 54 45 4e 43 49 4c const D3DSTENCIL 4180: 43 41 50 53 5f 49 4e 56 45 52 54 20 3d 20 30 78 CAPS_INVERT = 0x 4190: 30 30 30 30 30 30 32 30 4c 3b 0d 0a 63 6f 6e 73 00000020L;..cons 41a0: 74 20 44 33 44 53 54 45 4e 43 49 4c 43 41 50 53 t D3DSTENCILCAPS 41b0: 5f 49 4e 43 52 20 3d 20 30 78 30 30 30 30 30 30 _INCR = 0x000000 41c0: 34 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 53 40L;..const D3DS 41d0: 54 45 4e 43 49 4c 43 41 50 53 5f 44 45 43 52 20 TENCILCAPS_DECR 41e0: 3d 20 30 78 30 30 30 30 30 30 38 30 4c 3b 0d 0a = 0x00000080L;.. 41f0: 63 6f 6e 73 74 20 44 33 44 53 54 45 4e 43 49 4c const D3DSTENCIL 4200: 43 41 50 53 5f 54 57 4f 53 49 44 45 44 20 3d 20 CAPS_TWOSIDED = 4210: 30 78 30 30 30 30 30 31 30 30 4c 3b 0d 0a 0d 0a 0x00000100L;.... 4220: 2f 2f 0d 0a 2f 2f 20 54 65 78 74 75 72 65 4f 70 //..// TextureOp 4230: 43 61 70 73 0d 0a 2f 2f 0d 0a 63 6f 6e 73 74 20 Caps..//..const 4240: 44 33 44 54 45 58 4f 50 43 41 50 53 5f 44 49 53 D3DTEXOPCAPS_DIS 4250: 41 42 4c 45 20 3d 20 30 78 30 30 30 30 30 30 30 ABLE = 0x0000000 4260: 31 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 54 45 1L;..const D3DTE 4270: 58 4f 50 43 41 50 53 5f 53 45 4c 45 43 54 41 52 XOPCAPS_SELECTAR 4280: 47 31 20 3d 20 30 78 30 30 30 30 30 30 30 32 4c G1 = 0x00000002L 4290: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 54 45 58 4f ;..const D3DTEXO 42a0: 50 43 41 50 53 5f 53 45 4c 45 43 54 41 52 47 32 PCAPS_SELECTARG2 42b0: 20 3d 20 30 78 30 30 30 30 30 30 30 34 4c 3b 0d = 0x00000004L;. 42c0: 0a 63 6f 6e 73 74 20 44 33 44 54 45 58 4f 50 43 .const D3DTEXOPC 42d0: 41 50 53 5f 4d 4f 44 55 4c 41 54 45 20 3d 20 30 APS_MODULATE = 0 42e0: 78 30 30 30 30 30 30 30 38 4c 3b 0d 0a 63 6f 6e x00000008L;..con 42f0: 73 74 20 44 33 44 54 45 58 4f 50 43 41 50 53 5f st D3DTEXOPCAPS_ 4300: 4d 4f 44 55 4c 41 54 45 32 58 20 3d 20 30 78 30 MODULATE2X = 0x0 4310: 30 30 30 30 30 31 30 4c 3b 0d 0a 63 6f 6e 73 74 0000010L;..const 4320: 20 44 33 44 54 45 58 4f 50 43 41 50 53 5f 4d 4f D3DTEXOPCAPS_MO 4330: 44 55 4c 41 54 45 34 58 20 3d 20 30 78 30 30 30 DULATE4X = 0x000 4340: 30 30 30 32 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 00020L;..const D 4350: 33 44 54 45 58 4f 50 43 41 50 53 5f 41 44 44 20 3DTEXOPCAPS_ADD 4360: 3d 20 30 78 30 30 30 30 30 30 34 30 4c 3b 0d 0a = 0x00000040L;.. 4370: 63 6f 6e 73 74 20 44 33 44 54 45 58 4f 50 43 41 const D3DTEXOPCA 4380: 50 53 5f 41 44 44 53 49 47 4e 45 44 20 3d 20 30 PS_ADDSIGNED = 0 4390: 78 30 30 30 30 30 30 38 30 4c 3b 0d 0a 63 6f 6e x00000080L;..con 43a0: 73 74 20 44 33 44 54 45 58 4f 50 43 41 50 53 5f st D3DTEXOPCAPS_ 43b0: 41 44 44 53 49 47 4e 45 44 32 58 20 3d 20 30 78 ADDSIGNED2X = 0x 43c0: 30 30 30 30 30 31 30 30 4c 3b 0d 0a 63 6f 6e 73 00000100L;..cons 43d0: 74 20 44 33 44 54 45 58 4f 50 43 41 50 53 5f 53 t D3DTEXOPCAPS_S 43e0: 55 42 54 52 41 43 54 20 3d 20 30 78 30 30 30 30 UBTRACT = 0x0000 43f0: 30 32 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 0200L;..const D3 4400: 44 54 45 58 4f 50 43 41 50 53 5f 41 44 44 53 4d DTEXOPCAPS_ADDSM 4410: 4f 4f 54 48 20 3d 20 30 78 30 30 30 30 30 34 30 OOTH = 0x0000040 4420: 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 54 45 0L;..const D3DTE 4430: 58 4f 50 43 41 50 53 5f 42 4c 45 4e 44 44 49 46 XOPCAPS_BLENDDIF 4440: 46 55 53 45 41 4c 50 48 41 20 3d 20 30 78 30 30 FUSEALPHA = 0x00 4450: 30 30 30 38 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 000800L;..const 4460: 44 33 44 54 45 58 4f 50 43 41 50 53 5f 42 4c 45 D3DTEXOPCAPS_BLE 4470: 4e 44 54 45 58 54 55 52 45 41 4c 50 48 41 20 3d NDTEXTUREALPHA = 4480: 20 30 78 30 30 30 30 31 30 30 30 4c 3b 0d 0a 63 0x00001000L;..c 4490: 6f 6e 73 74 20 44 33 44 54 45 58 4f 50 43 41 50 onst D3DTEXOPCAP 44a0: 53 5f 42 4c 45 4e 44 46 41 43 54 4f 52 41 4c 50 S_BLENDFACTORALP 44b0: 48 41 20 3d 20 30 78 30 30 30 30 32 30 30 30 4c HA = 0x00002000L 44c0: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 54 45 58 4f ;..const D3DTEXO 44d0: 50 43 41 50 53 5f 42 4c 45 4e 44 54 45 58 54 55 PCAPS_BLENDTEXTU 44e0: 52 45 41 4c 50 48 41 50 4d 20 3d 20 30 78 30 30 REALPHAPM = 0x00 44f0: 30 30 34 30 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 004000L;..const 4500: 44 33 44 54 45 58 4f 50 43 41 50 53 5f 42 4c 45 D3DTEXOPCAPS_BLE 4510: 4e 44 43 55 52 52 45 4e 54 41 4c 50 48 41 20 3d NDCURRENTALPHA = 4520: 20 30 78 30 30 30 30 38 30 30 30 4c 3b 0d 0a 63 0x00008000L;..c 4530: 6f 6e 73 74 20 44 33 44 54 45 58 4f 50 43 41 50 onst D3DTEXOPCAP 4540: 53 5f 50 52 45 4d 4f 44 55 4c 41 54 45 20 3d 20 S_PREMODULATE = 4550: 30 78 30 30 30 31 30 30 30 30 4c 3b 0d 0a 63 6f 0x00010000L;..co 4560: 6e 73 74 20 44 33 44 54 45 58 4f 50 43 41 50 53 nst D3DTEXOPCAPS 4570: 5f 4d 4f 44 55 4c 41 54 45 41 4c 50 48 41 5f 41 _MODULATEALPHA_A 4580: 44 44 43 4f 4c 4f 52 20 3d 20 30 78 30 30 30 32 DDCOLOR = 0x0002 4590: 30 30 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 0000L;..const D3 45a0: 44 54 45 58 4f 50 43 41 50 53 5f 4d 4f 44 55 4c DTEXOPCAPS_MODUL 45b0: 41 54 45 43 4f 4c 4f 52 5f 41 44 44 41 4c 50 48 ATECOLOR_ADDALPH 45c0: 41 20 3d 20 30 78 30 30 30 34 30 30 30 30 4c 3b A = 0x00040000L; 45d0: 0d 0a 63 6f 6e 73 74 20 44 33 44 54 45 58 4f 50 ..const D3DTEXOP 45e0: 43 41 50 53 5f 4d 4f 44 55 4c 41 54 45 49 4e 56 CAPS_MODULATEINV 45f0: 41 4c 50 48 41 5f 41 44 44 43 4f 4c 4f 52 20 3d ALPHA_ADDCOLOR = 4600: 20 30 78 30 30 30 38 30 30 30 30 4c 3b 0d 0a 63 0x00080000L;..c 4610: 6f 6e 73 74 20 44 33 44 54 45 58 4f 50 43 41 50 onst D3DTEXOPCAP 4620: 53 5f 4d 4f 44 55 4c 41 54 45 49 4e 56 43 4f 4c S_MODULATEINVCOL 4630: 4f 52 5f 41 44 44 41 4c 50 48 41 20 3d 20 30 78 OR_ADDALPHA = 0x 4640: 30 30 31 30 30 30 30 30 4c 3b 0d 0a 63 6f 6e 73 00100000L;..cons 4650: 74 20 44 33 44 54 45 58 4f 50 43 41 50 53 5f 42 t D3DTEXOPCAPS_B 4660: 55 4d 50 45 4e 56 4d 41 50 20 3d 20 30 78 30 30 UMPENVMAP = 0x00 4670: 32 30 30 30 30 30 4c 3b 0d 0a 63 6f 6e 73 74 20 200000L;..const 4680: 44 33 44 54 45 58 4f 50 43 41 50 53 5f 42 55 4d D3DTEXOPCAPS_BUM 4690: 50 45 4e 56 4d 41 50 4c 55 4d 49 4e 41 4e 43 45 PENVMAPLUMINANCE 46a0: 20 3d 20 30 78 30 30 34 30 30 30 30 30 4c 3b 0d = 0x00400000L;. 46b0: 0a 63 6f 6e 73 74 20 44 33 44 54 45 58 4f 50 43 .const D3DTEXOPC 46c0: 41 50 53 5f 44 4f 54 50 52 4f 44 55 43 54 33 20 APS_DOTPRODUCT3 46d0: 3d 20 30 78 30 30 38 30 30 30 30 30 4c 3b 0d 0a = 0x00800000L;.. 46e0: 63 6f 6e 73 74 20 44 33 44 54 45 58 4f 50 43 41 const D3DTEXOPCA 46f0: 50 53 5f 4d 55 4c 54 49 50 4c 59 41 44 44 20 3d PS_MULTIPLYADD = 4700: 20 30 78 30 31 30 30 30 30 30 30 4c 3b 0d 0a 63 0x01000000L;..c 4710: 6f 6e 73 74 20 44 33 44 54 45 58 4f 50 43 41 50 onst D3DTEXOPCAP 4720: 53 5f 4c 45 52 50 20 3d 20 30 78 30 32 30 30 30 S_LERP = 0x02000 4730: 30 30 30 4c 3b 0d 0a 0d 0a 2f 2f 0d 0a 2f 2f 20 000L;....//..// 4740: 46 56 46 43 61 70 73 0d 0a 2f 2f 0d 0a 63 6f 6e FVFCaps..//..con 4750: 73 74 20 44 33 44 46 56 46 43 41 50 53 5f 54 45 st D3DFVFCAPS_TE 4760: 58 43 4f 4f 52 44 43 4f 55 4e 54 4d 41 53 4b 20 XCOORDCOUNTMASK 4770: 3d 20 30 78 30 30 30 30 66 66 66 66 4c 3b 20 2f = 0x0000ffffL; / 4780: 2a 20 6d 61 73 6b 20 66 6f 72 20 74 65 78 74 75 * mask for textu 4790: 72 65 20 63 6f 6f 72 64 69 6e 61 74 65 20 63 6f re coordinate co 47a0: 75 6e 74 20 66 69 65 6c 64 20 2a 2f 0d 0a 63 6f unt field */..co 47b0: 6e 73 74 20 44 33 44 46 56 46 43 41 50 53 5f 44 nst D3DFVFCAPS_D 47c0: 4f 4e 4f 54 53 54 52 49 50 45 4c 45 4d 45 4e 54 ONOTSTRIPELEMENT 47d0: 53 20 3d 20 30 78 30 30 30 38 30 30 30 30 4c 3b S = 0x00080000L; 47e0: 20 2f 2a 20 44 65 76 69 63 65 20 70 72 65 66 65 /* Device prefe 47f0: 72 73 20 74 68 61 74 20 76 65 72 74 65 78 20 65 rs that vertex e 4800: 6c 65 6d 65 6e 74 73 20 6e 6f 74 20 62 65 20 73 lements not be s 4810: 74 72 69 70 70 65 64 20 2a 2f 0d 0a 63 6f 6e 73 tripped */..cons 4820: 74 20 44 33 44 46 56 46 43 41 50 53 5f 50 53 49 t D3DFVFCAPS_PSI 4830: 5a 45 20 3d 20 30 78 30 30 31 30 30 30 30 30 4c ZE = 0x00100000L 4840: 3b 20 2f 2a 20 44 65 76 69 63 65 20 63 61 6e 20 ; /* Device can 4850: 72 65 63 65 69 76 65 20 70 6f 69 6e 74 20 73 69 receive point si 4860: 7a 65 20 2a 2f 0d 0a 0d 0a 2f 2f 0d 0a 2f 2f 20 ze */....//..// 4870: 56 65 72 74 65 78 50 72 6f 63 65 73 73 69 6e 67 VertexProcessing 4880: 43 61 70 73 0d 0a 2f 2f 0d 0a 63 6f 6e 73 74 20 Caps..//..const 4890: 44 33 44 56 54 58 50 43 41 50 53 5f 54 45 58 47 D3DVTXPCAPS_TEXG 48a0: 45 4e 20 3d 20 30 78 30 30 30 30 30 30 30 31 4c EN = 0x00000001L 48b0: 3b 20 2f 2a 20 64 65 76 69 63 65 20 63 61 6e 20 ; /* device can 48c0: 64 6f 20 74 65 78 67 65 6e 20 2a 2f 0d 0a 63 6f do texgen */..co 48d0: 6e 73 74 20 44 33 44 56 54 58 50 43 41 50 53 5f nst D3DVTXPCAPS_ 48e0: 4d 41 54 45 52 49 41 4c 53 4f 55 52 43 45 37 20 MATERIALSOURCE7 48f0: 3d 20 30 78 30 30 30 30 30 30 30 32 4c 3b 20 2f = 0x00000002L; / 4900: 2a 20 64 65 76 69 63 65 20 63 61 6e 20 64 6f 20 * device can do 4910: 44 58 37 2d 6c 65 76 65 6c 20 63 6f 6c 6f 72 6d DX7-level colorm 4920: 61 74 65 72 69 61 6c 73 6f 75 72 63 65 20 6f 70 aterialsource op 4930: 73 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 56 s */..const D3DV 4940: 54 58 50 43 41 50 53 5f 44 49 52 45 43 54 49 4f TXPCAPS_DIRECTIO 4950: 4e 41 4c 4c 49 47 48 54 53 20 3d 20 30 78 30 30 NALLIGHTS = 0x00 4960: 30 30 30 30 30 38 4c 3b 20 2f 2a 20 64 65 76 69 000008L; /* devi 4970: 63 65 20 63 61 6e 20 64 6f 20 64 69 72 65 63 74 ce can do direct 4980: 69 6f 6e 61 6c 20 6c 69 67 68 74 73 20 2a 2f 0d ional lights */. 4990: 0a 63 6f 6e 73 74 20 44 33 44 56 54 58 50 43 41 .const D3DVTXPCA 49a0: 50 53 5f 50 4f 53 49 54 49 4f 4e 41 4c 4c 49 47 PS_POSITIONALLIG 49b0: 48 54 53 20 3d 20 30 78 30 30 30 30 30 30 31 30 HTS = 0x00000010 49c0: 4c 3b 20 2f 2a 20 64 65 76 69 63 65 20 63 61 6e L; /* device can 49d0: 20 64 6f 20 70 6f 73 69 74 69 6f 6e 61 6c 20 6c do positional l 49e0: 69 67 68 74 73 20 28 69 6e 63 6c 75 64 65 73 20 ights (includes 49f0: 70 6f 69 6e 74 20 61 6e 64 20 73 70 6f 74 29 20 point and spot) 4a00: 2a 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 56 54 58 */..const D3DVTX 4a10: 50 43 41 50 53 5f 4c 4f 43 41 4c 56 49 45 57 45 PCAPS_LOCALVIEWE 4a20: 52 20 3d 20 30 78 30 30 30 30 30 30 32 30 4c 3b R = 0x00000020L; 4a30: 20 2f 2a 20 64 65 76 69 63 65 20 63 61 6e 20 64 /* device can d 4a40: 6f 20 6c 6f 63 61 6c 20 76 69 65 77 65 72 20 2a o local viewer * 4a50: 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 56 54 58 50 /..const D3DVTXP 4a60: 43 41 50 53 5f 54 57 45 45 4e 49 4e 47 20 3d 20 CAPS_TWEENING = 4a70: 30 78 30 30 30 30 30 30 34 30 4c 3b 20 2f 2a 20 0x00000040L; /* 4a80: 64 65 76 69 63 65 20 63 61 6e 20 64 6f 20 76 65 device can do ve 4a90: 72 74 65 78 20 74 77 65 65 6e 69 6e 67 20 2a 2f rtex tweening */ 4aa0: 0d 0a 63 6f 6e 73 74 20 44 33 44 56 54 58 50 43 ..const D3DVTXPC 4ab0: 41 50 53 5f 54 45 58 47 45 4e 5f 53 50 48 45 52 APS_TEXGEN_SPHER 4ac0: 45 4d 41 50 20 3d 20 30 78 30 30 30 30 30 31 30 EMAP = 0x0000010 4ad0: 30 4c 3b 20 2f 2a 20 64 65 76 69 63 65 20 73 75 0L; /* device su 4ae0: 70 70 6f 72 74 73 20 44 33 44 54 53 53 5f 54 43 pports D3DTSS_TC 4af0: 49 5f 53 50 48 45 52 45 4d 41 50 20 2a 2f 0d 0a I_SPHEREMAP */.. 4b00: 63 6f 6e 73 74 20 44 33 44 56 54 58 50 43 41 50 const D3DVTXPCAP 4b10: 53 5f 4e 4f 5f 54 45 58 47 45 4e 5f 4e 4f 4e 4c S_NO_TEXGEN_NONL 4b20: 4f 43 41 4c 56 49 45 57 45 52 20 3d 20 30 78 30 OCALVIEWER = 0x0 4b30: 30 30 30 30 32 30 30 4c 3b 20 2f 2a 20 64 65 76 0000200L; /* dev 4b40: 69 63 65 20 64 6f 65 73 20 6e 6f 74 20 73 75 70 ice does not sup 4b50: 70 6f 72 74 20 54 65 78 47 65 6e 20 69 6e 20 6e port TexGen in n 4b60: 6f 6e 2d 6c 6f 63 61 6c 0d 0a 20 20 20 20 20 20 on-local.. 4b70: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4b80: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4b90: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4ba0: 20 20 20 20 20 20 76 69 65 77 65 72 20 6d 6f 64 viewer mod 4bb0: 65 20 2a 2f 0d 0a 0d 0a 2f 2f 0d 0a 2f 2f 20 44 e */....//..// D 4bc0: 65 76 43 61 70 73 32 0d 0a 2f 2f 0d 0a 63 6f 6e evCaps2..//..con 4bd0: 73 74 20 44 33 44 44 45 56 43 41 50 53 32 5f 53 st D3DDEVCAPS2_S 4be0: 54 52 45 41 4d 4f 46 46 53 45 54 20 3d 20 30 78 TREAMOFFSET = 0x 4bf0: 30 30 30 30 30 30 30 31 4c 3b 20 2f 2a 20 44 65 00000001L; /* De 4c00: 76 69 63 65 20 73 75 70 70 6f 72 74 73 20 6f 66 vice supports of 4c10: 66 73 65 74 73 20 69 6e 20 73 74 72 65 61 6d 73 fsets in streams 4c20: 2e 20 4d 75 73 74 20 62 65 20 73 65 74 20 62 79 . Must be set by 4c30: 20 44 58 39 20 64 72 69 76 65 72 73 20 2a 2f 0d DX9 drivers */. 4c40: 0a 63 6f 6e 73 74 20 44 33 44 44 45 56 43 41 50 .const D3DDEVCAP 4c50: 53 32 5f 44 4d 41 50 4e 50 41 54 43 48 20 3d 20 S2_DMAPNPATCH = 4c60: 30 78 30 30 30 30 30 30 30 32 4c 3b 20 2f 2a 20 0x00000002L; /* 4c70: 44 65 76 69 63 65 20 73 75 70 70 6f 72 74 73 20 Device supports 4c80: 64 69 73 70 6c 61 63 65 6d 65 6e 74 20 6d 61 70 displacement map 4c90: 73 20 66 6f 72 20 4e 2d 50 61 74 63 68 65 73 2a s for N-Patches* 4ca0: 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 44 45 56 43 /..const D3DDEVC 4cb0: 41 50 53 32 5f 41 44 41 50 54 49 56 45 54 45 53 APS2_ADAPTIVETES 4cc0: 53 52 54 50 41 54 43 48 20 3d 20 30 78 30 30 30 SRTPATCH = 0x000 4cd0: 30 30 30 30 34 4c 3b 20 2f 2a 20 44 65 76 69 63 00004L; /* Devic 4ce0: 65 20 73 75 70 70 6f 72 74 73 20 61 64 61 70 74 e supports adapt 4cf0: 69 76 65 20 74 65 73 73 65 6c 61 74 69 6f 6e 20 ive tesselation 4d00: 6f 66 20 52 54 2d 70 61 74 63 68 65 73 2a 2f 0d of RT-patches*/. 4d10: 0a 63 6f 6e 73 74 20 44 33 44 44 45 56 43 41 50 .const D3DDEVCAP 4d20: 53 32 5f 41 44 41 50 54 49 56 45 54 45 53 53 4e S2_ADAPTIVETESSN 4d30: 50 41 54 43 48 20 3d 20 30 78 30 30 30 30 30 30 PATCH = 0x000000 4d40: 30 38 4c 3b 20 2f 2a 20 44 65 76 69 63 65 20 73 08L; /* Device s 4d50: 75 70 70 6f 72 74 73 20 61 64 61 70 74 69 76 65 upports adaptive 4d60: 20 74 65 73 73 65 6c 61 74 69 6f 6e 20 6f 66 20 tesselation of 4d70: 4e 2d 70 61 74 63 68 65 73 2a 2f 0d 0a 63 6f 6e N-patches*/..con 4d80: 73 74 20 44 33 44 44 45 56 43 41 50 53 32 5f 43 st D3DDEVCAPS2_C 4d90: 41 4e 5f 53 54 52 45 54 43 48 52 45 43 54 5f 46 AN_STRETCHRECT_F 4da0: 52 4f 4d 5f 54 45 58 54 55 52 45 53 20 3d 20 30 ROM_TEXTURES = 0 4db0: 78 30 30 30 30 30 30 31 30 4c 3b 20 2f 2a 20 44 x00000010L; /* D 4dc0: 65 76 69 63 65 20 73 75 70 70 6f 72 74 73 20 53 evice supports S 4dd0: 74 72 65 74 63 68 52 65 63 74 20 63 61 6c 6c 73 tretchRect calls 4de0: 20 77 69 74 68 20 61 20 74 65 78 74 75 72 65 20 with a texture 4df0: 61 73 20 74 68 65 20 73 6f 75 72 63 65 2a 2f 0d as the source*/. 4e00: 0a 63 6f 6e 73 74 20 44 33 44 44 45 56 43 41 50 .const D3DDEVCAP 4e10: 53 32 5f 50 52 45 53 41 4d 50 4c 45 44 44 4d 41 S2_PRESAMPLEDDMA 4e20: 50 4e 50 41 54 43 48 20 3d 20 30 78 30 30 30 30 PNPATCH = 0x0000 4e30: 30 30 32 30 4c 3b 20 2f 2a 20 44 65 76 69 63 65 0020L; /* Device 4e40: 20 73 75 70 70 6f 72 74 73 20 70 72 65 73 61 6d supports presam 4e50: 70 6c 65 64 20 64 69 73 70 6c 61 63 65 6d 65 6e pled displacemen 4e60: 74 20 6d 61 70 73 20 66 6f 72 20 4e 2d 50 61 74 t maps for N-Pat 4e70: 63 68 65 73 20 2a 2f 0d 0a 63 6f 6e 73 74 20 44 ches */..const D 4e80: 33 44 44 45 56 43 41 50 53 32 5f 56 45 52 54 45 3DDEVCAPS2_VERTE 4e90: 58 45 4c 45 4d 45 4e 54 53 43 41 4e 53 48 41 52 XELEMENTSCANSHAR 4ea0: 45 53 54 52 45 41 4d 4f 46 46 53 45 54 20 3d 20 ESTREAMOFFSET = 4eb0: 30 78 30 30 30 30 30 30 34 30 4c 3b 20 2f 2a 20 0x00000040L; /* 4ec0: 56 65 72 74 65 78 20 65 6c 65 6d 65 6e 74 73 20 Vertex elements 4ed0: 69 6e 20 61 20 76 65 72 74 65 78 20 64 65 63 6c in a vertex decl 4ee0: 61 72 61 74 69 6f 6e 20 63 61 6e 20 73 68 61 72 aration can shar 4ef0: 65 20 74 68 65 20 73 61 6d 65 20 73 74 72 65 61 e the same strea 4f00: 6d 20 6f 66 66 73 65 74 20 2a 2f 0d 0a 0d 0a 2f m offset */..../ 4f10: 2f 0d 0a 2f 2f 20 44 65 63 6c 54 79 70 65 73 0d /..// DeclTypes. 4f20: 0a 2f 2f 0d 0a 63 6f 6e 73 74 20 44 33 44 44 54 .//..const D3DDT 4f30: 43 41 50 53 5f 55 42 59 54 45 34 20 3d 20 30 78 CAPS_UBYTE4 = 0x 4f40: 30 30 30 30 30 30 30 31 4c 3b 0d 0a 63 6f 6e 73 00000001L;..cons 4f50: 74 20 44 33 44 44 54 43 41 50 53 5f 55 42 59 54 t D3DDTCAPS_UBYT 4f60: 45 34 4e 20 3d 20 30 78 30 30 30 30 30 30 30 32 E4N = 0x00000002 4f70: 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 44 54 43 L;..const D3DDTC 4f80: 41 50 53 5f 53 48 4f 52 54 32 4e 20 3d 20 30 78 APS_SHORT2N = 0x 4f90: 30 30 30 30 30 30 30 34 4c 3b 0d 0a 63 6f 6e 73 00000004L;..cons 4fa0: 74 20 44 33 44 44 54 43 41 50 53 5f 53 48 4f 52 t D3DDTCAPS_SHOR 4fb0: 54 34 4e 20 3d 20 30 78 30 30 30 30 30 30 30 38 T4N = 0x00000008 4fc0: 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 44 54 43 L;..const D3DDTC 4fd0: 41 50 53 5f 55 53 48 4f 52 54 32 4e 20 3d 20 30 APS_USHORT2N = 0 4fe0: 78 30 30 30 30 30 30 31 30 4c 3b 0d 0a 63 6f 6e x00000010L;..con 4ff0: 73 74 20 44 33 44 44 54 43 41 50 53 5f 55 53 48 st D3DDTCAPS_USH 5000: 4f 52 54 34 4e 20 3d 20 30 78 30 30 30 30 30 30 ORT4N = 0x000000 5010: 32 30 4c 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 44 20L;..const D3DD 5020: 54 43 41 50 53 5f 55 44 45 43 33 20 3d 20 30 78 TCAPS_UDEC3 = 0x 5030: 30 30 30 30 30 30 34 30 4c 3b 0d 0a 63 6f 6e 73 00000040L;..cons 5040: 74 20 44 33 44 44 54 43 41 50 53 5f 44 45 43 33 t D3DDTCAPS_DEC3 5050: 4e 20 3d 20 30 78 30 30 30 30 30 30 38 30 4c 3b N = 0x00000080L; 5060: 0d 0a 63 6f 6e 73 74 20 44 33 44 44 54 43 41 50 ..const D3DDTCAP 5070: 53 5f 46 4c 4f 41 54 31 36 5f 32 20 3d 20 30 78 S_FLOAT16_2 = 0x 5080: 30 30 30 30 30 31 30 30 4c 3b 0d 0a 63 6f 6e 73 00000100L;..cons 5090: 74 20 44 33 44 44 54 43 41 50 53 5f 46 4c 4f 41 t D3DDTCAPS_FLOA 50a0: 54 31 36 5f 34 20 3d 20 30 78 30 30 30 30 30 32 T16_4 = 0x000002 50b0: 30 30 4c 3b 00L;