Hex Artifact Content

Not logged in

Artifact 440959a663efe1fe4fa5cbc9732e4e8f70edcf85:


0000: 2f 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  /***************
0010: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0020: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0030: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0040: 2a 2a 2a 2a 2a 2a 2a 2a 5c 0d 0a 2a 20 20 20 20  ********\..*    
0050: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0060: 20 20 20 20 20 20 20 20 20 20 20 20 20 64 33 64               d3d
0070: 31 30 2e 64 20 20 20 20 20 20 20 20 20 20 20 20  10.d            
0080: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0090: 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 20 20     *..*         
00a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00c0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a 0d                *.
00e0: 0a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 20  .*              
00f0: 20 20 20 20 20 20 20 20 20 57 69 6e 64 6f 77 73           Windows
0100: 20 41 50 49 20 68 65 61 64 65 72 20 6d 6f 64 75   API header modu
0110: 6c 65 20 20 20 20 20 20 20 20 20 20 20 20 20 20  le              
0120: 20 20 20 20 20 20 20 20 20 2a 0d 0a 2a 20 20 20           *..*   
0130: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0140: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0150: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0160: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0170: 20 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 20      *..*        
0180: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 50                 P
0190: 6c 61 63 65 64 20 69 6e 74 6f 20 70 75 62 6c 69  laced into publi
01a0: 63 20 64 6f 6d 61 69 6e 20 20 20 20 20 20 20 20  c domain        
01b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a                 *
01c0: 0d 0a 5c 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ..\*************
01d0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
01e0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
01f0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0200: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2f 0d 0a 6d 6f 64  **********/..mod
0210: 75 6c 65 20 77 69 6e 33 32 2e 64 69 72 65 63 74  ule win32.direct
0220: 78 2e 64 33 64 31 30 3b 0d 0a 0d 0a 70 72 69 76  x.d3d10;....priv
0230: 61 74 65 20 69 6d 70 6f 72 74 20 77 69 6e 33 32  ate import win32
0240: 2e 77 69 6e 64 6f 77 73 3b 0d 0a 0d 0a 70 75 62  .windows;....pub
0250: 6c 69 63 20 69 6d 70 6f 72 74 20 77 69 6e 33 32  lic import win32
0260: 2e 64 69 72 65 63 74 78 2e 64 78 67 69 74 79 70  .directx.dxgityp
0270: 65 3b 0d 0a 70 75 62 6c 69 63 20 69 6d 70 6f 72  e;..public impor
0280: 74 20 77 69 6e 33 32 2e 64 69 72 65 63 74 78 2e  t win32.directx.
0290: 64 78 67 69 3b 0d 0a 70 75 62 6c 69 63 20 69 6d  dxgi;..public im
02a0: 70 6f 72 74 20 77 69 6e 33 32 2e 64 69 72 65 63  port win32.direc
02b0: 74 78 2e 64 33 64 31 30 6d 69 73 63 3b 0d 0a 0d  tx.d3d10misc;...
02c0: 0a 70 72 61 67 6d 61 28 6c 69 62 2c 20 22 64 33  .pragma(lib, "d3
02d0: 64 31 30 2e 6c 69 62 22 29 3b 0d 0a 0d 0a 63 6f  d10.lib");....co
02e0: 6e 73 74 20 44 33 44 31 30 5f 31 36 42 49 54 5f  nst D3D10_16BIT_
02f0: 49 4e 44 45 58 5f 53 54 52 49 50 5f 43 55 54 5f  INDEX_STRIP_CUT_
0300: 56 41 4c 55 45 09 3d 20 30 78 66 66 66 66 3b 0d  VALUE.= 0xffff;.
0310: 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 33 32 42  .const D3D10_32B
0320: 49 54 5f 49 4e 44 45 58 5f 53 54 52 49 50 5f 43  IT_INDEX_STRIP_C
0330: 55 54 5f 56 41 4c 55 45 09 3d 20 30 78 66 66 66  UT_VALUE.= 0xfff
0340: 66 66 66 66 66 3b 0d 0a 63 6f 6e 73 74 20 44 33  fffff;..const D3
0350: 44 31 30 5f 38 42 49 54 5f 49 4e 44 45 58 5f 53  D10_8BIT_INDEX_S
0360: 54 52 49 50 5f 43 55 54 5f 56 41 4c 55 45 20 3d  TRIP_CUT_VALUE =
0370: 20 30 78 66 66 3b 0d 0a 63 6f 6e 73 74 20 44 33   0xff;..const D3
0380: 44 31 30 5f 41 52 52 41 59 5f 41 58 49 53 5f 41  D10_ARRAY_AXIS_A
0390: 44 44 52 45 53 53 5f 52 41 4e 47 45 5f 42 49 54  DDRESS_RANGE_BIT
03a0: 5f 43 4f 55 4e 54 20 3d 20 39 3b 0d 0a 63 6f 6e  _COUNT = 9;..con
03b0: 73 74 20 44 33 44 31 30 5f 43 4c 49 50 5f 4f 52  st D3D10_CLIP_OR
03c0: 5f 43 55 4c 4c 5f 44 49 53 54 41 4e 43 45 5f 43  _CULL_DISTANCE_C
03d0: 4f 55 4e 54 20 3d 20 38 3b 0d 0a 63 6f 6e 73 74  OUNT = 8;..const
03e0: 20 44 33 44 31 30 5f 43 4c 49 50 5f 4f 52 5f 43   D3D10_CLIP_OR_C
03f0: 55 4c 4c 5f 44 49 53 54 41 4e 43 45 5f 45 4c 45  ULL_DISTANCE_ELE
0400: 4d 45 4e 54 5f 43 4f 55 4e 54 20 3d 20 32 3b 0d  MENT_COUNT = 2;.
0410: 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 43 4f 4d  .const D3D10_COM
0420: 4d 4f 4e 53 48 41 44 45 52 5f 43 4f 4e 53 54 41  MONSHADER_CONSTA
0430: 4e 54 5f 42 55 46 46 45 52 5f 41 50 49 5f 53 4c  NT_BUFFER_API_SL
0440: 4f 54 5f 43 4f 55 4e 54 20 3d 20 31 34 3b 0d 0a  OT_COUNT = 14;..
0450: 63 6f 6e 73 74 20 44 33 44 31 30 5f 43 4f 4d 4d  const D3D10_COMM
0460: 4f 4e 53 48 41 44 45 52 5f 43 4f 4e 53 54 41 4e  ONSHADER_CONSTAN
0470: 54 5f 42 55 46 46 45 52 5f 43 4f 4d 50 4f 4e 45  T_BUFFER_COMPONE
0480: 4e 54 53 20 3d 20 34 3b 0d 0a 63 6f 6e 73 74 20  NTS = 4;..const 
0490: 44 33 44 31 30 5f 43 4f 4d 4d 4f 4e 53 48 41 44  D3D10_COMMONSHAD
04a0: 45 52 5f 43 4f 4e 53 54 41 4e 54 5f 42 55 46 46  ER_CONSTANT_BUFF
04b0: 45 52 5f 43 4f 4d 50 4f 4e 45 4e 54 5f 42 49 54  ER_COMPONENT_BIT
04c0: 5f 43 4f 55 4e 54 20 3d 20 33 32 3b 0d 0a 63 6f  _COUNT = 32;..co
04d0: 6e 73 74 20 44 33 44 31 30 5f 43 4f 4d 4d 4f 4e  nst D3D10_COMMON
04e0: 53 48 41 44 45 52 5f 43 4f 4e 53 54 41 4e 54 5f  SHADER_CONSTANT_
04f0: 42 55 46 46 45 52 5f 48 57 5f 53 4c 4f 54 5f 43  BUFFER_HW_SLOT_C
0500: 4f 55 4e 54 20 3d 20 31 35 3b 0d 0a 63 6f 6e 73  OUNT = 15;..cons
0510: 74 20 44 33 44 31 30 5f 43 4f 4d 4d 4f 4e 53 48  t D3D10_COMMONSH
0520: 41 44 45 52 5f 43 4f 4e 53 54 41 4e 54 5f 42 55  ADER_CONSTANT_BU
0530: 46 46 45 52 5f 52 45 47 49 53 54 45 52 5f 43 4f  FFER_REGISTER_CO
0540: 4d 50 4f 4e 45 4e 54 53 20 3d 20 34 3b 0d 0a 63  MPONENTS = 4;..c
0550: 6f 6e 73 74 20 44 33 44 31 30 5f 43 4f 4d 4d 4f  onst D3D10_COMMO
0560: 4e 53 48 41 44 45 52 5f 43 4f 4e 53 54 41 4e 54  NSHADER_CONSTANT
0570: 5f 42 55 46 46 45 52 5f 52 45 47 49 53 54 45 52  _BUFFER_REGISTER
0580: 5f 43 4f 55 4e 54 20 3d 20 31 35 3b 0d 0a 63 6f  _COUNT = 15;..co
0590: 6e 73 74 20 44 33 44 31 30 5f 43 4f 4d 4d 4f 4e  nst D3D10_COMMON
05a0: 53 48 41 44 45 52 5f 43 4f 4e 53 54 41 4e 54 5f  SHADER_CONSTANT_
05b0: 42 55 46 46 45 52 5f 52 45 47 49 53 54 45 52 5f  BUFFER_REGISTER_
05c0: 52 45 41 44 53 5f 50 45 52 5f 49 4e 53 54 20 3d  READS_PER_INST =
05d0: 20 31 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30   1;..const D3D10
05e0: 5f 43 4f 4d 4d 4f 4e 53 48 41 44 45 52 5f 43 4f  _COMMONSHADER_CO
05f0: 4e 53 54 41 4e 54 5f 42 55 46 46 45 52 5f 52 45  NSTANT_BUFFER_RE
0600: 47 49 53 54 45 52 5f 52 45 41 44 5f 50 4f 52 54  GISTER_READ_PORT
0610: 53 20 3d 20 31 3b 0d 0a 63 6f 6e 73 74 20 44 33  S = 1;..const D3
0620: 44 31 30 5f 43 4f 4d 4d 4f 4e 53 48 41 44 45 52  D10_COMMONSHADER
0630: 5f 46 4c 4f 57 43 4f 4e 54 52 4f 4c 5f 4e 45 53  _FLOWCONTROL_NES
0640: 54 49 4e 47 5f 4c 49 4d 49 54 20 3d 20 36 34 3b  TING_LIMIT = 64;
0650: 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 43 4f  ..const D3D10_CO
0660: 4d 4d 4f 4e 53 48 41 44 45 52 5f 49 4d 4d 45 44  MMONSHADER_IMMED
0670: 49 41 54 45 5f 43 4f 4e 53 54 41 4e 54 5f 42 55  IATE_CONSTANT_BU
0680: 46 46 45 52 5f 52 45 47 49 53 54 45 52 5f 43 4f  FFER_REGISTER_CO
0690: 4d 50 4f 4e 45 4e 54 53 20 3d 20 34 3b 0d 0a 63  MPONENTS = 4;..c
06a0: 6f 6e 73 74 20 44 33 44 31 30 5f 43 4f 4d 4d 4f  onst D3D10_COMMO
06b0: 4e 53 48 41 44 45 52 5f 49 4d 4d 45 44 49 41 54  NSHADER_IMMEDIAT
06c0: 45 5f 43 4f 4e 53 54 41 4e 54 5f 42 55 46 46 45  E_CONSTANT_BUFFE
06d0: 52 5f 52 45 47 49 53 54 45 52 5f 43 4f 55 4e 54  R_REGISTER_COUNT
06e0: 20 3d 20 31 3b 0d 0a 63 6f 6e 73 74 20 44 33 44   = 1;..const D3D
06f0: 31 30 5f 43 4f 4d 4d 4f 4e 53 48 41 44 45 52 5f  10_COMMONSHADER_
0700: 49 4d 4d 45 44 49 41 54 45 5f 43 4f 4e 53 54 41  IMMEDIATE_CONSTA
0710: 4e 54 5f 42 55 46 46 45 52 5f 52 45 47 49 53 54  NT_BUFFER_REGIST
0720: 45 52 5f 52 45 41 44 53 5f 50 45 52 5f 49 4e 53  ER_READS_PER_INS
0730: 54 20 3d 20 31 3b 0d 0a 63 6f 6e 73 74 20 44 33  T = 1;..const D3
0740: 44 31 30 5f 43 4f 4d 4d 4f 4e 53 48 41 44 45 52  D10_COMMONSHADER
0750: 5f 49 4d 4d 45 44 49 41 54 45 5f 43 4f 4e 53 54  _IMMEDIATE_CONST
0760: 41 4e 54 5f 42 55 46 46 45 52 5f 52 45 47 49 53  ANT_BUFFER_REGIS
0770: 54 45 52 5f 52 45 41 44 5f 50 4f 52 54 53 20 3d  TER_READ_PORTS =
0780: 20 31 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30   1;..const D3D10
0790: 5f 43 4f 4d 4d 4f 4e 53 48 41 44 45 52 5f 49 4d  _COMMONSHADER_IM
07a0: 4d 45 44 49 41 54 45 5f 56 41 4c 55 45 5f 43 4f  MEDIATE_VALUE_CO
07b0: 4d 50 4f 4e 45 4e 54 5f 42 49 54 5f 43 4f 55 4e  MPONENT_BIT_COUN
07c0: 54 20 3d 20 33 32 3b 0d 0a 63 6f 6e 73 74 20 44  T = 32;..const D
07d0: 33 44 31 30 5f 43 4f 4d 4d 4f 4e 53 48 41 44 45  3D10_COMMONSHADE
07e0: 52 5f 49 4e 50 55 54 5f 52 45 53 4f 55 52 43 45  R_INPUT_RESOURCE
07f0: 5f 52 45 47 49 53 54 45 52 5f 43 4f 4d 50 4f 4e  _REGISTER_COMPON
0800: 45 4e 54 53 20 3d 20 31 3b 0d 0a 63 6f 6e 73 74  ENTS = 1;..const
0810: 20 44 33 44 31 30 5f 43 4f 4d 4d 4f 4e 53 48 41   D3D10_COMMONSHA
0820: 44 45 52 5f 49 4e 50 55 54 5f 52 45 53 4f 55 52  DER_INPUT_RESOUR
0830: 43 45 5f 52 45 47 49 53 54 45 52 5f 43 4f 55 4e  CE_REGISTER_COUN
0840: 54 20 3d 20 31 32 38 3b 0d 0a 63 6f 6e 73 74 20  T = 128;..const 
0850: 44 33 44 31 30 5f 43 4f 4d 4d 4f 4e 53 48 41 44  D3D10_COMMONSHAD
0860: 45 52 5f 49 4e 50 55 54 5f 52 45 53 4f 55 52 43  ER_INPUT_RESOURC
0870: 45 5f 52 45 47 49 53 54 45 52 5f 52 45 41 44 53  E_REGISTER_READS
0880: 5f 50 45 52 5f 49 4e 53 54 20 3d 20 31 3b 0d 0a  _PER_INST = 1;..
0890: 63 6f 6e 73 74 20 44 33 44 31 30 5f 43 4f 4d 4d  const D3D10_COMM
08a0: 4f 4e 53 48 41 44 45 52 5f 49 4e 50 55 54 5f 52  ONSHADER_INPUT_R
08b0: 45 53 4f 55 52 43 45 5f 52 45 47 49 53 54 45 52  ESOURCE_REGISTER
08c0: 5f 52 45 41 44 5f 50 4f 52 54 53 20 3d 20 31 3b  _READ_PORTS = 1;
08d0: 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 43 4f  ..const D3D10_CO
08e0: 4d 4d 4f 4e 53 48 41 44 45 52 5f 49 4e 50 55 54  MMONSHADER_INPUT
08f0: 5f 52 45 53 4f 55 52 43 45 5f 53 4c 4f 54 5f 43  _RESOURCE_SLOT_C
0900: 4f 55 4e 54 20 3d 20 31 32 38 3b 0d 0a 63 6f 6e  OUNT = 128;..con
0910: 73 74 20 44 33 44 31 30 5f 43 4f 4d 4d 4f 4e 53  st D3D10_COMMONS
0920: 48 41 44 45 52 5f 53 41 4d 50 4c 45 52 5f 52 45  HADER_SAMPLER_RE
0930: 47 49 53 54 45 52 5f 43 4f 4d 50 4f 4e 45 4e 54  GISTER_COMPONENT
0940: 53 20 3d 20 31 3b 0d 0a 63 6f 6e 73 74 20 44 33  S = 1;..const D3
0950: 44 31 30 5f 43 4f 4d 4d 4f 4e 53 48 41 44 45 52  D10_COMMONSHADER
0960: 5f 53 41 4d 50 4c 45 52 5f 52 45 47 49 53 54 45  _SAMPLER_REGISTE
0970: 52 5f 43 4f 55 4e 54 20 3d 20 31 36 3b 0d 0a 63  R_COUNT = 16;..c
0980: 6f 6e 73 74 20 44 33 44 31 30 5f 43 4f 4d 4d 4f  onst D3D10_COMMO
0990: 4e 53 48 41 44 45 52 5f 53 41 4d 50 4c 45 52 5f  NSHADER_SAMPLER_
09a0: 52 45 47 49 53 54 45 52 5f 52 45 41 44 53 5f 50  REGISTER_READS_P
09b0: 45 52 5f 49 4e 53 54 20 3d 20 31 3b 0d 0a 63 6f  ER_INST = 1;..co
09c0: 6e 73 74 20 44 33 44 31 30 5f 43 4f 4d 4d 4f 4e  nst D3D10_COMMON
09d0: 53 48 41 44 45 52 5f 53 41 4d 50 4c 45 52 5f 52  SHADER_SAMPLER_R
09e0: 45 47 49 53 54 45 52 5f 52 45 41 44 5f 50 4f 52  EGISTER_READ_POR
09f0: 54 53 20 3d 20 31 3b 0d 0a 63 6f 6e 73 74 20 44  TS = 1;..const D
0a00: 33 44 31 30 5f 43 4f 4d 4d 4f 4e 53 48 41 44 45  3D10_COMMONSHADE
0a10: 52 5f 53 41 4d 50 4c 45 52 5f 53 4c 4f 54 5f 43  R_SAMPLER_SLOT_C
0a20: 4f 55 4e 54 20 3d 20 31 36 3b 0d 0a 63 6f 6e 73  OUNT = 16;..cons
0a30: 74 20 44 33 44 31 30 5f 43 4f 4d 4d 4f 4e 53 48  t D3D10_COMMONSH
0a40: 41 44 45 52 5f 53 55 42 52 4f 55 54 49 4e 45 5f  ADER_SUBROUTINE_
0a50: 4e 45 53 54 49 4e 47 5f 4c 49 4d 49 54 20 3d 20  NESTING_LIMIT = 
0a60: 33 32 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30  32;..const D3D10
0a70: 5f 43 4f 4d 4d 4f 4e 53 48 41 44 45 52 5f 54 45  _COMMONSHADER_TE
0a80: 4d 50 5f 52 45 47 49 53 54 45 52 5f 43 4f 4d 50  MP_REGISTER_COMP
0a90: 4f 4e 45 4e 54 53 20 3d 20 34 3b 0d 0a 63 6f 6e  ONENTS = 4;..con
0aa0: 73 74 20 44 33 44 31 30 5f 43 4f 4d 4d 4f 4e 53  st D3D10_COMMONS
0ab0: 48 41 44 45 52 5f 54 45 4d 50 5f 52 45 47 49 53  HADER_TEMP_REGIS
0ac0: 54 45 52 5f 43 4f 4d 50 4f 4e 45 4e 54 5f 42 49  TER_COMPONENT_BI
0ad0: 54 5f 43 4f 55 4e 54 20 3d 20 33 32 3b 0d 0a 63  T_COUNT = 32;..c
0ae0: 6f 6e 73 74 20 44 33 44 31 30 5f 43 4f 4d 4d 4f  onst D3D10_COMMO
0af0: 4e 53 48 41 44 45 52 5f 54 45 4d 50 5f 52 45 47  NSHADER_TEMP_REG
0b00: 49 53 54 45 52 5f 43 4f 55 4e 54 20 3d 20 34 30  ISTER_COUNT = 40
0b10: 39 36 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30  96;..const D3D10
0b20: 5f 43 4f 4d 4d 4f 4e 53 48 41 44 45 52 5f 54 45  _COMMONSHADER_TE
0b30: 4d 50 5f 52 45 47 49 53 54 45 52 5f 52 45 41 44  MP_REGISTER_READ
0b40: 53 5f 50 45 52 5f 49 4e 53 54 20 3d 20 33 3b 0d  S_PER_INST = 3;.
0b50: 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 43 4f 4d  .const D3D10_COM
0b60: 4d 4f 4e 53 48 41 44 45 52 5f 54 45 4d 50 5f 52  MONSHADER_TEMP_R
0b70: 45 47 49 53 54 45 52 5f 52 45 41 44 5f 50 4f 52  EGISTER_READ_POR
0b80: 54 53 20 3d 20 33 3b 0d 0a 63 6f 6e 73 74 20 44  TS = 3;..const D
0b90: 33 44 31 30 5f 43 4f 4d 4d 4f 4e 53 48 41 44 45  3D10_COMMONSHADE
0ba0: 52 5f 54 45 58 43 4f 4f 52 44 5f 52 41 4e 47 45  R_TEXCOORD_RANGE
0bb0: 5f 52 45 44 55 43 54 49 4f 4e 5f 4d 41 58 20 3d  _REDUCTION_MAX =
0bc0: 20 31 30 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31   10;..const D3D1
0bd0: 30 5f 43 4f 4d 4d 4f 4e 53 48 41 44 45 52 5f 54  0_COMMONSHADER_T
0be0: 45 58 43 4f 4f 52 44 5f 52 41 4e 47 45 5f 52 45  EXCOORD_RANGE_RE
0bf0: 44 55 43 54 49 4f 4e 5f 4d 49 4e 20 3d 20 2d 31  DUCTION_MIN = -1
0c00: 30 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f  0;..const D3D10_
0c10: 43 4f 4d 4d 4f 4e 53 48 41 44 45 52 5f 54 45 58  COMMONSHADER_TEX
0c20: 45 4c 5f 4f 46 46 53 45 54 5f 4d 41 58 5f 4e 45  EL_OFFSET_MAX_NE
0c30: 47 41 54 49 56 45 20 3d 20 2d 38 3b 0d 0a 63 6f  GATIVE = -8;..co
0c40: 6e 73 74 20 44 33 44 31 30 5f 43 4f 4d 4d 4f 4e  nst D3D10_COMMON
0c50: 53 48 41 44 45 52 5f 54 45 58 45 4c 5f 4f 46 46  SHADER_TEXEL_OFF
0c60: 53 45 54 5f 4d 41 58 5f 50 4f 53 49 54 49 56 45  SET_MAX_POSITIVE
0c70: 20 3d 20 37 3b 0d 0a 63 6f 6e 73 74 20 44 33 44   = 7;..const D3D
0c80: 31 30 5f 44 45 46 41 55 4c 54 5f 42 4c 45 4e 44  10_DEFAULT_BLEND
0c90: 5f 46 41 43 54 4f 52 5f 41 4c 50 48 41 20 3d 20  _FACTOR_ALPHA = 
0ca0: 31 2e 30 66 3b 0d 0a 63 6f 6e 73 74 20 44 33 44  1.0f;..const D3D
0cb0: 31 30 5f 44 45 46 41 55 4c 54 5f 42 4c 45 4e 44  10_DEFAULT_BLEND
0cc0: 5f 46 41 43 54 4f 52 5f 42 4c 55 45 20 3d 20 31  _FACTOR_BLUE = 1
0cd0: 2e 30 66 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31  .0f;..const D3D1
0ce0: 30 5f 44 45 46 41 55 4c 54 5f 42 4c 45 4e 44 5f  0_DEFAULT_BLEND_
0cf0: 46 41 43 54 4f 52 5f 47 52 45 45 4e 20 3d 20 31  FACTOR_GREEN = 1
0d00: 2e 30 66 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31  .0f;..const D3D1
0d10: 30 5f 44 45 46 41 55 4c 54 5f 42 4c 45 4e 44 5f  0_DEFAULT_BLEND_
0d20: 46 41 43 54 4f 52 5f 52 45 44 20 3d 20 31 2e 30  FACTOR_RED = 1.0
0d30: 66 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f  f;..const D3D10_
0d40: 44 45 46 41 55 4c 54 5f 42 4f 52 44 45 52 5f 43  DEFAULT_BORDER_C
0d50: 4f 4c 4f 52 5f 43 4f 4d 50 4f 4e 45 4e 54 20 3d  OLOR_COMPONENT =
0d60: 20 30 2e 30 66 3b 0d 0a 63 6f 6e 73 74 20 44 33   0.0f;..const D3
0d70: 44 31 30 5f 44 45 46 41 55 4c 54 5f 44 45 50 54  D10_DEFAULT_DEPT
0d80: 48 5f 42 49 41 53 20 3d 20 30 3b 0d 0a 63 6f 6e  H_BIAS = 0;..con
0d90: 73 74 20 44 33 44 31 30 5f 44 45 46 41 55 4c 54  st D3D10_DEFAULT
0da0: 5f 44 45 50 54 48 5f 42 49 41 53 5f 43 4c 41 4d  _DEPTH_BIAS_CLAM
0db0: 50 20 3d 20 30 2e 30 66 3b 0d 0a 63 6f 6e 73 74  P = 0.0f;..const
0dc0: 20 44 33 44 31 30 5f 44 45 46 41 55 4c 54 5f 4d   D3D10_DEFAULT_M
0dd0: 41 58 5f 41 4e 49 53 4f 54 52 4f 50 59 20 3d 20  AX_ANISOTROPY = 
0de0: 31 36 2e 30 66 3b 0d 0a 63 6f 6e 73 74 20 44 33  16.0f;..const D3
0df0: 44 31 30 5f 44 45 46 41 55 4c 54 5f 4d 49 50 5f  D10_DEFAULT_MIP_
0e00: 4c 4f 44 5f 42 49 41 53 20 3d 20 30 2e 30 66 3b  LOD_BIAS = 0.0f;
0e10: 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 44 45  ..const D3D10_DE
0e20: 46 41 55 4c 54 5f 52 45 4e 44 45 52 5f 54 41 52  FAULT_RENDER_TAR
0e30: 47 45 54 5f 41 52 52 41 59 5f 49 4e 44 45 58 20  GET_ARRAY_INDEX 
0e40: 3d 20 30 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31  = 0;..const D3D1
0e50: 30 5f 44 45 46 41 55 4c 54 5f 53 41 4d 50 4c 45  0_DEFAULT_SAMPLE
0e60: 5f 4d 41 53 4b 20 3d 20 30 78 66 66 66 66 66 66  _MASK = 0xffffff
0e70: 66 66 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30  ff;..const D3D10
0e80: 5f 44 45 46 41 55 4c 54 5f 53 43 49 53 53 4f 52  _DEFAULT_SCISSOR
0e90: 5f 45 4e 44 58 20 3d 20 30 3b 0d 0a 63 6f 6e 73  _ENDX = 0;..cons
0ea0: 74 20 44 33 44 31 30 5f 44 45 46 41 55 4c 54 5f  t D3D10_DEFAULT_
0eb0: 53 43 49 53 53 4f 52 5f 45 4e 44 59 20 3d 20 30  SCISSOR_ENDY = 0
0ec0: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 44  ;..const D3D10_D
0ed0: 45 46 41 55 4c 54 5f 53 43 49 53 53 4f 52 5f 53  EFAULT_SCISSOR_S
0ee0: 54 41 52 54 58 20 3d 20 30 3b 0d 0a 63 6f 6e 73  TARTX = 0;..cons
0ef0: 74 20 44 33 44 31 30 5f 44 45 46 41 55 4c 54 5f  t D3D10_DEFAULT_
0f00: 53 43 49 53 53 4f 52 5f 53 54 41 52 54 59 20 3d  SCISSOR_STARTY =
0f10: 20 30 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30   0;..const D3D10
0f20: 5f 44 45 46 41 55 4c 54 5f 53 4c 4f 50 45 5f 53  _DEFAULT_SLOPE_S
0f30: 43 41 4c 45 44 5f 44 45 50 54 48 5f 42 49 41 53  CALED_DEPTH_BIAS
0f40: 20 3d 20 30 2e 30 66 3b 0d 0a 63 6f 6e 73 74 20   = 0.0f;..const 
0f50: 44 33 44 31 30 5f 44 45 46 41 55 4c 54 5f 53 54  D3D10_DEFAULT_ST
0f60: 45 4e 43 49 4c 5f 52 45 41 44 5f 4d 41 53 4b 20  ENCIL_READ_MASK 
0f70: 3d 20 30 78 66 66 3b 0d 0a 63 6f 6e 73 74 20 44  = 0xff;..const D
0f80: 33 44 31 30 5f 44 45 46 41 55 4c 54 5f 53 54 45  3D10_DEFAULT_STE
0f90: 4e 43 49 4c 5f 52 45 46 45 52 45 4e 43 45 20 3d  NCIL_REFERENCE =
0fa0: 20 30 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30   0;..const D3D10
0fb0: 5f 44 45 46 41 55 4c 54 5f 53 54 45 4e 43 49 4c  _DEFAULT_STENCIL
0fc0: 5f 57 52 49 54 45 5f 4d 41 53 4b 20 3d 20 30 78  _WRITE_MASK = 0x
0fd0: 66 66 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30  ff;..const D3D10
0fe0: 5f 44 45 46 41 55 4c 54 5f 56 49 45 57 50 4f 52  _DEFAULT_VIEWPOR
0ff0: 54 5f 41 4e 44 5f 53 43 49 53 53 4f 52 52 45 43  T_AND_SCISSORREC
1000: 54 5f 49 4e 44 45 58 20 3d 20 30 3b 0d 0a 63 6f  T_INDEX = 0;..co
1010: 6e 73 74 20 44 33 44 31 30 5f 44 45 46 41 55 4c  nst D3D10_DEFAUL
1020: 54 5f 56 49 45 57 50 4f 52 54 5f 48 45 49 47 48  T_VIEWPORT_HEIGH
1030: 54 20 3d 20 30 3b 0d 0a 63 6f 6e 73 74 20 44 33  T = 0;..const D3
1040: 44 31 30 5f 44 45 46 41 55 4c 54 5f 56 49 45 57  D10_DEFAULT_VIEW
1050: 50 4f 52 54 5f 4d 41 58 5f 44 45 50 54 48 20 3d  PORT_MAX_DEPTH =
1060: 20 30 2e 30 66 3b 0d 0a 63 6f 6e 73 74 20 44 33   0.0f;..const D3
1070: 44 31 30 5f 44 45 46 41 55 4c 54 5f 56 49 45 57  D10_DEFAULT_VIEW
1080: 50 4f 52 54 5f 4d 49 4e 5f 44 45 50 54 48 20 3d  PORT_MIN_DEPTH =
1090: 20 30 2e 30 66 3b 0d 0a 63 6f 6e 73 74 20 44 33   0.0f;..const D3
10a0: 44 31 30 5f 44 45 46 41 55 4c 54 5f 56 49 45 57  D10_DEFAULT_VIEW
10b0: 50 4f 52 54 5f 54 4f 50 4c 45 46 54 58 20 3d 20  PORT_TOPLEFTX = 
10c0: 30 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f  0;..const D3D10_
10d0: 44 45 46 41 55 4c 54 5f 56 49 45 57 50 4f 52 54  DEFAULT_VIEWPORT
10e0: 5f 54 4f 50 4c 45 46 54 59 20 3d 20 30 3b 0d 0a  _TOPLEFTY = 0;..
10f0: 63 6f 6e 73 74 20 44 33 44 31 30 5f 44 45 46 41  const D3D10_DEFA
1100: 55 4c 54 5f 56 49 45 57 50 4f 52 54 5f 57 49 44  ULT_VIEWPORT_WID
1110: 54 48 20 3d 20 30 3b 0d 0a 63 6f 6e 73 74 20 44  TH = 0;..const D
1120: 33 44 31 30 5f 46 4c 4f 41 54 31 36 5f 46 55 53  3D10_FLOAT16_FUS
1130: 45 44 5f 54 4f 4c 45 52 41 4e 43 45 5f 49 4e 5f  ED_TOLERANCE_IN_
1140: 55 4c 50 20 3d 20 30 2e 36 3b 0d 0a 63 6f 6e 73  ULP = 0.6;..cons
1150: 74 20 44 33 44 31 30 5f 46 4c 4f 41 54 33 32 5f  t D3D10_FLOAT32_
1160: 4d 41 58 20 3d 20 33 2e 34 30 32 38 32 33 34 36  MAX = 3.40282346
1170: 36 65 2b 33 38 66 3b 0d 0a 63 6f 6e 73 74 20 44  6e+38f;..const D
1180: 33 44 31 30 5f 46 4c 4f 41 54 33 32 5f 54 4f 5f  3D10_FLOAT32_TO_
1190: 49 4e 54 45 47 45 52 5f 54 4f 4c 45 52 41 4e 43  INTEGER_TOLERANC
11a0: 45 5f 49 4e 5f 55 4c 50 20 3d 20 30 2e 36 66 3b  E_IN_ULP = 0.6f;
11b0: 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 46 4c  ..const D3D10_FL
11c0: 4f 41 54 5f 54 4f 5f 53 52 47 42 5f 45 58 50 4f  OAT_TO_SRGB_EXPO
11d0: 4e 45 4e 54 5f 44 45 4e 4f 4d 49 4e 41 54 4f 52  NENT_DENOMINATOR
11e0: 20 3d 20 32 2e 34 66 3b 0d 0a 63 6f 6e 73 74 20   = 2.4f;..const 
11f0: 44 33 44 31 30 5f 46 4c 4f 41 54 5f 54 4f 5f 53  D3D10_FLOAT_TO_S
1200: 52 47 42 5f 45 58 50 4f 4e 45 4e 54 5f 4e 55 4d  RGB_EXPONENT_NUM
1210: 45 52 41 54 4f 52 20 3d 20 31 2e 30 66 3b 0d 0a  ERATOR = 1.0f;..
1220: 63 6f 6e 73 74 20 44 33 44 31 30 5f 46 4c 4f 41  const D3D10_FLOA
1230: 54 5f 54 4f 5f 53 52 47 42 5f 4f 46 46 53 45 54  T_TO_SRGB_OFFSET
1240: 20 3d 20 30 2e 30 35 35 66 3b 0d 0a 63 6f 6e 73   = 0.055f;..cons
1250: 74 20 44 33 44 31 30 5f 46 4c 4f 41 54 5f 54 4f  t D3D10_FLOAT_TO
1260: 5f 53 52 47 42 5f 53 43 41 4c 45 5f 31 20 3d 20  _SRGB_SCALE_1 = 
1270: 31 32 2e 39 32 66 3b 0d 0a 63 6f 6e 73 74 20 44  12.92f;..const D
1280: 33 44 31 30 5f 46 4c 4f 41 54 5f 54 4f 5f 53 52  3D10_FLOAT_TO_SR
1290: 47 42 5f 53 43 41 4c 45 5f 32 20 3d 20 31 2e 30  GB_SCALE_2 = 1.0
12a0: 35 35 66 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31  55f;..const D3D1
12b0: 30 5f 46 4c 4f 41 54 5f 54 4f 5f 53 52 47 42 5f  0_FLOAT_TO_SRGB_
12c0: 54 48 52 45 53 48 4f 4c 44 20 3d 20 30 2e 30 30  THRESHOLD = 0.00
12d0: 33 31 33 30 38 66 3b 0d 0a 63 6f 6e 73 74 20 44  31308f;..const D
12e0: 33 44 31 30 5f 46 54 4f 49 5f 49 4e 53 54 52 55  3D10_FTOI_INSTRU
12f0: 43 54 49 4f 4e 5f 4d 41 58 5f 49 4e 50 55 54 20  CTION_MAX_INPUT 
1300: 3d 20 32 31 34 37 34 38 33 36 34 37 2e 39 39 39  = 2147483647.999
1310: 66 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f  f;..const D3D10_
1320: 46 54 4f 49 5f 49 4e 53 54 52 55 43 54 49 4f 4e  FTOI_INSTRUCTION
1330: 5f 4d 49 4e 5f 49 4e 50 55 54 20 3d 20 2d 32 31  _MIN_INPUT = -21
1340: 34 37 34 38 33 36 34 38 2e 39 39 39 66 3b 0d 0a  47483648.999f;..
1350: 63 6f 6e 73 74 20 44 33 44 31 30 5f 46 54 4f 55  const D3D10_FTOU
1360: 5f 49 4e 53 54 52 55 43 54 49 4f 4e 5f 4d 41 58  _INSTRUCTION_MAX
1370: 5f 49 4e 50 55 54 20 3d 20 34 32 39 34 39 36 37  _INPUT = 4294967
1380: 32 39 35 2e 39 39 39 66 3b 0d 0a 63 6f 6e 73 74  295.999f;..const
1390: 20 44 33 44 31 30 5f 46 54 4f 55 5f 49 4e 53 54   D3D10_FTOU_INST
13a0: 52 55 43 54 49 4f 4e 5f 4d 49 4e 5f 49 4e 50 55  RUCTION_MIN_INPU
13b0: 54 20 3d 20 30 2e 30 66 3b 0d 0a 63 6f 6e 73 74  T = 0.0f;..const
13c0: 20 44 33 44 31 30 5f 47 53 5f 49 4e 50 55 54 5f   D3D10_GS_INPUT_
13d0: 50 52 49 4d 5f 43 4f 4e 53 54 5f 52 45 47 49 53  PRIM_CONST_REGIS
13e0: 54 45 52 5f 43 4f 4d 50 4f 4e 45 4e 54 53 20 3d  TER_COMPONENTS =
13f0: 20 31 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30   1;..const D3D10
1400: 5f 47 53 5f 49 4e 50 55 54 5f 50 52 49 4d 5f 43  _GS_INPUT_PRIM_C
1410: 4f 4e 53 54 5f 52 45 47 49 53 54 45 52 5f 43 4f  ONST_REGISTER_CO
1420: 4d 50 4f 4e 45 4e 54 5f 42 49 54 5f 43 4f 55 4e  MPONENT_BIT_COUN
1430: 54 20 3d 20 33 32 3b 0d 0a 63 6f 6e 73 74 20 44  T = 32;..const D
1440: 33 44 31 30 5f 47 53 5f 49 4e 50 55 54 5f 50 52  3D10_GS_INPUT_PR
1450: 49 4d 5f 43 4f 4e 53 54 5f 52 45 47 49 53 54 45  IM_CONST_REGISTE
1460: 52 5f 43 4f 55 4e 54 20 3d 20 31 3b 0d 0a 63 6f  R_COUNT = 1;..co
1470: 6e 73 74 20 44 33 44 31 30 5f 47 53 5f 49 4e 50  nst D3D10_GS_INP
1480: 55 54 5f 50 52 49 4d 5f 43 4f 4e 53 54 5f 52 45  UT_PRIM_CONST_RE
1490: 47 49 53 54 45 52 5f 52 45 41 44 53 5f 50 45 52  GISTER_READS_PER
14a0: 5f 49 4e 53 54 20 3d 20 32 3b 0d 0a 63 6f 6e 73  _INST = 2;..cons
14b0: 74 20 44 33 44 31 30 5f 47 53 5f 49 4e 50 55 54  t D3D10_GS_INPUT
14c0: 5f 50 52 49 4d 5f 43 4f 4e 53 54 5f 52 45 47 49  _PRIM_CONST_REGI
14d0: 53 54 45 52 5f 52 45 41 44 5f 50 4f 52 54 53 20  STER_READ_PORTS 
14e0: 3d 20 31 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31  = 1;..const D3D1
14f0: 30 5f 47 53 5f 49 4e 50 55 54 5f 52 45 47 49 53  0_GS_INPUT_REGIS
1500: 54 45 52 5f 43 4f 4d 50 4f 4e 45 4e 54 53 20 3d  TER_COMPONENTS =
1510: 20 34 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30   4;..const D3D10
1520: 5f 47 53 5f 49 4e 50 55 54 5f 52 45 47 49 53 54  _GS_INPUT_REGIST
1530: 45 52 5f 43 4f 4d 50 4f 4e 45 4e 54 5f 42 49 54  ER_COMPONENT_BIT
1540: 5f 43 4f 55 4e 54 20 3d 20 33 32 3b 0d 0a 63 6f  _COUNT = 32;..co
1550: 6e 73 74 20 44 33 44 31 30 5f 47 53 5f 49 4e 50  nst D3D10_GS_INP
1560: 55 54 5f 52 45 47 49 53 54 45 52 5f 43 4f 55 4e  UT_REGISTER_COUN
1570: 54 20 3d 20 31 36 3b 0d 0a 63 6f 6e 73 74 20 44  T = 16;..const D
1580: 33 44 31 30 5f 47 53 5f 49 4e 50 55 54 5f 52 45  3D10_GS_INPUT_RE
1590: 47 49 53 54 45 52 5f 52 45 41 44 53 5f 50 45 52  GISTER_READS_PER
15a0: 5f 49 4e 53 54 20 3d 20 32 3b 0d 0a 63 6f 6e 73  _INST = 2;..cons
15b0: 74 20 44 33 44 31 30 5f 47 53 5f 49 4e 50 55 54  t D3D10_GS_INPUT
15c0: 5f 52 45 47 49 53 54 45 52 5f 52 45 41 44 5f 50  _REGISTER_READ_P
15d0: 4f 52 54 53 20 3d 20 31 3b 0d 0a 63 6f 6e 73 74  ORTS = 1;..const
15e0: 20 44 33 44 31 30 5f 47 53 5f 49 4e 50 55 54 5f   D3D10_GS_INPUT_
15f0: 52 45 47 49 53 54 45 52 5f 56 45 52 54 49 43 45  REGISTER_VERTICE
1600: 53 20 3d 20 36 3b 0d 0a 63 6f 6e 73 74 20 44 33  S = 6;..const D3
1610: 44 31 30 5f 47 53 5f 4f 55 54 50 55 54 5f 45 4c  D10_GS_OUTPUT_EL
1620: 45 4d 45 4e 54 53 20 3d 20 33 32 3b 0d 0a 63 6f  EMENTS = 32;..co
1630: 6e 73 74 20 44 33 44 31 30 5f 47 53 5f 4f 55 54  nst D3D10_GS_OUT
1640: 50 55 54 5f 52 45 47 49 53 54 45 52 5f 43 4f 4d  PUT_REGISTER_COM
1650: 50 4f 4e 45 4e 54 53 20 3d 20 34 3b 0d 0a 63 6f  PONENTS = 4;..co
1660: 6e 73 74 20 44 33 44 31 30 5f 47 53 5f 4f 55 54  nst D3D10_GS_OUT
1670: 50 55 54 5f 52 45 47 49 53 54 45 52 5f 43 4f 4d  PUT_REGISTER_COM
1680: 50 4f 4e 45 4e 54 5f 42 49 54 5f 43 4f 55 4e 54  PONENT_BIT_COUNT
1690: 20 3d 20 33 32 3b 0d 0a 63 6f 6e 73 74 20 44 33   = 32;..const D3
16a0: 44 31 30 5f 47 53 5f 4f 55 54 50 55 54 5f 52 45  D10_GS_OUTPUT_RE
16b0: 47 49 53 54 45 52 5f 43 4f 55 4e 54 20 3d 20 33  GISTER_COUNT = 3
16c0: 32 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f  2;..const D3D10_
16d0: 49 41 5f 44 45 46 41 55 4c 54 5f 49 4e 44 45 58  IA_DEFAULT_INDEX
16e0: 5f 42 55 46 46 45 52 5f 4f 46 46 53 45 54 5f 49  _BUFFER_OFFSET_I
16f0: 4e 5f 42 59 54 45 53 20 3d 20 30 3b 0d 0a 63 6f  N_BYTES = 0;..co
1700: 6e 73 74 20 44 33 44 31 30 5f 49 41 5f 44 45 46  nst D3D10_IA_DEF
1710: 41 55 4c 54 5f 50 52 49 4d 49 54 49 56 45 5f 54  AULT_PRIMITIVE_T
1720: 4f 50 4f 4c 4f 47 59 20 3d 20 30 3b 0d 0a 63 6f  OPOLOGY = 0;..co
1730: 6e 73 74 20 44 33 44 31 30 5f 49 41 5f 44 45 46  nst D3D10_IA_DEF
1740: 41 55 4c 54 5f 56 45 52 54 45 58 5f 42 55 46 46  AULT_VERTEX_BUFF
1750: 45 52 5f 4f 46 46 53 45 54 5f 49 4e 5f 42 59 54  ER_OFFSET_IN_BYT
1760: 45 53 20 3d 20 30 3b 0d 0a 63 6f 6e 73 74 20 44  ES = 0;..const D
1770: 33 44 31 30 5f 49 41 5f 49 4e 44 45 58 5f 49 4e  3D10_IA_INDEX_IN
1780: 50 55 54 5f 52 45 53 4f 55 52 43 45 5f 53 4c 4f  PUT_RESOURCE_SLO
1790: 54 5f 43 4f 55 4e 54 20 3d 20 31 3b 0d 0a 63 6f  T_COUNT = 1;..co
17a0: 6e 73 74 20 44 33 44 31 30 5f 49 41 5f 49 4e 53  nst D3D10_IA_INS
17b0: 54 41 4e 43 45 5f 49 44 5f 42 49 54 5f 43 4f 55  TANCE_ID_BIT_COU
17c0: 4e 54 20 3d 20 33 32 3b 0d 0a 63 6f 6e 73 74 20  NT = 32;..const 
17d0: 44 33 44 31 30 5f 49 41 5f 49 4e 54 45 47 45 52  D3D10_IA_INTEGER
17e0: 5f 41 52 49 54 48 4d 45 54 49 43 5f 42 49 54 5f  _ARITHMETIC_BIT_
17f0: 43 4f 55 4e 54 20 3d 20 33 32 3b 0d 0a 63 6f 6e  COUNT = 32;..con
1800: 73 74 20 44 33 44 31 30 5f 49 41 5f 50 52 49 4d  st D3D10_IA_PRIM
1810: 49 54 49 56 45 5f 49 44 5f 42 49 54 5f 43 4f 55  ITIVE_ID_BIT_COU
1820: 4e 54 20 3d 20 33 32 3b 0d 0a 63 6f 6e 73 74 20  NT = 32;..const 
1830: 44 33 44 31 30 5f 49 41 5f 56 45 52 54 45 58 5f  D3D10_IA_VERTEX_
1840: 49 44 5f 42 49 54 5f 43 4f 55 4e 54 20 3d 20 33  ID_BIT_COUNT = 3
1850: 32 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f  2;..const D3D10_
1860: 49 41 5f 56 45 52 54 45 58 5f 49 4e 50 55 54 5f  IA_VERTEX_INPUT_
1870: 52 45 53 4f 55 52 43 45 5f 53 4c 4f 54 5f 43 4f  RESOURCE_SLOT_CO
1880: 55 4e 54 20 3d 20 31 36 3b 0d 0a 63 6f 6e 73 74  UNT = 16;..const
1890: 20 44 33 44 31 30 5f 49 41 5f 56 45 52 54 45 58   D3D10_IA_VERTEX
18a0: 5f 49 4e 50 55 54 5f 53 54 52 55 43 54 55 52 45  _INPUT_STRUCTURE
18b0: 5f 45 4c 45 4d 45 4e 54 53 5f 43 4f 4d 50 4f 4e  _ELEMENTS_COMPON
18c0: 45 4e 54 53 20 3d 20 36 34 3b 0d 0a 63 6f 6e 73  ENTS = 64;..cons
18d0: 74 20 44 33 44 31 30 5f 49 41 5f 56 45 52 54 45  t D3D10_IA_VERTE
18e0: 58 5f 49 4e 50 55 54 5f 53 54 52 55 43 54 55 52  X_INPUT_STRUCTUR
18f0: 45 5f 45 4c 45 4d 45 4e 54 5f 43 4f 55 4e 54 20  E_ELEMENT_COUNT 
1900: 3d 20 31 36 3b 0d 0a 63 6f 6e 73 74 20 44 33 44  = 16;..const D3D
1910: 31 30 5f 49 4e 54 45 47 45 52 5f 44 49 56 49 44  10_INTEGER_DIVID
1920: 45 5f 42 59 5f 5a 45 52 4f 5f 51 55 4f 54 49 45  E_BY_ZERO_QUOTIE
1930: 4e 54 20 3d 20 30 78 66 66 66 66 66 66 66 66 3b  NT = 0xffffffff;
1940: 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 49 4e  ..const D3D10_IN
1950: 54 45 47 45 52 5f 44 49 56 49 44 45 5f 42 59 5f  TEGER_DIVIDE_BY_
1960: 5a 45 52 4f 5f 52 45 4d 41 49 4e 44 45 52 20 3d  ZERO_REMAINDER =
1970: 20 30 78 66 66 66 66 66 66 66 66 3b 0d 0a 63 6f   0xffffffff;..co
1980: 6e 73 74 20 44 33 44 31 30 5f 4c 49 4e 45 41 52  nst D3D10_LINEAR
1990: 5f 47 41 4d 4d 41 20 3d 20 31 2e 30 66 3b 0d 0a  _GAMMA = 1.0f;..
19a0: 63 6f 6e 73 74 20 44 33 44 31 30 5f 4d 41 58 5f  const D3D10_MAX_
19b0: 42 4f 52 44 45 52 5f 43 4f 4c 4f 52 5f 43 4f 4d  BORDER_COLOR_COM
19c0: 50 4f 4e 45 4e 54 20 3d 20 31 2e 30 66 3b 0d 0a  PONENT = 1.0f;..
19d0: 63 6f 6e 73 74 20 44 33 44 31 30 5f 4d 41 58 5f  const D3D10_MAX_
19e0: 44 45 50 54 48 20 3d 20 31 2e 30 66 3b 0d 0a 63  DEPTH = 1.0f;..c
19f0: 6f 6e 73 74 20 44 33 44 31 30 5f 4d 41 58 5f 4d  onst D3D10_MAX_M
1a00: 41 58 41 4e 49 53 4f 54 52 4f 50 59 20 3d 20 31  AXANISOTROPY = 1
1a10: 36 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f  6;..const D3D10_
1a20: 4d 41 58 5f 4d 55 4c 54 49 53 41 4d 50 4c 45 5f  MAX_MULTISAMPLE_
1a30: 53 41 4d 50 4c 45 5f 43 4f 55 4e 54 20 3d 20 33  SAMPLE_COUNT = 3
1a40: 32 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f  2;..const D3D10_
1a50: 4d 41 58 5f 50 4f 53 49 54 49 4f 4e 5f 56 41 4c  MAX_POSITION_VAL
1a60: 55 45 20 3d 20 33 2e 34 30 32 38 32 33 34 36 36  UE = 3.402823466
1a70: 65 2b 33 34 66 3b 0d 0a 63 6f 6e 73 74 20 44 33  e+34f;..const D3
1a80: 44 31 30 5f 4d 41 58 5f 54 45 58 54 55 52 45 5f  D10_MAX_TEXTURE_
1a90: 44 49 4d 45 4e 53 49 4f 4e 5f 32 5f 54 4f 5f 45  DIMENSION_2_TO_E
1aa0: 58 50 20 3d 20 31 37 3b 0d 0a 63 6f 6e 73 74 20  XP = 17;..const 
1ab0: 44 33 44 31 30 5f 4d 49 4e 5f 42 4f 52 44 45 52  D3D10_MIN_BORDER
1ac0: 5f 43 4f 4c 4f 52 5f 43 4f 4d 50 4f 4e 45 4e 54  _COLOR_COMPONENT
1ad0: 20 3d 20 30 2e 30 66 3b 0d 0a 63 6f 6e 73 74 20   = 0.0f;..const 
1ae0: 44 33 44 31 30 5f 4d 49 4e 5f 44 45 50 54 48 20  D3D10_MIN_DEPTH 
1af0: 3d 20 30 2e 30 66 3b 0d 0a 63 6f 6e 73 74 20 44  = 0.0f;..const D
1b00: 33 44 31 30 5f 4d 49 4e 5f 4d 41 58 41 4e 49 53  3D10_MIN_MAXANIS
1b10: 4f 54 52 4f 50 59 20 3d 20 30 3b 0d 0a 63 6f 6e  OTROPY = 0;..con
1b20: 73 74 20 44 33 44 31 30 5f 4d 49 50 5f 4c 4f 44  st D3D10_MIP_LOD
1b30: 5f 42 49 41 53 5f 4d 41 58 20 3d 20 31 35 2e 39  _BIAS_MAX = 15.9
1b40: 39 66 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30  9f;..const D3D10
1b50: 5f 4d 49 50 5f 4c 4f 44 5f 42 49 41 53 5f 4d 49  _MIP_LOD_BIAS_MI
1b60: 4e 20 3d 20 2d 31 36 2e 30 66 3b 0d 0a 63 6f 6e  N = -16.0f;..con
1b70: 73 74 20 44 33 44 31 30 5f 4d 49 50 5f 4c 4f 44  st D3D10_MIP_LOD
1b80: 5f 46 52 41 43 54 49 4f 4e 41 4c 5f 42 49 54 5f  _FRACTIONAL_BIT_
1b90: 43 4f 55 4e 54 20 3d 20 36 3b 0d 0a 63 6f 6e 73  COUNT = 6;..cons
1ba0: 74 20 44 33 44 31 30 5f 4d 49 50 5f 4c 4f 44 5f  t D3D10_MIP_LOD_
1bb0: 52 41 4e 47 45 5f 42 49 54 5f 43 4f 55 4e 54 20  RANGE_BIT_COUNT 
1bc0: 3d 20 38 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31  = 8;..const D3D1
1bd0: 30 5f 4d 55 4c 54 49 53 41 4d 50 4c 45 5f 41 4e  0_MULTISAMPLE_AN
1be0: 54 49 41 4c 49 41 53 5f 4c 49 4e 45 5f 57 49 44  TIALIAS_LINE_WID
1bf0: 54 48 20 3d 20 31 2e 34 66 3b 0d 0a 63 6f 6e 73  TH = 1.4f;..cons
1c00: 74 20 44 33 44 31 30 5f 4e 4f 4e 53 41 4d 50 4c  t D3D10_NONSAMPL
1c10: 45 5f 46 45 54 43 48 5f 4f 55 54 5f 4f 46 5f 52  E_FETCH_OUT_OF_R
1c20: 41 4e 47 45 5f 41 43 43 45 53 53 5f 52 45 53 55  ANGE_ACCESS_RESU
1c30: 4c 54 20 3d 20 30 3b 0d 0a 63 6f 6e 73 74 20 44  LT = 0;..const D
1c40: 33 44 31 30 5f 50 49 58 45 4c 5f 41 44 44 52 45  3D10_PIXEL_ADDRE
1c50: 53 53 5f 52 41 4e 47 45 5f 42 49 54 5f 43 4f 55  SS_RANGE_BIT_COU
1c60: 4e 54 20 3d 20 31 33 3b 0d 0a 63 6f 6e 73 74 20  NT = 13;..const 
1c70: 44 33 44 31 30 5f 50 52 45 5f 53 43 49 53 53 4f  D3D10_PRE_SCISSO
1c80: 52 5f 50 49 58 45 4c 5f 41 44 44 52 45 53 53 5f  R_PIXEL_ADDRESS_
1c90: 52 41 4e 47 45 5f 42 49 54 5f 43 4f 55 4e 54 20  RANGE_BIT_COUNT 
1ca0: 3d 20 31 35 3b 0d 0a 63 6f 6e 73 74 20 44 33 44  = 15;..const D3D
1cb0: 31 30 5f 50 53 5f 46 52 4f 4e 54 46 41 43 49 4e  10_PS_FRONTFACIN
1cc0: 47 5f 44 45 46 41 55 4c 54 5f 56 41 4c 55 45 20  G_DEFAULT_VALUE 
1cd0: 3d 20 30 78 66 66 66 66 66 66 66 66 3b 0d 0a 63  = 0xffffffff;..c
1ce0: 6f 6e 73 74 20 44 33 44 31 30 5f 50 53 5f 46 52  onst D3D10_PS_FR
1cf0: 4f 4e 54 46 41 43 49 4e 47 5f 46 41 4c 53 45 5f  ONTFACING_FALSE_
1d00: 56 41 4c 55 45 20 3d 20 30 3b 0d 0a 63 6f 6e 73  VALUE = 0;..cons
1d10: 74 20 44 33 44 31 30 5f 50 53 5f 46 52 4f 4e 54  t D3D10_PS_FRONT
1d20: 46 41 43 49 4e 47 5f 54 52 55 45 5f 56 41 4c 55  FACING_TRUE_VALU
1d30: 45 20 3d 20 30 78 66 66 66 66 66 66 66 66 3b 0d  E = 0xffffffff;.
1d40: 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 50 53 5f  .const D3D10_PS_
1d50: 49 4e 50 55 54 5f 52 45 47 49 53 54 45 52 5f 43  INPUT_REGISTER_C
1d60: 4f 4d 50 4f 4e 45 4e 54 53 20 3d 20 34 3b 0d 0a  OMPONENTS = 4;..
1d70: 63 6f 6e 73 74 20 44 33 44 31 30 5f 50 53 5f 49  const D3D10_PS_I
1d80: 4e 50 55 54 5f 52 45 47 49 53 54 45 52 5f 43 4f  NPUT_REGISTER_CO
1d90: 4d 50 4f 4e 45 4e 54 5f 42 49 54 5f 43 4f 55 4e  MPONENT_BIT_COUN
1da0: 54 20 3d 20 33 32 3b 0d 0a 63 6f 6e 73 74 20 44  T = 32;..const D
1db0: 33 44 31 30 5f 50 53 5f 49 4e 50 55 54 5f 52 45  3D10_PS_INPUT_RE
1dc0: 47 49 53 54 45 52 5f 43 4f 55 4e 54 20 3d 20 33  GISTER_COUNT = 3
1dd0: 32 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f  2;..const D3D10_
1de0: 50 53 5f 49 4e 50 55 54 5f 52 45 47 49 53 54 45  PS_INPUT_REGISTE
1df0: 52 5f 52 45 41 44 53 5f 50 45 52 5f 49 4e 53 54  R_READS_PER_INST
1e00: 20 3d 20 32 3b 0d 0a 63 6f 6e 73 74 20 44 33 44   = 2;..const D3D
1e10: 31 30 5f 50 53 5f 49 4e 50 55 54 5f 52 45 47 49  10_PS_INPUT_REGI
1e20: 53 54 45 52 5f 52 45 41 44 5f 50 4f 52 54 53 20  STER_READ_PORTS 
1e30: 3d 20 31 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31  = 1;..const D3D1
1e40: 30 5f 50 53 5f 4c 45 47 41 43 59 5f 50 49 58 45  0_PS_LEGACY_PIXE
1e50: 4c 5f 43 45 4e 54 45 52 5f 46 52 41 43 54 49 4f  L_CENTER_FRACTIO
1e60: 4e 41 4c 5f 43 4f 4d 50 4f 4e 45 4e 54 20 3d 20  NAL_COMPONENT = 
1e70: 30 2e 30 66 3b 0d 0a 63 6f 6e 73 74 20 44 33 44  0.0f;..const D3D
1e80: 31 30 5f 50 53 5f 4f 55 54 50 55 54 5f 44 45 50  10_PS_OUTPUT_DEP
1e90: 54 48 5f 52 45 47 49 53 54 45 52 5f 43 4f 4d 50  TH_REGISTER_COMP
1ea0: 4f 4e 45 4e 54 53 20 3d 20 31 3b 0d 0a 63 6f 6e  ONENTS = 1;..con
1eb0: 73 74 20 44 33 44 31 30 5f 50 53 5f 4f 55 54 50  st D3D10_PS_OUTP
1ec0: 55 54 5f 44 45 50 54 48 5f 52 45 47 49 53 54 45  UT_DEPTH_REGISTE
1ed0: 52 5f 43 4f 4d 50 4f 4e 45 4e 54 5f 42 49 54 5f  R_COMPONENT_BIT_
1ee0: 43 4f 55 4e 54 20 3d 20 33 32 3b 0d 0a 63 6f 6e  COUNT = 32;..con
1ef0: 73 74 20 44 33 44 31 30 5f 50 53 5f 4f 55 54 50  st D3D10_PS_OUTP
1f00: 55 54 5f 44 45 50 54 48 5f 52 45 47 49 53 54 45  UT_DEPTH_REGISTE
1f10: 52 5f 43 4f 55 4e 54 20 3d 20 31 3b 0d 0a 63 6f  R_COUNT = 1;..co
1f20: 6e 73 74 20 44 33 44 31 30 5f 50 53 5f 4f 55 54  nst D3D10_PS_OUT
1f30: 50 55 54 5f 52 45 47 49 53 54 45 52 5f 43 4f 4d  PUT_REGISTER_COM
1f40: 50 4f 4e 45 4e 54 53 20 3d 20 34 3b 0d 0a 63 6f  PONENTS = 4;..co
1f50: 6e 73 74 20 44 33 44 31 30 5f 50 53 5f 4f 55 54  nst D3D10_PS_OUT
1f60: 50 55 54 5f 52 45 47 49 53 54 45 52 5f 43 4f 4d  PUT_REGISTER_COM
1f70: 50 4f 4e 45 4e 54 5f 42 49 54 5f 43 4f 55 4e 54  PONENT_BIT_COUNT
1f80: 20 3d 20 33 32 3b 0d 0a 63 6f 6e 73 74 20 44 33   = 32;..const D3
1f90: 44 31 30 5f 50 53 5f 4f 55 54 50 55 54 5f 52 45  D10_PS_OUTPUT_RE
1fa0: 47 49 53 54 45 52 5f 43 4f 55 4e 54 20 3d 20 38  GISTER_COUNT = 8
1fb0: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 50  ;..const D3D10_P
1fc0: 53 5f 50 49 58 45 4c 5f 43 45 4e 54 45 52 5f 46  S_PIXEL_CENTER_F
1fd0: 52 41 43 54 49 4f 4e 41 4c 5f 43 4f 4d 50 4f 4e  RACTIONAL_COMPON
1fe0: 45 4e 54 20 3d 20 30 2e 35 66 3b 0d 0a 63 6f 6e  ENT = 0.5f;..con
1ff0: 73 74 20 44 33 44 31 30 5f 52 45 51 5f 42 4c 45  st D3D10_REQ_BLE
2000: 4e 44 5f 4f 42 4a 45 43 54 5f 43 4f 55 4e 54 5f  ND_OBJECT_COUNT_
2010: 50 45 52 5f 43 4f 4e 54 45 58 54 20 3d 20 34 30  PER_CONTEXT = 40
2020: 39 36 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30  96;..const D3D10
2030: 5f 52 45 51 5f 42 55 46 46 45 52 5f 52 45 53 4f  _REQ_BUFFER_RESO
2040: 55 52 43 45 5f 54 45 58 45 4c 5f 43 4f 55 4e 54  URCE_TEXEL_COUNT
2050: 5f 32 5f 54 4f 5f 45 58 50 20 3d 20 32 37 3b 0d  _2_TO_EXP = 27;.
2060: 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 52 45 51  .const D3D10_REQ
2070: 5f 43 4f 4e 53 54 41 4e 54 5f 42 55 46 46 45 52  _CONSTANT_BUFFER
2080: 5f 45 4c 45 4d 45 4e 54 5f 43 4f 55 4e 54 20 3d  _ELEMENT_COUNT =
2090: 20 34 30 39 36 3b 0d 0a 63 6f 6e 73 74 20 44 33   4096;..const D3
20a0: 44 31 30 5f 52 45 51 5f 44 45 50 54 48 5f 53 54  D10_REQ_DEPTH_ST
20b0: 45 4e 43 49 4c 5f 4f 42 4a 45 43 54 5f 43 4f 55  ENCIL_OBJECT_COU
20c0: 4e 54 5f 50 45 52 5f 43 4f 4e 54 45 58 54 20 3d  NT_PER_CONTEXT =
20d0: 20 34 30 39 36 3b 0d 0a 63 6f 6e 73 74 20 44 33   4096;..const D3
20e0: 44 31 30 5f 52 45 51 5f 44 52 41 57 49 4e 44 45  D10_REQ_DRAWINDE
20f0: 58 45 44 5f 49 4e 44 45 58 5f 43 4f 55 4e 54 5f  XED_INDEX_COUNT_
2100: 32 5f 54 4f 5f 45 58 50 20 3d 20 33 32 3b 0d 0a  2_TO_EXP = 32;..
2110: 63 6f 6e 73 74 20 44 33 44 31 30 5f 52 45 51 5f  const D3D10_REQ_
2120: 44 52 41 57 5f 56 45 52 54 45 58 5f 43 4f 55 4e  DRAW_VERTEX_COUN
2130: 54 5f 32 5f 54 4f 5f 45 58 50 20 3d 20 33 32 3b  T_2_TO_EXP = 32;
2140: 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 52 45  ..const D3D10_RE
2150: 51 5f 46 49 4c 54 45 52 49 4e 47 5f 48 57 5f 41  Q_FILTERING_HW_A
2160: 44 44 52 45 53 53 41 42 4c 45 5f 52 45 53 4f 55  DDRESSABLE_RESOU
2170: 52 43 45 5f 44 49 4d 45 4e 53 49 4f 4e 20 3d 20  RCE_DIMENSION = 
2180: 38 31 39 32 3b 0d 0a 63 6f 6e 73 74 20 44 33 44  8192;..const D3D
2190: 31 30 5f 52 45 51 5f 47 53 5f 49 4e 56 4f 43 41  10_REQ_GS_INVOCA
21a0: 54 49 4f 4e 5f 33 32 42 49 54 5f 4f 55 54 50 55  TION_32BIT_OUTPU
21b0: 54 5f 43 4f 4d 50 4f 4e 45 4e 54 5f 4c 49 4d 49  T_COMPONENT_LIMI
21c0: 54 20 3d 20 31 30 32 34 3b 0d 0a 63 6f 6e 73 74  T = 1024;..const
21d0: 20 44 33 44 31 30 5f 52 45 51 5f 49 4d 4d 45 44   D3D10_REQ_IMMED
21e0: 49 41 54 45 5f 43 4f 4e 53 54 41 4e 54 5f 42 55  IATE_CONSTANT_BU
21f0: 46 46 45 52 5f 45 4c 45 4d 45 4e 54 5f 43 4f 55  FFER_ELEMENT_COU
2200: 4e 54 20 3d 20 34 30 39 36 3b 0d 0a 63 6f 6e 73  NT = 4096;..cons
2210: 74 20 44 33 44 31 30 5f 52 45 51 5f 4d 41 58 41  t D3D10_REQ_MAXA
2220: 4e 49 53 4f 54 52 4f 50 59 20 3d 20 31 36 3b 0d  NISOTROPY = 16;.
2230: 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 52 45 51  .const D3D10_REQ
2240: 5f 4d 49 50 5f 4c 45 56 45 4c 53 20 3d 20 31 34  _MIP_LEVELS = 14
2250: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 52  ;..const D3D10_R
2260: 45 51 5f 4d 55 4c 54 49 5f 45 4c 45 4d 45 4e 54  EQ_MULTI_ELEMENT
2270: 5f 53 54 52 55 43 54 55 52 45 5f 53 49 5a 45 5f  _STRUCTURE_SIZE_
2280: 49 4e 5f 42 59 54 45 53 20 3d 20 32 30 34 38 3b  IN_BYTES = 2048;
2290: 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 52 45  ..const D3D10_RE
22a0: 51 5f 52 41 53 54 45 52 49 5a 45 52 5f 4f 42 4a  Q_RASTERIZER_OBJ
22b0: 45 43 54 5f 43 4f 55 4e 54 5f 50 45 52 5f 43 4f  ECT_COUNT_PER_CO
22c0: 4e 54 45 58 54 20 3d 20 34 30 39 36 3b 0d 0a 63  NTEXT = 4096;..c
22d0: 6f 6e 73 74 20 44 33 44 31 30 5f 52 45 51 5f 52  onst D3D10_REQ_R
22e0: 45 4e 44 45 52 5f 54 4f 5f 42 55 46 46 45 52 5f  ENDER_TO_BUFFER_
22f0: 57 49 4e 44 4f 57 5f 57 49 44 54 48 20 3d 20 38  WINDOW_WIDTH = 8
2300: 31 39 32 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31  192;..const D3D1
2310: 30 5f 52 45 51 5f 52 45 53 4f 55 52 43 45 5f 53  0_REQ_RESOURCE_S
2320: 49 5a 45 5f 49 4e 5f 4d 45 47 41 42 59 54 45 53  IZE_IN_MEGABYTES
2330: 20 3d 20 31 32 38 3b 0d 0a 63 6f 6e 73 74 20 44   = 128;..const D
2340: 33 44 31 30 5f 52 45 51 5f 52 45 53 4f 55 52 43  3D10_REQ_RESOURC
2350: 45 5f 56 49 45 57 5f 43 4f 55 4e 54 5f 50 45 52  E_VIEW_COUNT_PER
2360: 5f 43 4f 4e 54 45 58 54 5f 32 5f 54 4f 5f 45 58  _CONTEXT_2_TO_EX
2370: 50 20 3d 20 32 30 3b 0d 0a 63 6f 6e 73 74 20 44  P = 20;..const D
2380: 33 44 31 30 5f 52 45 51 5f 53 41 4d 50 4c 45 52  3D10_REQ_SAMPLER
2390: 5f 4f 42 4a 45 43 54 5f 43 4f 55 4e 54 5f 50 45  _OBJECT_COUNT_PE
23a0: 52 5f 43 4f 4e 54 45 58 54 20 3d 20 34 30 39 36  R_CONTEXT = 4096
23b0: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 52  ;..const D3D10_R
23c0: 45 51 5f 54 45 58 54 55 52 45 31 44 5f 41 52 52  EQ_TEXTURE1D_ARR
23d0: 41 59 5f 41 58 49 53 5f 44 49 4d 45 4e 53 49 4f  AY_AXIS_DIMENSIO
23e0: 4e 20 3d 20 35 31 32 3b 0d 0a 63 6f 6e 73 74 20  N = 512;..const 
23f0: 44 33 44 31 30 5f 52 45 51 5f 54 45 58 54 55 52  D3D10_REQ_TEXTUR
2400: 45 31 44 5f 55 5f 44 49 4d 45 4e 53 49 4f 4e 20  E1D_U_DIMENSION 
2410: 3d 20 38 31 39 32 3b 0d 0a 63 6f 6e 73 74 20 44  = 8192;..const D
2420: 33 44 31 30 5f 52 45 51 5f 54 45 58 54 55 52 45  3D10_REQ_TEXTURE
2430: 32 44 5f 41 52 52 41 59 5f 41 58 49 53 5f 44 49  2D_ARRAY_AXIS_DI
2440: 4d 45 4e 53 49 4f 4e 20 3d 20 35 31 32 3b 0d 0a  MENSION = 512;..
2450: 63 6f 6e 73 74 20 44 33 44 31 30 5f 52 45 51 5f  const D3D10_REQ_
2460: 54 45 58 54 55 52 45 32 44 5f 55 5f 4f 52 5f 56  TEXTURE2D_U_OR_V
2470: 5f 44 49 4d 45 4e 53 49 4f 4e 20 3d 20 38 31 39  _DIMENSION = 819
2480: 32 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f  2;..const D3D10_
2490: 52 45 51 5f 54 45 58 54 55 52 45 33 44 5f 55 5f  REQ_TEXTURE3D_U_
24a0: 56 5f 4f 52 5f 57 5f 44 49 4d 45 4e 53 49 4f 4e  V_OR_W_DIMENSION
24b0: 20 3d 20 32 30 34 38 3b 0d 0a 63 6f 6e 73 74 20   = 2048;..const 
24c0: 44 33 44 31 30 5f 52 45 51 5f 54 45 58 54 55 52  D3D10_REQ_TEXTUR
24d0: 45 43 55 42 45 5f 44 49 4d 45 4e 53 49 4f 4e 20  ECUBE_DIMENSION 
24e0: 3d 20 38 31 39 32 3b 0d 0a 63 6f 6e 73 74 20 44  = 8192;..const D
24f0: 33 44 31 30 5f 52 45 53 49 4e 46 4f 5f 49 4e 53  3D10_RESINFO_INS
2500: 54 52 55 43 54 49 4f 4e 5f 4d 49 53 53 49 4e 47  TRUCTION_MISSING
2510: 5f 43 4f 4d 50 4f 4e 45 4e 54 5f 52 45 54 56 41  _COMPONENT_RETVA
2520: 4c 20 3d 20 30 3b 0d 0a 63 6f 6e 73 74 20 44 33  L = 0;..const D3
2530: 44 31 30 5f 53 48 41 44 45 52 5f 4d 41 4a 4f 52  D10_SHADER_MAJOR
2540: 5f 56 45 52 53 49 4f 4e 20 3d 20 34 3b 0d 0a 63  _VERSION = 4;..c
2550: 6f 6e 73 74 20 44 33 44 31 30 5f 53 48 41 44 45  onst D3D10_SHADE
2560: 52 5f 4d 49 4e 4f 52 5f 56 45 52 53 49 4f 4e 20  R_MINOR_VERSION 
2570: 3d 20 30 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31  = 0;..const D3D1
2580: 30 5f 53 48 49 46 54 5f 49 4e 53 54 52 55 43 54  0_SHIFT_INSTRUCT
2590: 49 4f 4e 5f 50 41 44 5f 56 41 4c 55 45 20 3d 20  ION_PAD_VALUE = 
25a0: 30 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f  0;..const D3D10_
25b0: 53 48 49 46 54 5f 49 4e 53 54 52 55 43 54 49 4f  SHIFT_INSTRUCTIO
25c0: 4e 5f 53 48 49 46 54 5f 56 41 4c 55 45 5f 42 49  N_SHIFT_VALUE_BI
25d0: 54 5f 43 4f 55 4e 54 20 3d 20 35 3b 0d 0a 63 6f  T_COUNT = 5;..co
25e0: 6e 73 74 20 44 33 44 31 30 5f 53 49 4d 55 4c 54  nst D3D10_SIMULT
25f0: 41 4e 45 4f 55 53 5f 52 45 4e 44 45 52 5f 54 41  ANEOUS_RENDER_TA
2600: 52 47 45 54 5f 43 4f 55 4e 54 20 3d 20 38 3b 0d  RGET_COUNT = 8;.
2610: 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 53 4f 5f  .const D3D10_SO_
2620: 42 55 46 46 45 52 5f 4d 41 58 5f 53 54 52 49 44  BUFFER_MAX_STRID
2630: 45 5f 49 4e 5f 42 59 54 45 53 20 3d 20 32 30 34  E_IN_BYTES = 204
2640: 38 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f  8;..const D3D10_
2650: 53 4f 5f 42 55 46 46 45 52 5f 4d 41 58 5f 57 52  SO_BUFFER_MAX_WR
2660: 49 54 45 5f 57 49 4e 44 4f 57 5f 49 4e 5f 42 59  ITE_WINDOW_IN_BY
2670: 54 45 53 20 3d 20 32 35 36 3b 0d 0a 63 6f 6e 73  TES = 256;..cons
2680: 74 20 44 33 44 31 30 5f 53 4f 5f 42 55 46 46 45  t D3D10_SO_BUFFE
2690: 52 5f 53 4c 4f 54 5f 43 4f 55 4e 54 20 3d 20 34  R_SLOT_COUNT = 4
26a0: 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 53  ;..const D3D10_S
26b0: 4f 5f 44 44 49 5f 52 45 47 49 53 54 45 52 5f 49  O_DDI_REGISTER_I
26c0: 4e 44 45 58 5f 44 45 4e 4f 54 49 4e 47 5f 47 41  NDEX_DENOTING_GA
26d0: 50 20 3d 20 30 78 66 66 66 66 66 66 66 66 3b 0d  P = 0xffffffff;.
26e0: 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 53 4f 5f  .const D3D10_SO_
26f0: 4d 55 4c 54 49 50 4c 45 5f 42 55 46 46 45 52 5f  MULTIPLE_BUFFER_
2700: 45 4c 45 4d 45 4e 54 53 5f 50 45 52 5f 42 55 46  ELEMENTS_PER_BUF
2710: 46 45 52 20 3d 20 31 3b 0d 0a 63 6f 6e 73 74 20  FER = 1;..const 
2720: 44 33 44 31 30 5f 53 4f 5f 53 49 4e 47 4c 45 5f  D3D10_SO_SINGLE_
2730: 42 55 46 46 45 52 5f 43 4f 4d 50 4f 4e 45 4e 54  BUFFER_COMPONENT
2740: 5f 4c 49 4d 49 54 20 3d 20 36 34 3b 0d 0a 63 6f  _LIMIT = 64;..co
2750: 6e 73 74 20 44 33 44 31 30 5f 53 52 47 42 5f 47  nst D3D10_SRGB_G
2760: 41 4d 4d 41 20 3d 20 32 2e 32 66 3b 0d 0a 63 6f  AMMA = 2.2f;..co
2770: 6e 73 74 20 44 33 44 31 30 5f 53 52 47 42 5f 54  nst D3D10_SRGB_T
2780: 4f 5f 46 4c 4f 41 54 5f 44 45 4e 4f 4d 49 4e 41  O_FLOAT_DENOMINA
2790: 54 4f 52 5f 31 20 3d 20 31 32 2e 39 32 66 3b 0d  TOR_1 = 12.92f;.
27a0: 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 53 52 47  .const D3D10_SRG
27b0: 42 5f 54 4f 5f 46 4c 4f 41 54 5f 44 45 4e 4f 4d  B_TO_FLOAT_DENOM
27c0: 49 4e 41 54 4f 52 5f 32 20 3d 20 31 2e 30 35 35  INATOR_2 = 1.055
27d0: 66 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f  f;..const D3D10_
27e0: 53 52 47 42 5f 54 4f 5f 46 4c 4f 41 54 5f 45 58  SRGB_TO_FLOAT_EX
27f0: 50 4f 4e 45 4e 54 20 3d 20 32 2e 34 66 3b 0d 0a  PONENT = 2.4f;..
2800: 63 6f 6e 73 74 20 44 33 44 31 30 5f 53 52 47 42  const D3D10_SRGB
2810: 5f 54 4f 5f 46 4c 4f 41 54 5f 4f 46 46 53 45 54  _TO_FLOAT_OFFSET
2820: 20 3d 20 30 2e 30 35 35 66 3b 0d 0a 63 6f 6e 73   = 0.055f;..cons
2830: 74 20 44 33 44 31 30 5f 53 52 47 42 5f 54 4f 5f  t D3D10_SRGB_TO_
2840: 46 4c 4f 41 54 5f 54 48 52 45 53 48 4f 4c 44 20  FLOAT_THRESHOLD 
2850: 3d 20 30 2e 30 34 30 34 35 66 3b 0d 0a 63 6f 6e  = 0.04045f;..con
2860: 73 74 20 44 33 44 31 30 5f 53 52 47 42 5f 54 4f  st D3D10_SRGB_TO
2870: 5f 46 4c 4f 41 54 5f 54 4f 4c 45 52 41 4e 43 45  _FLOAT_TOLERANCE
2880: 5f 49 4e 5f 55 4c 50 20 3d 20 30 2e 35 66 3b 0d  _IN_ULP = 0.5f;.
2890: 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 53 54 41  .const D3D10_STA
28a0: 4e 44 41 52 44 5f 43 4f 4d 50 4f 4e 45 4e 54 5f  NDARD_COMPONENT_
28b0: 42 49 54 5f 43 4f 55 4e 54 20 3d 20 33 32 3b 0d  BIT_COUNT = 32;.
28c0: 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 53 54 41  .const D3D10_STA
28d0: 4e 44 41 52 44 5f 43 4f 4d 50 4f 4e 45 4e 54 5f  NDARD_COMPONENT_
28e0: 42 49 54 5f 43 4f 55 4e 54 5f 44 4f 55 42 4c 45  BIT_COUNT_DOUBLE
28f0: 44 20 3d 20 36 34 3b 0d 0a 63 6f 6e 73 74 20 44  D = 64;..const D
2900: 33 44 31 30 5f 53 54 41 4e 44 41 52 44 5f 4d 41  3D10_STANDARD_MA
2910: 58 49 4d 55 4d 5f 45 4c 45 4d 45 4e 54 5f 41 4c  XIMUM_ELEMENT_AL
2920: 49 47 4e 4d 45 4e 54 5f 42 59 54 45 5f 4d 55 4c  IGNMENT_BYTE_MUL
2930: 54 49 50 4c 45 20 3d 20 34 3b 0d 0a 63 6f 6e 73  TIPLE = 4;..cons
2940: 74 20 44 33 44 31 30 5f 53 54 41 4e 44 41 52 44  t D3D10_STANDARD
2950: 5f 50 49 58 45 4c 5f 43 4f 4d 50 4f 4e 45 4e 54  _PIXEL_COMPONENT
2960: 5f 43 4f 55 4e 54 20 3d 20 31 32 38 3b 0d 0a 63  _COUNT = 128;..c
2970: 6f 6e 73 74 20 44 33 44 31 30 5f 53 54 41 4e 44  onst D3D10_STAND
2980: 41 52 44 5f 50 49 58 45 4c 5f 45 4c 45 4d 45 4e  ARD_PIXEL_ELEMEN
2990: 54 5f 43 4f 55 4e 54 20 3d 20 33 32 3b 0d 0a 63  T_COUNT = 32;..c
29a0: 6f 6e 73 74 20 44 33 44 31 30 5f 53 54 41 4e 44  onst D3D10_STAND
29b0: 41 52 44 5f 56 45 43 54 4f 52 5f 53 49 5a 45 20  ARD_VECTOR_SIZE 
29c0: 3d 20 34 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31  = 4;..const D3D1
29d0: 30 5f 53 54 41 4e 44 41 52 44 5f 56 45 52 54 45  0_STANDARD_VERTE
29e0: 58 5f 45 4c 45 4d 45 4e 54 5f 43 4f 55 4e 54 20  X_ELEMENT_COUNT 
29f0: 3d 20 31 36 3b 0d 0a 63 6f 6e 73 74 20 44 33 44  = 16;..const D3D
2a00: 31 30 5f 53 54 41 4e 44 41 52 44 5f 56 45 52 54  10_STANDARD_VERT
2a10: 45 58 5f 54 4f 54 41 4c 5f 43 4f 4d 50 4f 4e 45  EX_TOTAL_COMPONE
2a20: 4e 54 5f 43 4f 55 4e 54 20 3d 20 36 34 3b 0d 0a  NT_COUNT = 64;..
2a30: 63 6f 6e 73 74 20 44 33 44 31 30 5f 53 55 42 50  const D3D10_SUBP
2a40: 49 58 45 4c 5f 46 52 41 43 54 49 4f 4e 41 4c 5f  IXEL_FRACTIONAL_
2a50: 42 49 54 5f 43 4f 55 4e 54 20 3d 20 38 3b 0d 0a  BIT_COUNT = 8;..
2a60: 63 6f 6e 73 74 20 44 33 44 31 30 5f 53 55 42 54  const D3D10_SUBT
2a70: 45 58 45 4c 5f 46 52 41 43 54 49 4f 4e 41 4c 5f  EXEL_FRACTIONAL_
2a80: 42 49 54 5f 43 4f 55 4e 54 20 3d 20 36 3b 0d 0a  BIT_COUNT = 6;..
2a90: 63 6f 6e 73 74 20 44 33 44 31 30 5f 54 45 58 45  const D3D10_TEXE
2aa0: 4c 5f 41 44 44 52 45 53 53 5f 52 41 4e 47 45 5f  L_ADDRESS_RANGE_
2ab0: 42 49 54 5f 43 4f 55 4e 54 20 3d 20 31 38 3b 0d  BIT_COUNT = 18;.
2ac0: 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 55 4e 42  .const D3D10_UNB
2ad0: 4f 55 4e 44 5f 4d 45 4d 4f 52 59 5f 41 43 43 45  OUND_MEMORY_ACCE
2ae0: 53 53 5f 52 45 53 55 4c 54 20 3d 20 30 3b 0d 0a  SS_RESULT = 0;..
2af0: 63 6f 6e 73 74 20 44 33 44 31 30 5f 56 49 45 57  const D3D10_VIEW
2b00: 50 4f 52 54 5f 41 4e 44 5f 53 43 49 53 53 4f 52  PORT_AND_SCISSOR
2b10: 52 45 43 54 5f 4d 41 58 5f 49 4e 44 45 58 20 3d  RECT_MAX_INDEX =
2b20: 20 31 35 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31   15;..const D3D1
2b30: 30 5f 56 49 45 57 50 4f 52 54 5f 41 4e 44 5f 53  0_VIEWPORT_AND_S
2b40: 43 49 53 53 4f 52 52 45 43 54 5f 4f 42 4a 45 43  CISSORRECT_OBJEC
2b50: 54 5f 43 4f 55 4e 54 5f 50 45 52 5f 50 49 50 45  T_COUNT_PER_PIPE
2b60: 4c 49 4e 45 20 3d 20 31 36 3b 0d 0a 63 6f 6e 73  LINE = 16;..cons
2b70: 74 20 44 33 44 31 30 5f 56 49 45 57 50 4f 52 54  t D3D10_VIEWPORT
2b80: 5f 42 4f 55 4e 44 53 5f 4d 41 58 20 3d 20 31 36  _BOUNDS_MAX = 16
2b90: 33 38 33 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31  383;..const D3D1
2ba0: 30 5f 56 49 45 57 50 4f 52 54 5f 42 4f 55 4e 44  0_VIEWPORT_BOUND
2bb0: 53 5f 4d 49 4e 20 3d 20 2d 31 36 33 38 34 3b 0d  S_MIN = -16384;.
2bc0: 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 56 53 5f  .const D3D10_VS_
2bd0: 49 4e 50 55 54 5f 52 45 47 49 53 54 45 52 5f 43  INPUT_REGISTER_C
2be0: 4f 4d 50 4f 4e 45 4e 54 53 20 3d 20 34 3b 0d 0a  OMPONENTS = 4;..
2bf0: 63 6f 6e 73 74 20 44 33 44 31 30 5f 56 53 5f 49  const D3D10_VS_I
2c00: 4e 50 55 54 5f 52 45 47 49 53 54 45 52 5f 43 4f  NPUT_REGISTER_CO
2c10: 4d 50 4f 4e 45 4e 54 5f 42 49 54 5f 43 4f 55 4e  MPONENT_BIT_COUN
2c20: 54 20 3d 20 33 32 3b 0d 0a 63 6f 6e 73 74 20 44  T = 32;..const D
2c30: 33 44 31 30 5f 56 53 5f 49 4e 50 55 54 5f 52 45  3D10_VS_INPUT_RE
2c40: 47 49 53 54 45 52 5f 43 4f 55 4e 54 20 3d 20 31  GISTER_COUNT = 1
2c50: 36 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f  6;..const D3D10_
2c60: 56 53 5f 49 4e 50 55 54 5f 52 45 47 49 53 54 45  VS_INPUT_REGISTE
2c70: 52 5f 52 45 41 44 53 5f 50 45 52 5f 49 4e 53 54  R_READS_PER_INST
2c80: 20 3d 20 32 3b 0d 0a 63 6f 6e 73 74 20 44 33 44   = 2;..const D3D
2c90: 31 30 5f 56 53 5f 49 4e 50 55 54 5f 52 45 47 49  10_VS_INPUT_REGI
2ca0: 53 54 45 52 5f 52 45 41 44 5f 50 4f 52 54 53 20  STER_READ_PORTS 
2cb0: 3d 20 31 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31  = 1;..const D3D1
2cc0: 30 5f 56 53 5f 4f 55 54 50 55 54 5f 52 45 47 49  0_VS_OUTPUT_REGI
2cd0: 53 54 45 52 5f 43 4f 4d 50 4f 4e 45 4e 54 53 20  STER_COMPONENTS 
2ce0: 3d 20 34 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31  = 4;..const D3D1
2cf0: 30 5f 56 53 5f 4f 55 54 50 55 54 5f 52 45 47 49  0_VS_OUTPUT_REGI
2d00: 53 54 45 52 5f 43 4f 4d 50 4f 4e 45 4e 54 5f 42  STER_COMPONENT_B
2d10: 49 54 5f 43 4f 55 4e 54 20 3d 20 33 32 3b 0d 0a  IT_COUNT = 32;..
2d20: 63 6f 6e 73 74 20 44 33 44 31 30 5f 56 53 5f 4f  const D3D10_VS_O
2d30: 55 54 50 55 54 5f 52 45 47 49 53 54 45 52 5f 43  UTPUT_REGISTER_C
2d40: 4f 55 4e 54 20 3d 20 31 36 3b 0d 0a 63 6f 6e 73  OUNT = 16;..cons
2d50: 74 20 44 33 44 31 30 5f 57 48 51 4c 5f 43 4f 4e  t D3D10_WHQL_CON
2d60: 54 45 58 54 5f 43 4f 55 4e 54 5f 46 4f 52 5f 52  TEXT_COUNT_FOR_R
2d70: 45 53 4f 55 52 43 45 5f 4c 49 4d 49 54 20 3d 20  ESOURCE_LIMIT = 
2d80: 31 30 3b 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30  10;..const D3D10
2d90: 5f 57 48 51 4c 5f 44 52 41 57 49 4e 44 45 58 45  _WHQL_DRAWINDEXE
2da0: 44 5f 49 4e 44 45 58 5f 43 4f 55 4e 54 5f 32 5f  D_INDEX_COUNT_2_
2db0: 54 4f 5f 45 58 50 20 3d 20 32 35 3b 0d 0a 63 6f  TO_EXP = 25;..co
2dc0: 6e 73 74 20 44 33 44 31 30 5f 57 48 51 4c 5f 44  nst D3D10_WHQL_D
2dd0: 52 41 57 5f 56 45 52 54 45 58 5f 43 4f 55 4e 54  RAW_VERTEX_COUNT
2de0: 5f 32 5f 54 4f 5f 45 58 50 20 3d 20 32 35 3b 0d  _2_TO_EXP = 25;.
2df0: 0a 63 6f 6e 73 74 20 44 33 44 5f 4d 41 4a 4f 52  .const D3D_MAJOR
2e00: 5f 56 45 52 53 49 4f 4e 20 3d 20 31 30 3b 0d 0a  _VERSION = 10;..
2e10: 63 6f 6e 73 74 20 44 33 44 5f 4d 49 4e 4f 52 5f  const D3D_MINOR_
2e20: 56 45 52 53 49 4f 4e 20 3d 20 30 3b 0d 0a 63 6f  VERSION = 0;..co
2e30: 6e 73 74 20 44 33 44 5f 53 50 45 43 5f 44 41 54  nst D3D_SPEC_DAT
2e40: 45 5f 44 41 59 20 3d 20 38 3b 0d 0a 63 6f 6e 73  E_DAY = 8;..cons
2e50: 74 20 44 33 44 5f 53 50 45 43 5f 44 41 54 45 5f  t D3D_SPEC_DATE_
2e60: 4d 4f 4e 54 48 20 3d 20 38 3b 0d 0a 63 6f 6e 73  MONTH = 8;..cons
2e70: 74 20 44 33 44 5f 53 50 45 43 5f 44 41 54 45 5f  t D3D_SPEC_DATE_
2e80: 59 45 41 52 20 3d 20 32 30 30 36 3b 0d 0a 63 6f  YEAR = 2006;..co
2e90: 6e 73 74 20 44 33 44 5f 53 50 45 43 5f 56 45 52  nst D3D_SPEC_VER
2ea0: 53 49 4f 4e 20 3d 20 31 2e 30 35 30 30 30 35 3b  SION = 1.050005;
2eb0: 0d 0a 0d 0a 63 6f 6e 73 74 20 5f 46 41 43 44 33  ....const _FACD3
2ec0: 44 31 30 20 3d 20 30 78 38 37 39 3b 0d 0a 63 6f  D10 = 0x879;..co
2ed0: 6e 73 74 20 5f 46 41 43 44 33 44 31 30 44 45 42  nst _FACD3D10DEB
2ee0: 55 47 20 3d 20 5f 46 41 43 44 33 44 31 30 20 2b  UG = _FACD3D10 +
2ef0: 20 31 3b 0d 0a 0d 0a 48 52 45 53 55 4c 54 20 4d   1;....HRESULT M
2f00: 41 4b 45 5f 44 33 44 31 30 5f 48 52 45 53 55 4c  AKE_D3D10_HRESUL
2f10: 54 28 54 29 28 54 20 63 6f 64 65 29 20 7b 0d 0a  T(T)(T code) {..
2f20: 09 72 65 74 75 72 6e 20 4d 41 4b 45 5f 48 52 45  .return MAKE_HRE
2f30: 53 55 4c 54 28 31 2c 20 5f 46 41 43 44 33 44 31  SULT(1, _FACD3D1
2f40: 30 2c 20 63 6f 64 65 29 3b 0d 0a 7d 0d 0a 0d 0a  0, code);..}....
2f50: 48 52 45 53 55 4c 54 20 4d 41 4b 45 5f 44 33 44  HRESULT MAKE_D3D
2f60: 31 30 5f 53 54 41 54 55 53 28 54 29 28 54 20 63  10_STATUS(T)(T c
2f70: 6f 64 65 29 20 7b 0d 0a 09 72 65 74 75 72 6e 20  ode) {...return 
2f80: 4d 41 4b 45 5f 48 52 45 53 55 4c 54 28 30 2c 20  MAKE_HRESULT(0, 
2f90: 5f 46 41 43 44 33 44 31 30 2c 20 63 6f 64 65 29  _FACD3D10, code)
2fa0: 3b 0d 0a 7d 0d 0a 0d 0a 63 6f 6e 73 74 20 44 33  ;..}....const D3
2fb0: 44 31 30 5f 45 52 52 4f 52 5f 54 4f 4f 5f 4d 41  D10_ERROR_TOO_MA
2fc0: 4e 59 5f 55 4e 49 51 55 45 5f 53 54 41 54 45 5f  NY_UNIQUE_STATE_
2fd0: 4f 42 4a 45 43 54 53 20 3d 20 4d 41 4b 45 5f 44  OBJECTS = MAKE_D
2fe0: 33 44 31 30 5f 48 52 45 53 55 4c 54 28 31 29 3b  3D10_HRESULT(1);
2ff0: 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 45 52  ..const D3D10_ER
3000: 52 4f 52 5f 46 49 4c 45 5f 4e 4f 54 5f 46 4f 55  ROR_FILE_NOT_FOU
3010: 4e 44 20 3d 20 4d 41 4b 45 5f 44 33 44 31 30 5f  ND = MAKE_D3D10_
3020: 48 52 45 53 55 4c 54 28 32 29 3b 0d 0a 0d 0a 65  HRESULT(2);....e
3030: 6e 75 6d 20 44 33 44 31 30 5f 49 4e 50 55 54 5f  num D3D10_INPUT_
3040: 43 4c 41 53 53 49 46 49 43 41 54 49 4f 4e 20 7b  CLASSIFICATION {
3050: 0d 0a 09 44 33 44 31 30 5f 49 4e 50 55 54 5f 50  ...D3D10_INPUT_P
3060: 45 52 5f 56 45 52 54 45 58 5f 44 41 54 41 09 09  ER_VERTEX_DATA..
3070: 3d 20 30 2c 0d 0a 09 44 33 44 31 30 5f 49 4e 50  = 0,...D3D10_INP
3080: 55 54 5f 50 45 52 5f 49 4e 53 54 41 4e 43 45 5f  UT_PER_INSTANCE_
3090: 44 41 54 41 09 3d 20 31 0d 0a 7d 0d 0a 0d 0a 63  DATA.= 1..}....c
30a0: 6f 6e 73 74 20 44 33 44 31 30 5f 41 50 50 45 4e  onst D3D10_APPEN
30b0: 44 5f 41 4c 49 47 4e 45 44 5f 45 4c 45 4d 45 4e  D_ALIGNED_ELEMEN
30c0: 54 20 3d 20 30 78 66 66 66 66 66 66 66 66 3b 0d  T = 0xffffffff;.
30d0: 0a 0d 0a 73 74 72 75 63 74 20 44 33 44 31 30 5f  ...struct D3D10_
30e0: 49 4e 50 55 54 5f 45 4c 45 4d 45 4e 54 5f 44 45  INPUT_ELEMENT_DE
30f0: 53 43 20 7b 0d 0a 09 4c 50 43 53 54 52 20 53 65  SC {...LPCSTR Se
3100: 6d 61 6e 74 69 63 4e 61 6d 65 3b 0d 0a 09 55 49  manticName;...UI
3110: 4e 54 20 53 65 6d 61 6e 74 69 63 49 6e 64 65 78  NT SemanticIndex
3120: 3b 0d 0a 09 44 58 47 49 5f 46 4f 52 4d 41 54 20  ;...DXGI_FORMAT 
3130: 46 6f 72 6d 61 74 3b 0d 0a 09 55 49 4e 54 20 49  Format;...UINT I
3140: 6e 70 75 74 53 6c 6f 74 3b 0d 0a 09 55 49 4e 54  nputSlot;...UINT
3150: 20 41 6c 69 67 6e 65 64 42 79 74 65 4f 66 66 73   AlignedByteOffs
3160: 65 74 3b 0d 0a 09 44 33 44 31 30 5f 49 4e 50 55  et;...D3D10_INPU
3170: 54 5f 43 4c 41 53 53 49 46 49 43 41 54 49 4f 4e  T_CLASSIFICATION
3180: 20 49 6e 70 75 74 53 6c 6f 74 43 6c 61 73 73 3b   InputSlotClass;
3190: 0d 0a 09 55 49 4e 54 20 49 6e 73 74 61 6e 63 65  ...UINT Instance
31a0: 44 61 74 61 53 74 65 70 52 61 74 65 3b 0d 0a 7d  DataStepRate;..}
31b0: 0d 0a 0d 0a 65 6e 75 6d 20 44 33 44 31 30 5f 46  ....enum D3D10_F
31c0: 49 4c 4c 5f 4d 4f 44 45 20 7b 0d 0a 09 44 33 44  ILL_MODE {...D3D
31d0: 31 30 5f 46 49 4c 4c 5f 57 49 52 45 46 52 41 4d  10_FILL_WIREFRAM
31e0: 45 09 3d 20 32 2c 0d 0a 09 44 33 44 31 30 5f 46  E.= 2,...D3D10_F
31f0: 49 4c 4c 5f 53 4f 4c 49 44 09 09 3d 20 33 0d 0a  ILL_SOLID..= 3..
3200: 7d 0d 0a 0d 0a 65 6e 75 6d 20 44 33 44 31 30 5f  }....enum D3D10_
3210: 50 52 49 4d 49 54 49 56 45 5f 54 4f 50 4f 4c 4f  PRIMITIVE_TOPOLO
3220: 47 59 20 7b 0d 0a 09 44 33 44 31 30 5f 50 52 49  GY {...D3D10_PRI
3230: 4d 49 54 49 56 45 5f 54 4f 50 4f 4c 4f 47 59 5f  MITIVE_TOPOLOGY_
3240: 55 4e 44 45 46 49 4e 45 44 09 09 09 3d 20 30 2c  UNDEFINED...= 0,
3250: 0d 0a 09 44 33 44 31 30 5f 50 52 49 4d 49 54 49  ...D3D10_PRIMITI
3260: 56 45 5f 54 4f 50 4f 4c 4f 47 59 5f 50 4f 49 4e  VE_TOPOLOGY_POIN
3270: 54 4c 49 53 54 09 09 09 3d 20 31 2c 0d 0a 09 44  TLIST...= 1,...D
3280: 33 44 31 30 5f 50 52 49 4d 49 54 49 56 45 5f 54  3D10_PRIMITIVE_T
3290: 4f 50 4f 4c 4f 47 59 5f 4c 49 4e 45 4c 49 53 54  OPOLOGY_LINELIST
32a0: 09 09 09 3d 20 32 2c 0d 0a 09 44 33 44 31 30 5f  ...= 2,...D3D10_
32b0: 50 52 49 4d 49 54 49 56 45 5f 54 4f 50 4f 4c 4f  PRIMITIVE_TOPOLO
32c0: 47 59 5f 4c 49 4e 45 53 54 52 49 50 09 09 09 3d  GY_LINESTRIP...=
32d0: 20 33 2c 0d 0a 09 44 33 44 31 30 5f 50 52 49 4d   3,...D3D10_PRIM
32e0: 49 54 49 56 45 5f 54 4f 50 4f 4c 4f 47 59 5f 54  ITIVE_TOPOLOGY_T
32f0: 52 49 41 4e 47 4c 45 4c 49 53 54 09 09 3d 20 34  RIANGLELIST..= 4
3300: 2c 0d 0a 09 44 33 44 31 30 5f 50 52 49 4d 49 54  ,...D3D10_PRIMIT
3310: 49 56 45 5f 54 4f 50 4f 4c 4f 47 59 5f 54 52 49  IVE_TOPOLOGY_TRI
3320: 41 4e 47 4c 45 53 54 52 49 50 09 09 3d 20 35 2c  ANGLESTRIP..= 5,
3330: 0d 0a 09 44 33 44 31 30 5f 50 52 49 4d 49 54 49  ...D3D10_PRIMITI
3340: 56 45 5f 54 4f 50 4f 4c 4f 47 59 5f 4c 49 4e 45  VE_TOPOLOGY_LINE
3350: 4c 49 53 54 5f 41 44 4a 09 09 3d 20 31 30 2c 0d  LIST_ADJ..= 10,.
3360: 0a 09 44 33 44 31 30 5f 50 52 49 4d 49 54 49 56  ..D3D10_PRIMITIV
3370: 45 5f 54 4f 50 4f 4c 4f 47 59 5f 4c 49 4e 45 53  E_TOPOLOGY_LINES
3380: 54 52 49 50 5f 41 44 4a 09 09 3d 20 31 31 2c 0d  TRIP_ADJ..= 11,.
3390: 0a 09 44 33 44 31 30 5f 50 52 49 4d 49 54 49 56  ..D3D10_PRIMITIV
33a0: 45 5f 54 4f 50 4f 4c 4f 47 59 5f 54 52 49 41 4e  E_TOPOLOGY_TRIAN
33b0: 47 4c 45 4c 49 53 54 5f 41 44 4a 09 3d 20 31 32  GLELIST_ADJ.= 12
33c0: 2c 0d 0a 09 44 33 44 31 30 5f 50 52 49 4d 49 54  ,...D3D10_PRIMIT
33d0: 49 56 45 5f 54 4f 50 4f 4c 4f 47 59 5f 54 52 49  IVE_TOPOLOGY_TRI
33e0: 41 4e 47 4c 45 53 54 52 49 50 5f 41 44 4a 09 3d  ANGLESTRIP_ADJ.=
33f0: 20 31 33 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d 20 44   13..}....enum D
3400: 33 44 31 30 5f 50 52 49 4d 49 54 49 56 45 20 7b  3D10_PRIMITIVE {
3410: 0d 0a 09 44 33 44 31 30 5f 50 52 49 4d 49 54 49  ...D3D10_PRIMITI
3420: 56 45 5f 55 4e 44 45 46 49 4e 45 44 09 3d 20 30  VE_UNDEFINED.= 0
3430: 2c 0d 0a 09 44 33 44 31 30 5f 50 52 49 4d 49 54  ,...D3D10_PRIMIT
3440: 49 56 45 5f 50 4f 49 4e 54 09 3d 20 31 2c 0d 0a  IVE_POINT.= 1,..
3450: 09 44 33 44 31 30 5f 50 52 49 4d 49 54 49 56 45  .D3D10_PRIMITIVE
3460: 5f 4c 49 4e 45 09 3d 20 32 2c 0d 0a 09 44 33 44  _LINE.= 2,...D3D
3470: 31 30 5f 50 52 49 4d 49 54 49 56 45 5f 54 52 49  10_PRIMITIVE_TRI
3480: 41 4e 47 4c 45 09 3d 20 33 2c 0d 0a 09 44 33 44  ANGLE.= 3,...D3D
3490: 31 30 5f 50 52 49 4d 49 54 49 56 45 5f 4c 49 4e  10_PRIMITIVE_LIN
34a0: 45 5f 41 44 4a 09 3d 20 36 2c 0d 0a 09 44 33 44  E_ADJ.= 6,...D3D
34b0: 31 30 5f 50 52 49 4d 49 54 49 56 45 5f 54 52 49  10_PRIMITIVE_TRI
34c0: 41 4e 47 4c 45 5f 41 44 4a 09 3d 20 37 0d 0a 7d  ANGLE_ADJ.= 7..}
34d0: 0d 0a 0d 0a 65 6e 75 6d 20 44 33 44 31 30 5f 43  ....enum D3D10_C
34e0: 55 4c 4c 5f 4d 4f 44 45 20 7b 0d 0a 09 44 33 44  ULL_MODE {...D3D
34f0: 31 30 5f 43 55 4c 4c 5f 4e 4f 4e 45 20 3d 20 31  10_CULL_NONE = 1
3500: 2c 0d 0a 09 44 33 44 31 30 5f 43 55 4c 4c 5f 46  ,...D3D10_CULL_F
3510: 52 4f 4e 54 2c 0d 0a 09 44 33 44 31 30 5f 43 55  RONT,...D3D10_CU
3520: 4c 4c 5f 42 41 43 4b 0d 0a 7d 0d 0a 0d 0a 73 74  LL_BACK..}....st
3530: 72 75 63 74 20 44 33 44 31 30 5f 53 4f 5f 44 45  ruct D3D10_SO_DE
3540: 43 4c 41 52 41 54 49 4f 4e 5f 45 4e 54 52 59 20  CLARATION_ENTRY 
3550: 7b 0d 0a 09 4c 50 43 53 54 52 20 53 65 6d 61 6e  {...LPCSTR Seman
3560: 74 69 63 4e 61 6d 65 3b 0d 0a 09 55 49 4e 54 20  ticName;...UINT 
3570: 53 65 6d 61 6e 74 69 63 49 6e 64 65 78 3b 0d 0a  SemanticIndex;..
3580: 09 42 59 54 45 20 53 74 61 72 74 43 6f 6d 70 6f  .BYTE StartCompo
3590: 6e 65 6e 74 3b 0d 0a 09 42 59 54 45 20 43 6f 6d  nent;...BYTE Com
35a0: 70 6f 6e 65 6e 74 43 6f 75 6e 74 3b 0d 0a 09 42  ponentCount;...B
35b0: 59 54 45 20 4f 75 74 70 75 74 53 6c 6f 74 3b 0d  YTE OutputSlot;.
35c0: 0a 7d 0d 0a 0d 0a 73 74 72 75 63 74 20 44 33 44  .}....struct D3D
35d0: 31 30 5f 56 49 45 57 50 4f 52 54 20 7b 0d 0a 09  10_VIEWPORT {...
35e0: 49 4e 54 20 54 6f 70 4c 65 66 74 58 3b 0d 0a 09  INT TopLeftX;...
35f0: 49 4e 54 20 54 6f 70 4c 65 66 74 59 3b 0d 0a 09  INT TopLeftY;...
3600: 55 49 4e 54 20 57 69 64 74 68 3b 0d 0a 09 55 49  UINT Width;...UI
3610: 4e 54 20 48 65 69 67 68 74 3b 0d 0a 09 46 4c 4f  NT Height;...FLO
3620: 41 54 20 4d 69 6e 44 65 70 74 68 3b 0d 0a 09 46  AT MinDepth;...F
3630: 4c 4f 41 54 20 4d 61 78 44 65 70 74 68 3b 0d 0a  LOAT MaxDepth;..
3640: 7d 0d 0a 0d 0a 65 6e 75 6d 20 44 33 44 31 30 5f  }....enum D3D10_
3650: 52 45 53 4f 55 52 43 45 5f 44 49 4d 45 4e 53 49  RESOURCE_DIMENSI
3660: 4f 4e 20 7b 0d 0a 09 44 33 44 31 30 5f 52 45 53  ON {...D3D10_RES
3670: 4f 55 52 43 45 5f 44 49 4d 45 4e 53 49 4f 4e 5f  OURCE_DIMENSION_
3680: 55 4e 4b 4e 4f 57 4e 09 3d 20 30 2c 0d 0a 09 44  UNKNOWN.= 0,...D
3690: 33 44 31 30 5f 52 45 53 4f 55 52 43 45 5f 44 49  3D10_RESOURCE_DI
36a0: 4d 45 4e 53 49 4f 4e 5f 42 55 46 46 45 52 2c 0d  MENSION_BUFFER,.
36b0: 0a 09 44 33 44 31 30 5f 52 45 53 4f 55 52 43 45  ..D3D10_RESOURCE
36c0: 5f 44 49 4d 45 4e 53 49 4f 4e 5f 54 45 58 54 55  _DIMENSION_TEXTU
36d0: 52 45 31 44 2c 0d 0a 09 44 33 44 31 30 5f 52 45  RE1D,...D3D10_RE
36e0: 53 4f 55 52 43 45 5f 44 49 4d 45 4e 53 49 4f 4e  SOURCE_DIMENSION
36f0: 5f 54 45 58 54 55 52 45 32 44 2c 0d 0a 09 44 33  _TEXTURE2D,...D3
3700: 44 31 30 5f 52 45 53 4f 55 52 43 45 5f 44 49 4d  D10_RESOURCE_DIM
3710: 45 4e 53 49 4f 4e 5f 54 45 58 54 55 52 45 33 44  ENSION_TEXTURE3D
3720: 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d 20 44 33 44 31  ..}....enum D3D1
3730: 30 5f 53 52 56 5f 44 49 4d 45 4e 53 49 4f 4e 20  0_SRV_DIMENSION 
3740: 7b 0d 0a 09 44 33 44 31 30 5f 53 52 56 5f 44 49  {...D3D10_SRV_DI
3750: 4d 45 4e 53 49 4f 4e 5f 55 4e 4b 4e 4f 57 4e 09  MENSION_UNKNOWN.
3760: 3d 20 30 2c 0d 0a 09 44 33 44 31 30 5f 53 52 56  = 0,...D3D10_SRV
3770: 5f 44 49 4d 45 4e 53 49 4f 4e 5f 42 55 46 46 45  _DIMENSION_BUFFE
3780: 52 2c 0d 0a 09 44 33 44 31 30 5f 53 52 56 5f 44  R,...D3D10_SRV_D
3790: 49 4d 45 4e 53 49 4f 4e 5f 54 45 58 54 55 52 45  IMENSION_TEXTURE
37a0: 31 44 2c 0d 0a 09 44 33 44 31 30 5f 53 52 56 5f  1D,...D3D10_SRV_
37b0: 44 49 4d 45 4e 53 49 4f 4e 5f 54 45 58 54 55 52  DIMENSION_TEXTUR
37c0: 45 31 44 41 52 52 41 59 2c 0d 0a 09 44 33 44 31  E1DARRAY,...D3D1
37d0: 30 5f 53 52 56 5f 44 49 4d 45 4e 53 49 4f 4e 5f  0_SRV_DIMENSION_
37e0: 54 45 58 54 55 52 45 32 44 2c 0d 0a 09 44 33 44  TEXTURE2D,...D3D
37f0: 31 30 5f 53 52 56 5f 44 49 4d 45 4e 53 49 4f 4e  10_SRV_DIMENSION
3800: 5f 54 45 58 54 55 52 45 32 44 41 52 52 41 59 2c  _TEXTURE2DARRAY,
3810: 0d 0a 09 44 33 44 31 30 5f 53 52 56 5f 44 49 4d  ...D3D10_SRV_DIM
3820: 45 4e 53 49 4f 4e 5f 54 45 58 54 55 52 45 32 44  ENSION_TEXTURE2D
3830: 4d 53 2c 0d 0a 09 44 33 44 31 30 5f 53 52 56 5f  MS,...D3D10_SRV_
3840: 44 49 4d 45 4e 53 49 4f 4e 5f 54 45 58 54 55 52  DIMENSION_TEXTUR
3850: 45 32 44 4d 53 41 52 52 41 59 2c 0d 0a 09 44 33  E2DMSARRAY,...D3
3860: 44 31 30 5f 53 52 56 5f 44 49 4d 45 4e 53 49 4f  D10_SRV_DIMENSIO
3870: 4e 5f 54 45 58 54 55 52 45 33 44 2c 0d 0a 09 44  N_TEXTURE3D,...D
3880: 33 44 31 30 5f 53 52 56 5f 44 49 4d 45 4e 53 49  3D10_SRV_DIMENSI
3890: 4f 4e 5f 54 45 58 54 55 52 45 43 55 42 45 0d 0a  ON_TEXTURECUBE..
38a0: 7d 0d 0a 0d 0a 65 6e 75 6d 20 44 33 44 31 30 5f  }....enum D3D10_
38b0: 44 53 56 5f 44 49 4d 45 4e 53 49 4f 4e 20 7b 0d  DSV_DIMENSION {.
38c0: 0a 09 44 33 44 31 30 5f 44 53 56 5f 44 49 4d 45  ..D3D10_DSV_DIME
38d0: 4e 53 49 4f 4e 5f 55 4e 4b 4e 4f 57 4e 09 3d 20  NSION_UNKNOWN.= 
38e0: 30 2c 0d 0a 09 44 33 44 31 30 5f 44 53 56 5f 44  0,...D3D10_DSV_D
38f0: 49 4d 45 4e 53 49 4f 4e 5f 54 45 58 54 55 52 45  IMENSION_TEXTURE
3900: 31 44 2c 0d 0a 09 44 33 44 31 30 5f 44 53 56 5f  1D,...D3D10_DSV_
3910: 44 49 4d 45 4e 53 49 4f 4e 5f 54 45 58 54 55 52  DIMENSION_TEXTUR
3920: 45 31 44 41 52 52 41 59 2c 0d 0a 09 44 33 44 31  E1DARRAY,...D3D1
3930: 30 5f 44 53 56 5f 44 49 4d 45 4e 53 49 4f 4e 5f  0_DSV_DIMENSION_
3940: 54 45 58 54 55 52 45 32 44 2c 0d 0a 09 44 33 44  TEXTURE2D,...D3D
3950: 31 30 5f 44 53 56 5f 44 49 4d 45 4e 53 49 4f 4e  10_DSV_DIMENSION
3960: 5f 54 45 58 54 55 52 45 32 44 41 52 52 41 59 2c  _TEXTURE2DARRAY,
3970: 0d 0a 09 44 33 44 31 30 5f 44 53 56 5f 44 49 4d  ...D3D10_DSV_DIM
3980: 45 4e 53 49 4f 4e 5f 54 45 58 54 55 52 45 32 44  ENSION_TEXTURE2D
3990: 4d 53 2c 0d 0a 09 44 33 44 31 30 5f 44 53 56 5f  MS,...D3D10_DSV_
39a0: 44 49 4d 45 4e 53 49 4f 4e 5f 54 45 58 54 55 52  DIMENSION_TEXTUR
39b0: 45 32 44 4d 53 41 52 52 41 59 36 0d 0a 7d 0d 0a  E2DMSARRAY6..}..
39c0: 0d 0a 65 6e 75 6d 20 44 33 44 31 30 5f 52 54 56  ..enum D3D10_RTV
39d0: 5f 44 49 4d 45 4e 53 49 4f 4e 20 7b 0d 0a 09 44  _DIMENSION {...D
39e0: 33 44 31 30 5f 52 54 56 5f 44 49 4d 45 4e 53 49  3D10_RTV_DIMENSI
39f0: 4f 4e 5f 55 4e 4b 4e 4f 57 4e 09 3d 20 30 2c 0d  ON_UNKNOWN.= 0,.
3a00: 0a 09 44 33 44 31 30 5f 52 54 56 5f 44 49 4d 45  ..D3D10_RTV_DIME
3a10: 4e 53 49 4f 4e 5f 42 55 46 46 45 52 2c 0d 0a 09  NSION_BUFFER,...
3a20: 44 33 44 31 30 5f 52 54 56 5f 44 49 4d 45 4e 53  D3D10_RTV_DIMENS
3a30: 49 4f 4e 5f 54 45 58 54 55 52 45 31 44 2c 0d 0a  ION_TEXTURE1D,..
3a40: 09 44 33 44 31 30 5f 52 54 56 5f 44 49 4d 45 4e  .D3D10_RTV_DIMEN
3a50: 53 49 4f 4e 5f 54 45 58 54 55 52 45 31 44 41 52  SION_TEXTURE1DAR
3a60: 52 41 59 2c 0d 0a 09 44 33 44 31 30 5f 52 54 56  RAY,...D3D10_RTV
3a70: 5f 44 49 4d 45 4e 53 49 4f 4e 5f 54 45 58 54 55  _DIMENSION_TEXTU
3a80: 52 45 32 44 2c 0d 0a 09 44 33 44 31 30 5f 52 54  RE2D,...D3D10_RT
3a90: 56 5f 44 49 4d 45 4e 53 49 4f 4e 5f 54 45 58 54  V_DIMENSION_TEXT
3aa0: 55 52 45 32 44 41 52 52 41 59 2c 0d 0a 09 44 33  URE2DARRAY,...D3
3ab0: 44 31 30 5f 52 54 56 5f 44 49 4d 45 4e 53 49 4f  D10_RTV_DIMENSIO
3ac0: 4e 5f 54 45 58 54 55 52 45 32 44 4d 53 2c 0d 0a  N_TEXTURE2DMS,..
3ad0: 09 44 33 44 31 30 5f 52 54 56 5f 44 49 4d 45 4e  .D3D10_RTV_DIMEN
3ae0: 53 49 4f 4e 5f 54 45 58 54 55 52 45 32 44 4d 53  SION_TEXTURE2DMS
3af0: 41 52 52 41 59 2c 0d 0a 09 44 33 44 31 30 5f 52  ARRAY,...D3D10_R
3b00: 54 56 5f 44 49 4d 45 4e 53 49 4f 4e 5f 54 45 58  TV_DIMENSION_TEX
3b10: 54 55 52 45 33 44 0d 0a 7d 0d 0a 0d 0a 65 6e 75  TURE3D..}....enu
3b20: 6d 20 44 33 44 31 30 5f 55 53 41 47 45 20 7b 0d  m D3D10_USAGE {.
3b30: 0a 09 44 33 44 31 30 5f 55 53 41 47 45 5f 44 45  ..D3D10_USAGE_DE
3b40: 46 41 55 4c 54 09 3d 20 30 2c 0d 0a 09 44 33 44  FAULT.= 0,...D3D
3b50: 31 30 5f 55 53 41 47 45 5f 49 4d 4d 55 54 41 42  10_USAGE_IMMUTAB
3b60: 4c 45 2c 0d 0a 09 44 33 44 31 30 5f 55 53 41 47  LE,...D3D10_USAG
3b70: 45 5f 44 59 4e 41 4d 49 43 2c 0d 0a 09 44 33 44  E_DYNAMIC,...D3D
3b80: 31 30 5f 55 53 41 47 45 5f 53 54 41 47 49 4e 47  10_USAGE_STAGING
3b90: 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d 20 44 33 44 31  ..}....enum D3D1
3ba0: 30 5f 42 49 4e 44 5f 46 4c 41 47 20 7b 0d 0a 09  0_BIND_FLAG {...
3bb0: 44 33 44 31 30 5f 42 49 4e 44 5f 56 45 52 54 45  D3D10_BIND_VERTE
3bc0: 58 5f 42 55 46 46 45 52 09 3d 20 30 78 30 31 2c  X_BUFFER.= 0x01,
3bd0: 0d 0a 09 44 33 44 31 30 5f 42 49 4e 44 5f 49 4e  ...D3D10_BIND_IN
3be0: 44 45 58 5f 42 55 46 46 45 52 09 09 3d 20 30 78  DEX_BUFFER..= 0x
3bf0: 30 32 2c 0d 0a 09 44 33 44 31 30 5f 42 49 4e 44  02,...D3D10_BIND
3c00: 5f 43 4f 4e 53 54 41 4e 54 5f 42 55 46 46 45 52  _CONSTANT_BUFFER
3c10: 09 3d 20 30 78 30 34 2c 0d 0a 09 44 33 44 31 30  .= 0x04,...D3D10
3c20: 5f 42 49 4e 44 5f 53 48 41 44 45 52 5f 52 45 53  _BIND_SHADER_RES
3c30: 4f 55 52 43 45 09 3d 20 30 78 30 38 2c 0d 0a 09  OURCE.= 0x08,...
3c40: 44 33 44 31 30 5f 42 49 4e 44 5f 53 54 52 45 41  D3D10_BIND_STREA
3c50: 4d 5f 4f 55 54 50 55 54 09 3d 20 30 78 31 30 2c  M_OUTPUT.= 0x10,
3c60: 0d 0a 09 44 33 44 31 30 5f 42 49 4e 44 5f 52 45  ...D3D10_BIND_RE
3c70: 4e 44 45 52 5f 54 41 52 47 45 54 09 3d 20 30 78  NDER_TARGET.= 0x
3c80: 32 30 2c 0d 0a 09 44 33 44 31 30 5f 42 49 4e 44  20,...D3D10_BIND
3c90: 5f 44 45 50 54 48 5f 53 54 45 4e 43 49 4c 09 3d  _DEPTH_STENCIL.=
3ca0: 20 30 78 34 30 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d   0x40..}....enum
3cb0: 20 44 33 44 31 30 5f 43 50 55 5f 41 43 43 45 53   D3D10_CPU_ACCES
3cc0: 53 5f 46 4c 41 47 20 7b 0d 0a 09 44 33 44 31 30  S_FLAG {...D3D10
3cd0: 5f 43 50 55 5f 41 43 43 45 53 53 5f 57 52 49 54  _CPU_ACCESS_WRIT
3ce0: 45 09 3d 20 30 78 31 30 30 30 30 2c 0d 0a 09 44  E.= 0x10000,...D
3cf0: 33 44 31 30 5f 43 50 55 5f 41 43 43 45 53 53 5f  3D10_CPU_ACCESS_
3d00: 52 45 41 44 09 3d 20 30 78 32 30 30 30 30 0d 0a  READ.= 0x20000..
3d10: 7d 0d 0a 0d 0a 65 6e 75 6d 20 44 33 44 31 30 5f  }....enum D3D10_
3d20: 52 45 53 4f 55 52 43 45 5f 4d 49 53 43 5f 46 4c  RESOURCE_MISC_FL
3d30: 41 47 20 7b 0d 0a 09 44 33 44 31 30 5f 52 45 53  AG {...D3D10_RES
3d40: 4f 55 52 43 45 5f 4d 49 53 43 5f 47 45 4e 45 52  OURCE_MISC_GENER
3d50: 41 54 45 5f 4d 49 50 53 09 3d 20 30 78 30 31 2c  ATE_MIPS.= 0x01,
3d60: 0d 0a 09 44 33 44 31 30 5f 52 45 53 4f 55 52 43  ...D3D10_RESOURC
3d70: 45 5f 4d 49 53 43 5f 53 48 41 52 45 44 09 09 09  E_MISC_SHARED...
3d80: 3d 20 30 78 30 32 2c 0d 0a 09 44 33 44 31 30 5f  = 0x02,...D3D10_
3d90: 52 45 53 4f 55 52 43 45 5f 4d 49 53 43 5f 54 45  RESOURCE_MISC_TE
3da0: 58 54 55 52 45 43 55 42 45 09 09 3d 20 30 78 30  XTURECUBE..= 0x0
3db0: 34 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d 20 44 33 44  4..}....enum D3D
3dc0: 31 30 5f 4d 41 50 20 7b 0d 0a 09 44 33 44 31 30  10_MAP {...D3D10
3dd0: 5f 4d 41 50 5f 52 45 41 44 20 3d 20 31 2c 0d 0a  _MAP_READ = 1,..
3de0: 09 44 33 44 31 30 5f 4d 41 50 5f 57 52 49 54 45  .D3D10_MAP_WRITE
3df0: 2c 0d 0a 09 44 33 44 31 30 5f 4d 41 50 5f 52 45  ,...D3D10_MAP_RE
3e00: 41 44 5f 57 52 49 54 45 2c 0d 0a 09 44 33 44 31  AD_WRITE,...D3D1
3e10: 30 5f 4d 41 50 5f 57 52 49 54 45 5f 44 49 53 43  0_MAP_WRITE_DISC
3e20: 41 52 44 2c 0d 0a 09 44 33 44 31 30 5f 4d 41 50  ARD,...D3D10_MAP
3e30: 5f 57 52 49 54 45 5f 4e 4f 5f 4f 56 45 52 57 52  _WRITE_NO_OVERWR
3e40: 49 54 45 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d 20 44  ITE..}....enum D
3e50: 33 44 31 30 5f 4d 41 50 5f 46 4c 41 47 20 7b 0d  3D10_MAP_FLAG {.
3e60: 0a 09 44 33 44 31 30 5f 4d 41 50 5f 46 4c 41 47  ..D3D10_MAP_FLAG
3e70: 5f 44 4f 5f 4e 4f 54 5f 57 41 49 54 20 3d 20 30  _DO_NOT_WAIT = 0
3e80: 78 31 30 30 30 30 30 0d 0a 7d 0d 0a 0d 0a 65 6e  x100000..}....en
3e90: 75 6d 20 44 33 44 31 30 5f 52 41 49 53 45 5f 46  um D3D10_RAISE_F
3ea0: 4c 41 47 20 7b 0d 0a 09 44 33 44 31 30 5f 52 41  LAG {...D3D10_RA
3eb0: 49 53 45 5f 46 4c 41 47 5f 44 52 49 56 45 52 5f  ISE_FLAG_DRIVER_
3ec0: 49 4e 54 45 52 4e 41 4c 5f 45 52 52 4f 52 20 3d  INTERNAL_ERROR =
3ed0: 20 30 78 30 31 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d   0x01..}....enum
3ee0: 20 44 33 44 31 30 5f 43 4c 45 41 52 5f 46 4c 41   D3D10_CLEAR_FLA
3ef0: 47 20 7b 0d 0a 09 44 33 44 31 30 5f 43 4c 45 41  G {...D3D10_CLEA
3f00: 52 5f 44 45 50 54 48 09 3d 20 30 78 30 31 2c 0d  R_DEPTH.= 0x01,.
3f10: 0a 09 44 33 44 31 30 5f 43 4c 45 41 52 5f 53 54  ..D3D10_CLEAR_ST
3f20: 45 4e 43 49 4c 09 3d 20 30 78 30 32 0d 0a 7d 0d  ENCIL.= 0x02..}.
3f30: 0a 0d 0a 61 6c 69 61 73 20 52 45 43 54 20 44 33  ...alias RECT D3
3f40: 44 31 30 5f 52 45 43 54 3b 0d 0a 0d 0a 73 74 72  D10_RECT;....str
3f50: 75 63 74 20 44 33 44 31 30 5f 42 4f 58 20 7b 0d  uct D3D10_BOX {.
3f60: 0a 09 55 49 4e 54 20 6c 65 66 74 3b 0d 0a 09 55  ..UINT left;...U
3f70: 49 4e 54 20 74 6f 70 3b 0d 0a 09 55 49 4e 54 20  INT top;...UINT 
3f80: 66 72 6f 6e 74 3b 0d 0a 09 55 49 4e 54 20 72 69  front;...UINT ri
3f90: 67 68 74 3b 0d 0a 09 55 49 4e 54 20 62 6f 74 74  ght;...UINT bott
3fa0: 6f 6d 3b 0d 0a 09 55 49 4e 54 20 62 61 63 6b 3b  om;...UINT back;
3fb0: 0d 0a 7d 0d 0a 0d 0a 65 78 74 65 72 6e 20 28 57  ..}....extern (W
3fc0: 69 6e 64 6f 77 73 29 20 69 6e 74 65 72 66 61 63  indows) interfac
3fd0: 65 20 49 44 33 44 31 30 44 65 76 69 63 65 43 68  e ID3D10DeviceCh
3fe0: 69 6c 64 20 3a 20 49 55 6e 6b 6e 6f 77 6e 20 7b  ild : IUnknown {
3ff0: 0d 0a 09 2f 2f 65 78 74 65 72 6e 28 57 69 6e 64  ...//extern(Wind
4000: 6f 77 73 29 20 3a 0d 0a 09 76 6f 69 64 20 47 65  ows) :...void Ge
4010: 74 44 65 76 69 63 65 28 49 44 33 44 31 30 44 65  tDevice(ID3D10De
4020: 76 69 63 65 2a 20 70 70 44 65 76 69 63 65 29 3b  vice* ppDevice);
4030: 0d 0a 09 48 52 45 53 55 4c 54 20 47 65 74 50 72  ...HRESULT GetPr
4040: 69 76 61 74 65 44 61 74 61 28 52 45 46 47 55 49  ivateData(REFGUI
4050: 44 20 67 75 69 64 2c 20 55 49 4e 54 20 2a 70 44  D guid, UINT *pD
4060: 61 74 61 53 69 7a 65 2c 20 76 6f 69 64 20 2a 70  ataSize, void *p
4070: 44 61 74 61 29 3b 0d 0a 09 48 52 45 53 55 4c 54  Data);...HRESULT
4080: 20 53 65 74 50 72 69 76 61 74 65 44 61 74 61 28   SetPrivateData(
4090: 52 45 46 47 55 49 44 20 67 75 69 64 2c 20 55 49  REFGUID guid, UI
40a0: 4e 54 20 44 61 74 61 53 69 7a 65 2c 20 76 6f 69  NT DataSize, voi
40b0: 64 20 2a 70 44 61 74 61 29 3b 0d 0a 09 48 52 45  d *pData);...HRE
40c0: 53 55 4c 54 20 53 65 74 50 72 69 76 61 74 65 44  SULT SetPrivateD
40d0: 61 74 61 49 6e 74 65 72 66 61 63 65 28 52 45 46  ataInterface(REF
40e0: 47 55 49 44 20 67 75 69 64 2c 20 49 55 6e 6b 6e  GUID guid, IUnkn
40f0: 6f 77 6e 20 70 44 61 74 61 29 3b 0d 0a 7d 0d 0a  own pData);..}..
4100: 0d 0a 65 6e 75 6d 20 44 33 44 31 30 5f 43 4f 4d  ..enum D3D10_COM
4110: 50 41 52 49 53 4f 4e 5f 46 55 4e 43 20 7b 0d 0a  PARISON_FUNC {..
4120: 09 44 33 44 31 30 5f 43 4f 4d 50 41 52 49 53 4f  .D3D10_COMPARISO
4130: 4e 5f 4e 45 56 45 52 20 3d 20 31 2c 0d 0a 09 44  N_NEVER = 1,...D
4140: 33 44 31 30 5f 43 4f 4d 50 41 52 49 53 4f 4e 5f  3D10_COMPARISON_
4150: 4c 45 53 53 2c 0d 0a 09 44 33 44 31 30 5f 43 4f  LESS,...D3D10_CO
4160: 4d 50 41 52 49 53 4f 4e 5f 45 51 55 41 4c 2c 0d  MPARISON_EQUAL,.
4170: 0a 09 44 33 44 31 30 5f 43 4f 4d 50 41 52 49 53  ..D3D10_COMPARIS
4180: 4f 4e 5f 4c 45 53 53 5f 45 51 55 41 4c 2c 0d 0a  ON_LESS_EQUAL,..
4190: 09 44 33 44 31 30 5f 43 4f 4d 50 41 52 49 53 4f  .D3D10_COMPARISO
41a0: 4e 5f 47 52 45 41 54 45 52 2c 0d 0a 09 44 33 44  N_GREATER,...D3D
41b0: 31 30 5f 43 4f 4d 50 41 52 49 53 4f 4e 5f 4e 4f  10_COMPARISON_NO
41c0: 54 5f 45 51 55 41 4c 2c 0d 0a 09 44 33 44 31 30  T_EQUAL,...D3D10
41d0: 5f 43 4f 4d 50 41 52 49 53 4f 4e 5f 47 52 45 41  _COMPARISON_GREA
41e0: 54 45 52 5f 45 51 55 41 4c 2c 0d 0a 09 44 33 44  TER_EQUAL,...D3D
41f0: 31 30 5f 43 4f 4d 50 41 52 49 53 4f 4e 5f 41 4c  10_COMPARISON_AL
4200: 57 41 59 53 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d 20  WAYS..}....enum 
4210: 44 33 44 31 30 5f 44 45 50 54 48 5f 57 52 49 54  D3D10_DEPTH_WRIT
4220: 45 5f 4d 41 53 4b 20 7b 0d 0a 09 44 33 44 31 30  E_MASK {...D3D10
4230: 5f 44 45 50 54 48 5f 57 52 49 54 45 5f 4d 41 53  _DEPTH_WRITE_MAS
4240: 4b 5f 5a 45 52 4f 09 3d 20 30 2c 0d 0a 09 44 33  K_ZERO.= 0,...D3
4250: 44 31 30 5f 44 45 50 54 48 5f 57 52 49 54 45 5f  D10_DEPTH_WRITE_
4260: 4d 41 53 4b 5f 41 4c 4c 0d 0a 7d 0d 0a 0d 0a 65  MASK_ALL..}....e
4270: 6e 75 6d 20 44 33 44 31 30 5f 53 54 45 4e 43 49  num D3D10_STENCI
4280: 4c 5f 4f 50 20 7b 0d 0a 09 44 33 44 31 30 5f 53  L_OP {...D3D10_S
4290: 54 45 4e 43 49 4c 5f 4f 50 5f 4b 45 45 50 20 3d  TENCIL_OP_KEEP =
42a0: 20 31 2c 0d 0a 09 44 33 44 31 30 5f 53 54 45 4e   1,...D3D10_STEN
42b0: 43 49 4c 5f 4f 50 5f 5a 45 52 4f 2c 0d 0a 09 44  CIL_OP_ZERO,...D
42c0: 33 44 31 30 5f 53 54 45 4e 43 49 4c 5f 4f 50 5f  3D10_STENCIL_OP_
42d0: 52 45 50 4c 41 43 45 2c 0d 0a 09 44 33 44 31 30  REPLACE,...D3D10
42e0: 5f 53 54 45 4e 43 49 4c 5f 4f 50 5f 49 4e 43 52  _STENCIL_OP_INCR
42f0: 5f 53 41 54 2c 0d 0a 09 44 33 44 31 30 5f 53 54  _SAT,...D3D10_ST
4300: 45 4e 43 49 4c 5f 4f 50 5f 44 45 43 52 5f 53 41  ENCIL_OP_DECR_SA
4310: 54 2c 0d 0a 09 44 33 44 31 30 5f 53 54 45 4e 43  T,...D3D10_STENC
4320: 49 4c 5f 4f 50 5f 49 4e 56 45 52 54 2c 0d 0a 09  IL_OP_INVERT,...
4330: 44 33 44 31 30 5f 53 54 45 4e 43 49 4c 5f 4f 50  D3D10_STENCIL_OP
4340: 5f 49 4e 43 52 2c 0d 0a 09 44 33 44 31 30 5f 53  _INCR,...D3D10_S
4350: 54 45 4e 43 49 4c 5f 4f 50 5f 44 45 43 52 0d 0a  TENCIL_OP_DECR..
4360: 7d 0d 0a 0d 0a 73 74 72 75 63 74 20 44 33 44 31  }....struct D3D1
4370: 30 5f 44 45 50 54 48 5f 53 54 45 4e 43 49 4c 4f  0_DEPTH_STENCILO
4380: 50 5f 44 45 53 43 20 7b 0d 0a 09 44 33 44 31 30  P_DESC {...D3D10
4390: 5f 53 54 45 4e 43 49 4c 5f 4f 50 20 53 74 65 6e  _STENCIL_OP Sten
43a0: 63 69 6c 46 61 69 6c 4f 70 3b 0d 0a 09 44 33 44  cilFailOp;...D3D
43b0: 31 30 5f 53 54 45 4e 43 49 4c 5f 4f 50 20 53 74  10_STENCIL_OP St
43c0: 65 6e 63 69 6c 44 65 70 74 68 46 61 69 6c 4f 70  encilDepthFailOp
43d0: 3b 0d 0a 09 44 33 44 31 30 5f 53 54 45 4e 43 49  ;...D3D10_STENCI
43e0: 4c 5f 4f 50 20 53 74 65 6e 63 69 6c 50 61 73 73  L_OP StencilPass
43f0: 4f 70 3b 0d 0a 09 44 33 44 31 30 5f 43 4f 4d 50  Op;...D3D10_COMP
4400: 41 52 49 53 4f 4e 5f 46 55 4e 43 20 53 74 65 6e  ARISON_FUNC Sten
4410: 63 69 6c 46 75 6e 63 3b 0d 0a 7d 0d 0a 0d 0a 73  cilFunc;..}....s
4420: 74 72 75 63 74 20 44 33 44 31 30 5f 44 45 50 54  truct D3D10_DEPT
4430: 48 5f 53 54 45 4e 43 49 4c 5f 44 45 53 43 20 7b  H_STENCIL_DESC {
4440: 0d 0a 09 42 4f 4f 4c 20 44 65 70 74 68 45 6e 61  ...BOOL DepthEna
4450: 62 6c 65 3b 0d 0a 09 44 33 44 31 30 5f 44 45 50  ble;...D3D10_DEP
4460: 54 48 5f 57 52 49 54 45 5f 4d 41 53 4b 20 44 65  TH_WRITE_MASK De
4470: 70 74 68 57 72 69 74 65 4d 61 73 6b 3b 0d 0a 09  pthWriteMask;...
4480: 44 33 44 31 30 5f 43 4f 4d 50 41 52 49 53 4f 4e  D3D10_COMPARISON
4490: 5f 46 55 4e 43 20 44 65 70 74 68 46 75 6e 63 3b  _FUNC DepthFunc;
44a0: 0d 0a 09 42 4f 4f 4c 20 53 74 65 6e 63 69 6c 45  ...BOOL StencilE
44b0: 6e 61 62 6c 65 3b 0d 0a 09 55 49 4e 54 38 20 53  nable;...UINT8 S
44c0: 74 65 6e 63 69 6c 52 65 61 64 4d 61 73 6b 3b 0d  tencilReadMask;.
44d0: 0a 09 55 49 4e 54 38 20 53 74 65 6e 63 69 6c 57  ..UINT8 StencilW
44e0: 72 69 74 65 4d 61 73 6b 3b 0d 0a 09 44 33 44 31  riteMask;...D3D1
44f0: 30 5f 44 45 50 54 48 5f 53 54 45 4e 43 49 4c 4f  0_DEPTH_STENCILO
4500: 50 5f 44 45 53 43 20 46 72 6f 6e 74 46 61 63 65  P_DESC FrontFace
4510: 3b 0d 0a 09 44 33 44 31 30 5f 44 45 50 54 48 5f  ;...D3D10_DEPTH_
4520: 53 54 45 4e 43 49 4c 4f 50 5f 44 45 53 43 20 42  STENCILOP_DESC B
4530: 61 63 6b 46 61 63 65 3b 0d 0a 7d 0d 0a 0d 0a 69  ackFace;..}....i
4540: 6e 74 65 72 66 61 63 65 20 49 44 33 44 31 30 44  nterface ID3D10D
4550: 65 70 74 68 53 74 65 6e 63 69 6c 53 74 61 74 65  epthStencilState
4560: 20 3a 20 49 44 33 44 31 30 44 65 76 69 63 65 43   : ID3D10DeviceC
4570: 68 69 6c 64 20 7b 0d 0a 09 65 78 74 65 72 6e 28  hild {...extern(
4580: 57 69 6e 64 6f 77 73 29 20 3a 0d 0a 09 76 6f 69  Windows) :...voi
4590: 64 20 47 65 74 44 65 73 63 28 44 33 44 31 30 5f  d GetDesc(D3D10_
45a0: 44 45 50 54 48 5f 53 54 45 4e 43 49 4c 5f 44 45  DEPTH_STENCIL_DE
45b0: 53 43 20 2a 70 44 65 73 63 29 3b 0d 0a 7d 0d 0a  SC *pDesc);..}..
45c0: 0d 0a 65 6e 75 6d 20 44 33 44 31 30 5f 42 4c 45  ..enum D3D10_BLE
45d0: 4e 44 20 7b 0d 0a 09 44 33 44 31 30 5f 42 4c 45  ND {...D3D10_BLE
45e0: 4e 44 5f 5a 45 52 4f 09 09 09 3d 20 31 2c 0d 0a  ND_ZERO...= 1,..
45f0: 09 44 33 44 31 30 5f 42 4c 45 4e 44 5f 4f 4e 45  .D3D10_BLEND_ONE
4600: 09 09 09 09 3d 20 32 2c 0d 0a 09 44 33 44 31 30  ....= 2,...D3D10
4610: 5f 42 4c 45 4e 44 5f 53 52 43 5f 43 4f 4c 4f 52  _BLEND_SRC_COLOR
4620: 09 09 3d 20 33 2c 0d 0a 09 44 33 44 31 30 5f 42  ..= 3,...D3D10_B
4630: 4c 45 4e 44 5f 49 4e 56 5f 53 52 43 5f 43 4f 4c  LEND_INV_SRC_COL
4640: 4f 52 09 3d 20 34 2c 0d 0a 09 44 33 44 31 30 5f  OR.= 4,...D3D10_
4650: 42 4c 45 4e 44 5f 53 52 43 5f 41 4c 50 48 41 09  BLEND_SRC_ALPHA.
4660: 09 3d 20 35 2c 0d 0a 09 44 33 44 31 30 5f 42 4c  .= 5,...D3D10_BL
4670: 45 4e 44 5f 49 4e 56 5f 53 52 43 5f 41 4c 50 48  END_INV_SRC_ALPH
4680: 41 09 3d 20 36 2c 0d 0a 09 44 33 44 31 30 5f 42  A.= 6,...D3D10_B
4690: 4c 45 4e 44 5f 44 45 53 54 5f 41 4c 50 48 41 09  LEND_DEST_ALPHA.
46a0: 09 3d 20 37 2c 0d 0a 09 44 33 44 31 30 5f 42 4c  .= 7,...D3D10_BL
46b0: 45 4e 44 5f 49 4e 56 5f 44 45 53 54 5f 41 4c 50  END_INV_DEST_ALP
46c0: 48 41 09 3d 20 38 2c 0d 0a 09 44 33 44 31 30 5f  HA.= 8,...D3D10_
46d0: 42 4c 45 4e 44 5f 44 45 53 54 5f 43 4f 4c 4f 52  BLEND_DEST_COLOR
46e0: 09 09 3d 20 39 2c 0d 0a 09 44 33 44 31 30 5f 42  ..= 9,...D3D10_B
46f0: 4c 45 4e 44 5f 49 4e 56 5f 44 45 53 54 5f 43 4f  LEND_INV_DEST_CO
4700: 4c 4f 52 09 3d 20 31 30 2c 0d 0a 09 44 33 44 31  LOR.= 10,...D3D1
4710: 30 5f 42 4c 45 4e 44 5f 53 52 43 5f 41 4c 50 48  0_BLEND_SRC_ALPH
4720: 41 5f 53 41 54 09 3d 20 31 31 2c 0d 0a 09 44 33  A_SAT.= 11,...D3
4730: 44 31 30 5f 42 4c 45 4e 44 5f 42 4c 45 4e 44 5f  D10_BLEND_BLEND_
4740: 46 41 43 54 4f 52 09 3d 20 31 34 2c 0d 0a 09 44  FACTOR.= 14,...D
4750: 33 44 31 30 5f 42 4c 45 4e 44 5f 49 4e 56 5f 42  3D10_BLEND_INV_B
4760: 4c 45 4e 44 5f 46 41 43 54 4f 52 09 3d 20 31 35  LEND_FACTOR.= 15
4770: 2c 0d 0a 09 44 33 44 31 30 5f 42 4c 45 4e 44 5f  ,...D3D10_BLEND_
4780: 53 52 43 31 5f 43 4f 4c 4f 52 09 09 3d 20 31 36  SRC1_COLOR..= 16
4790: 2c 0d 0a 09 44 33 44 31 30 5f 42 4c 45 4e 44 5f  ,...D3D10_BLEND_
47a0: 49 4e 56 5f 53 52 43 31 5f 43 4f 4c 4f 52 09 3d  INV_SRC1_COLOR.=
47b0: 20 31 37 2c 0d 0a 09 44 33 44 31 30 5f 42 4c 45   17,...D3D10_BLE
47c0: 4e 44 5f 53 52 43 31 5f 41 4c 50 48 41 09 09 3d  ND_SRC1_ALPHA..=
47d0: 20 31 38 2c 0d 0a 09 44 33 44 31 30 5f 42 4c 45   18,...D3D10_BLE
47e0: 4e 44 5f 49 4e 56 5f 53 52 43 31 5f 41 4c 50 48  ND_INV_SRC1_ALPH
47f0: 41 09 3d 20 31 39 0d 0a 7d 0d 0a 0d 0a 65 6e 75  A.= 19..}....enu
4800: 6d 20 44 33 44 31 30 5f 42 4c 45 4e 44 5f 4f 50  m D3D10_BLEND_OP
4810: 20 7b 0d 0a 09 44 33 44 31 30 5f 42 4c 45 4e 44   {...D3D10_BLEND
4820: 5f 4f 50 5f 41 44 44 20 3d 20 31 2c 0d 0a 09 44  _OP_ADD = 1,...D
4830: 33 44 31 30 5f 42 4c 45 4e 44 5f 4f 50 5f 53 55  3D10_BLEND_OP_SU
4840: 42 54 52 41 43 54 2c 0d 0a 09 44 33 44 31 30 5f  BTRACT,...D3D10_
4850: 42 4c 45 4e 44 5f 4f 50 5f 52 45 56 5f 53 55 42  BLEND_OP_REV_SUB
4860: 54 52 41 43 54 2c 0d 0a 09 44 33 44 31 30 5f 42  TRACT,...D3D10_B
4870: 4c 45 4e 44 5f 4f 50 5f 4d 49 4e 2c 0d 0a 09 44  LEND_OP_MIN,...D
4880: 33 44 31 30 5f 42 4c 45 4e 44 5f 4f 50 5f 4d 41  3D10_BLEND_OP_MA
4890: 58 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d 20 44 33 44  X..}....enum D3D
48a0: 31 30 5f 43 4f 4c 4f 52 5f 57 52 49 54 45 5f 45  10_COLOR_WRITE_E
48b0: 4e 41 42 4c 45 20 7b 0d 0a 09 44 33 44 31 30 5f  NABLE {...D3D10_
48c0: 43 4f 4c 4f 52 5f 57 52 49 54 45 5f 45 4e 41 42  COLOR_WRITE_ENAB
48d0: 4c 45 5f 52 45 44 09 3d 20 31 2c 0d 0a 09 44 33  LE_RED.= 1,...D3
48e0: 44 31 30 5f 43 4f 4c 4f 52 5f 57 52 49 54 45 5f  D10_COLOR_WRITE_
48f0: 45 4e 41 42 4c 45 5f 47 52 45 45 4e 09 3d 20 32  ENABLE_GREEN.= 2
4900: 2c 0d 0a 09 44 33 44 31 30 5f 43 4f 4c 4f 52 5f  ,...D3D10_COLOR_
4910: 57 52 49 54 45 5f 45 4e 41 42 4c 45 5f 42 4c 55  WRITE_ENABLE_BLU
4920: 45 09 3d 20 34 2c 0d 0a 09 44 33 44 31 30 5f 43  E.= 4,...D3D10_C
4930: 4f 4c 4f 52 5f 57 52 49 54 45 5f 45 4e 41 42 4c  OLOR_WRITE_ENABL
4940: 45 5f 41 4c 50 48 41 09 3d 20 38 2c 0d 0a 09 44  E_ALPHA.= 8,...D
4950: 33 44 31 30 5f 43 4f 4c 4f 52 5f 57 52 49 54 45  3D10_COLOR_WRITE
4960: 5f 45 4e 41 42 4c 45 5f 41 4c 4c 09 3d 20 28 28  _ENABLE_ALL.= ((
4970: 28 44 33 44 31 30 5f 43 4f 4c 4f 52 5f 57 52 49  (D3D10_COLOR_WRI
4980: 54 45 5f 45 4e 41 42 4c 45 5f 52 45 44 20 7c 20  TE_ENABLE_RED | 
4990: 44 33 44 31 30 5f 43 4f 4c 4f 52 5f 57 52 49 54  D3D10_COLOR_WRIT
49a0: 45 5f 45 4e 41 42 4c 45 5f 47 52 45 45 4e 29 20  E_ENABLE_GREEN) 
49b0: 7c 20 44 33 44 31 30 5f 43 4f 4c 4f 52 5f 57 52  | D3D10_COLOR_WR
49c0: 49 54 45 5f 45 4e 41 42 4c 45 5f 42 4c 55 45 29  ITE_ENABLE_BLUE)
49d0: 20 20 7c 20 44 33 44 31 30 5f 43 4f 4c 4f 52 5f    | D3D10_COLOR_
49e0: 57 52 49 54 45 5f 45 4e 41 42 4c 45 5f 41 4c 50  WRITE_ENABLE_ALP
49f0: 48 41 29 0d 0a 7d 0d 0a 0d 0a 73 74 72 75 63 74  HA)..}....struct
4a00: 20 44 33 44 31 30 5f 42 4c 45 4e 44 5f 44 45 53   D3D10_BLEND_DES
4a10: 43 20 7b 0d 0a 09 42 4f 4f 4c 20 41 6c 70 68 61  C {...BOOL Alpha
4a20: 54 6f 43 6f 76 65 72 61 67 65 45 6e 61 62 6c 65  ToCoverageEnable
4a30: 3b 0d 0a 09 42 4f 4f 4c 5b 38 5d 20 42 6c 65 6e  ;...BOOL[8] Blen
4a40: 64 45 6e 61 62 6c 65 3b 0d 0a 09 44 33 44 31 30  dEnable;...D3D10
4a50: 5f 42 4c 45 4e 44 20 53 72 63 42 6c 65 6e 64 3b  _BLEND SrcBlend;
4a60: 0d 0a 09 44 33 44 31 30 5f 42 4c 45 4e 44 20 44  ...D3D10_BLEND D
4a70: 65 73 74 42 6c 65 6e 64 3b 0d 0a 09 44 33 44 31  estBlend;...D3D1
4a80: 30 5f 42 4c 45 4e 44 5f 4f 50 20 42 6c 65 6e 64  0_BLEND_OP Blend
4a90: 4f 70 3b 0d 0a 09 44 33 44 31 30 5f 42 4c 45 4e  Op;...D3D10_BLEN
4aa0: 44 20 53 72 63 42 6c 65 6e 64 41 6c 70 68 61 3b  D SrcBlendAlpha;
4ab0: 0d 0a 09 44 33 44 31 30 5f 42 4c 45 4e 44 20 44  ...D3D10_BLEND D
4ac0: 65 73 74 42 6c 65 6e 64 41 6c 70 68 61 3b 0d 0a  estBlendAlpha;..
4ad0: 09 44 33 44 31 30 5f 42 4c 45 4e 44 5f 4f 50 20  .D3D10_BLEND_OP 
4ae0: 42 6c 65 6e 64 4f 70 41 6c 70 68 61 3b 0d 0a 09  BlendOpAlpha;...
4af0: 55 49 4e 54 38 5b 38 5d 20 52 65 6e 64 65 72 54  UINT8[8] RenderT
4b00: 61 72 67 65 74 57 72 69 74 65 4d 61 73 6b 3b 0d  argetWriteMask;.
4b10: 0a 7d 0d 0a 0d 0a 69 6e 74 65 72 66 61 63 65 20  .}....interface 
4b20: 49 44 33 44 31 30 42 6c 65 6e 64 53 74 61 74 65  ID3D10BlendState
4b30: 20 3a 20 49 44 33 44 31 30 44 65 76 69 63 65 43   : ID3D10DeviceC
4b40: 68 69 6c 64 20 7b 0d 0a 09 65 78 74 65 72 6e 28  hild {...extern(
4b50: 57 69 6e 64 6f 77 73 29 20 3a 0d 0a 09 76 6f 69  Windows) :...voi
4b60: 64 20 47 65 74 44 65 73 63 28 44 33 44 31 30 5f  d GetDesc(D3D10_
4b70: 42 4c 45 4e 44 5f 44 45 53 43 20 2a 70 44 65 73  BLEND_DESC *pDes
4b80: 63 29 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72 75 63 74  c);..}....struct
4b90: 20 44 33 44 31 30 5f 52 41 53 54 45 52 49 5a 45   D3D10_RASTERIZE
4ba0: 52 5f 44 45 53 43 20 7b 0d 0a 09 44 33 44 31 30  R_DESC {...D3D10
4bb0: 5f 46 49 4c 4c 5f 4d 4f 44 45 20 46 69 6c 6c 4d  _FILL_MODE FillM
4bc0: 6f 64 65 3b 0d 0a 09 44 33 44 31 30 5f 43 55 4c  ode;...D3D10_CUL
4bd0: 4c 5f 4d 4f 44 45 20 43 75 6c 6c 4d 6f 64 65 3b  L_MODE CullMode;
4be0: 0d 0a 09 42 4f 4f 4c 20 46 72 6f 6e 74 43 6f 75  ...BOOL FrontCou
4bf0: 6e 74 65 72 43 6c 6f 63 6b 77 69 73 65 3b 0d 0a  nterClockwise;..
4c00: 09 49 4e 54 20 44 65 70 74 68 42 69 61 73 3b 0d  .INT DepthBias;.
4c10: 0a 09 46 4c 4f 41 54 20 44 65 70 74 68 42 69 61  ..FLOAT DepthBia
4c20: 73 43 6c 61 6d 70 3b 0d 0a 09 46 4c 4f 41 54 20  sClamp;...FLOAT 
4c30: 53 6c 6f 70 65 53 63 61 6c 65 64 44 65 70 74 68  SlopeScaledDepth
4c40: 42 69 61 73 3b 0d 0a 09 42 4f 4f 4c 20 44 65 70  Bias;...BOOL Dep
4c50: 74 68 43 6c 69 70 45 6e 61 62 6c 65 3b 0d 0a 09  thClipEnable;...
4c60: 42 4f 4f 4c 20 53 63 69 73 73 6f 72 45 6e 61 62  BOOL ScissorEnab
4c70: 6c 65 3b 0d 0a 09 42 4f 4f 4c 20 4d 75 6c 74 69  le;...BOOL Multi
4c80: 73 61 6d 70 6c 65 45 6e 61 62 6c 65 3b 0d 0a 09  sampleEnable;...
4c90: 42 4f 4f 4c 20 41 6e 74 69 61 6c 69 61 73 65 64  BOOL Antialiased
4ca0: 4c 69 6e 65 45 6e 61 62 6c 65 3b 0d 0a 7d 0d 0a  LineEnable;..}..
4cb0: 0d 0a 69 6e 74 65 72 66 61 63 65 20 49 44 33 44  ..interface ID3D
4cc0: 31 30 52 61 73 74 65 72 69 7a 65 72 53 74 61 74  10RasterizerStat
4cd0: 65 20 3a 20 49 44 33 44 31 30 44 65 76 69 63 65  e : ID3D10Device
4ce0: 43 68 69 6c 64 20 7b 0d 0a 09 65 78 74 65 72 6e  Child {...extern
4cf0: 28 57 69 6e 64 6f 77 73 29 20 3a 0d 0a 09 76 6f  (Windows) :...vo
4d00: 69 64 20 47 65 74 44 65 73 63 28 44 33 44 31 30  id GetDesc(D3D10
4d10: 5f 52 41 53 54 45 52 49 5a 45 52 5f 44 45 53 43  _RASTERIZER_DESC
4d20: 20 2a 70 44 65 73 63 29 3b 0d 0a 7d 0d 0a 0d 0a   *pDesc);..}....
4d30: 55 49 4e 54 20 44 33 44 31 30 43 61 6c 63 53 75  UINT D3D10CalcSu
4d40: 62 72 65 73 6f 75 72 63 65 28 55 49 4e 54 20 4d  bresource(UINT M
4d50: 69 70 53 6c 69 63 65 2c 20 55 49 4e 54 20 41 72  ipSlice, UINT Ar
4d60: 72 61 79 53 6c 69 63 65 2c 20 55 49 4e 54 20 4d  raySlice, UINT M
4d70: 69 70 4c 65 76 65 6c 73 29 20 7b 0d 0a 09 72 65  ipLevels) {...re
4d80: 74 75 72 6e 20 4d 69 70 53 6c 69 63 65 20 2b 20  turn MipSlice + 
4d90: 41 72 72 61 79 53 6c 69 63 65 20 2a 20 4d 69 70  ArraySlice * Mip
4da0: 4c 65 76 65 6c 73 3b 0d 0a 7d 0d 0a 0d 0a 73 74  Levels;..}....st
4db0: 72 75 63 74 20 44 33 44 31 30 5f 53 55 42 52 45  ruct D3D10_SUBRE
4dc0: 53 4f 55 52 43 45 5f 44 41 54 41 20 7b 0d 0a 09  SOURCE_DATA {...
4dd0: 76 6f 69 64 20 2a 70 53 79 73 4d 65 6d 3b 0d 0a  void *pSysMem;..
4de0: 09 55 49 4e 54 20 53 79 73 4d 65 6d 50 69 74 63  .UINT SysMemPitc
4df0: 68 3b 0d 0a 09 55 49 4e 54 20 53 79 73 4d 65 6d  h;...UINT SysMem
4e00: 53 6c 69 63 65 50 69 74 63 68 3b 0d 0a 7d 0d 0a  SlicePitch;..}..
4e10: 0d 0a 69 6e 74 65 72 66 61 63 65 20 49 44 33 44  ..interface ID3D
4e20: 31 30 52 65 73 6f 75 72 63 65 20 3a 20 49 44 33  10Resource : ID3
4e30: 44 31 30 44 65 76 69 63 65 43 68 69 6c 64 20 7b  D10DeviceChild {
4e40: 0d 0a 09 65 78 74 65 72 6e 28 57 69 6e 64 6f 77  ...extern(Window
4e50: 73 29 20 3a 0d 0a 09 76 6f 69 64 20 47 65 74 54  s) :...void GetT
4e60: 79 70 65 28 44 33 44 31 30 5f 52 45 53 4f 55 52  ype(D3D10_RESOUR
4e70: 43 45 5f 44 49 4d 45 4e 53 49 4f 4e 20 2a 72 54  CE_DIMENSION *rT
4e80: 79 70 65 29 3b 0d 0a 09 76 6f 69 64 20 53 65 74  ype);...void Set
4e90: 45 76 69 63 74 69 6f 6e 50 72 69 6f 72 69 74 79  EvictionPriority
4ea0: 28 55 49 4e 54 20 45 76 69 63 74 69 6f 6e 50 72  (UINT EvictionPr
4eb0: 69 6f 72 69 74 79 29 3b 0d 0a 09 55 49 4e 54 20  iority);...UINT 
4ec0: 47 65 74 45 76 69 63 74 69 6f 6e 50 72 69 6f 72  GetEvictionPrior
4ed0: 69 74 79 28 29 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72  ity();..}....str
4ee0: 75 63 74 20 44 33 44 31 30 5f 42 55 46 46 45 52  uct D3D10_BUFFER
4ef0: 5f 44 45 53 43 20 7b 0d 0a 09 55 49 4e 54 20 42  _DESC {...UINT B
4f00: 79 74 65 57 69 64 74 68 3b 0d 0a 09 44 33 44 31  yteWidth;...D3D1
4f10: 30 5f 55 53 41 47 45 20 55 73 61 67 65 3b 0d 0a  0_USAGE Usage;..
4f20: 09 55 49 4e 54 20 42 69 6e 64 46 6c 61 67 73 3b  .UINT BindFlags;
4f30: 0d 0a 09 55 49 4e 54 20 43 50 55 41 63 63 65 73  ...UINT CPUAcces
4f40: 73 46 6c 61 67 73 3b 0d 0a 09 55 49 4e 54 20 4d  sFlags;...UINT M
4f50: 69 73 63 46 6c 61 67 73 3b 0d 0a 7d 0d 0a 0d 0a  iscFlags;..}....
4f60: 69 6e 74 65 72 66 61 63 65 20 49 44 33 44 31 30  interface ID3D10
4f70: 42 75 66 66 65 72 20 3a 20 49 44 33 44 31 30 52  Buffer : ID3D10R
4f80: 65 73 6f 75 72 63 65 20 7b 0d 0a 09 65 78 74 65  esource {...exte
4f90: 72 6e 28 57 69 6e 64 6f 77 73 29 20 3a 0d 0a 09  rn(Windows) :...
4fa0: 48 52 45 53 55 4c 54 20 4d 61 70 28 44 33 44 31  HRESULT Map(D3D1
4fb0: 30 5f 4d 41 50 20 4d 61 70 54 79 70 65 2c 20 55  0_MAP MapType, U
4fc0: 49 4e 54 20 4d 61 70 46 6c 61 67 73 2c 20 76 6f  INT MapFlags, vo
4fd0: 69 64 20 2a 2a 70 70 44 61 74 61 29 3b 0d 0a 09  id **ppData);...
4fe0: 76 6f 69 64 20 55 6e 6d 61 70 28 29 3b 0d 0a 09  void Unmap();...
4ff0: 76 6f 69 64 20 47 65 74 44 65 73 63 28 44 33 44  void GetDesc(D3D
5000: 31 30 5f 42 55 46 46 45 52 5f 44 45 53 43 20 2a  10_BUFFER_DESC *
5010: 70 44 65 73 63 29 3b 0d 0a 7d 0d 0a 0d 0a 73 74  pDesc);..}....st
5020: 72 75 63 74 20 44 33 44 31 30 5f 54 45 58 54 55  ruct D3D10_TEXTU
5030: 52 45 31 44 5f 44 45 53 43 20 7b 0d 0a 09 55 49  RE1D_DESC {...UI
5040: 4e 54 20 57 69 64 74 68 3b 0d 0a 09 55 49 4e 54  NT Width;...UINT
5050: 20 4d 69 70 4c 65 76 65 6c 73 3b 0d 0a 09 55 49   MipLevels;...UI
5060: 4e 54 20 41 72 72 61 79 53 69 7a 65 3b 0d 0a 09  NT ArraySize;...
5070: 44 58 47 49 5f 46 4f 52 4d 41 54 20 46 6f 72 6d  DXGI_FORMAT Form
5080: 61 74 3b 0d 0a 09 44 33 44 31 30 5f 55 53 41 47  at;...D3D10_USAG
5090: 45 20 55 73 61 67 65 3b 0d 0a 09 55 49 4e 54 20  E Usage;...UINT 
50a0: 42 69 6e 64 46 6c 61 67 73 3b 0d 0a 09 55 49 4e  BindFlags;...UIN
50b0: 54 20 43 50 55 41 63 63 65 73 73 46 6c 61 67 73  T CPUAccessFlags
50c0: 3b 0d 0a 09 55 49 4e 54 20 4d 69 73 63 46 6c 61  ;...UINT MiscFla
50d0: 67 73 3b 0d 0a 7d 0d 0a 0d 0a 69 6e 74 65 72 66  gs;..}....interf
50e0: 61 63 65 20 49 44 33 44 31 30 54 65 78 74 75 72  ace ID3D10Textur
50f0: 65 31 44 20 3a 20 49 44 33 44 31 30 52 65 73 6f  e1D : ID3D10Reso
5100: 75 72 63 65 20 7b 0d 0a 09 65 78 74 65 72 6e 28  urce {...extern(
5110: 57 69 6e 64 6f 77 73 29 20 3a 0d 0a 09 48 52 45  Windows) :...HRE
5120: 53 55 4c 54 20 4d 61 70 28 55 49 4e 54 20 53 75  SULT Map(UINT Su
5130: 62 72 65 73 6f 75 72 63 65 2c 20 44 33 44 31 30  bresource, D3D10
5140: 5f 4d 41 50 20 4d 61 70 54 79 70 65 2c 20 55 49  _MAP MapType, UI
5150: 4e 54 20 4d 61 70 46 6c 61 67 73 2c 20 76 6f 69  NT MapFlags, voi
5160: 64 20 2a 2a 70 70 44 61 74 61 29 3b 0d 0a 09 76  d **ppData);...v
5170: 6f 69 64 20 55 6e 6d 61 70 28 55 49 4e 54 20 53  oid Unmap(UINT S
5180: 75 62 72 65 73 6f 75 72 63 65 29 3b 0d 0a 09 76  ubresource);...v
5190: 6f 69 64 20 47 65 74 44 65 73 63 28 44 33 44 31  oid GetDesc(D3D1
51a0: 30 5f 54 45 58 54 55 52 45 31 44 5f 44 45 53 43  0_TEXTURE1D_DESC
51b0: 20 2a 70 44 65 73 63 29 3b 0d 0a 7d 0d 0a 0d 0a   *pDesc);..}....
51c0: 73 74 72 75 63 74 20 44 33 44 31 30 5f 54 45 58  struct D3D10_TEX
51d0: 54 55 52 45 32 44 5f 44 45 53 43 20 7b 0d 0a 09  TURE2D_DESC {...
51e0: 55 49 4e 54 20 57 69 64 74 68 3b 0d 0a 09 55 49  UINT Width;...UI
51f0: 4e 54 20 48 65 69 67 68 74 3b 0d 0a 09 55 49 4e  NT Height;...UIN
5200: 54 20 4d 69 70 4c 65 76 65 6c 73 3b 0d 0a 09 55  T MipLevels;...U
5210: 49 4e 54 20 41 72 72 61 79 53 69 7a 65 3b 0d 0a  INT ArraySize;..
5220: 09 44 58 47 49 5f 46 4f 52 4d 41 54 20 46 6f 72  .DXGI_FORMAT For
5230: 6d 61 74 3b 0d 0a 09 44 58 47 49 5f 53 41 4d 50  mat;...DXGI_SAMP
5240: 4c 45 5f 44 45 53 43 20 53 61 6d 70 6c 65 44 65  LE_DESC SampleDe
5250: 73 63 3b 0d 0a 09 44 33 44 31 30 5f 55 53 41 47  sc;...D3D10_USAG
5260: 45 20 55 73 61 67 65 3b 0d 0a 09 55 49 4e 54 20  E Usage;...UINT 
5270: 42 69 6e 64 46 6c 61 67 73 3b 0d 0a 09 55 49 4e  BindFlags;...UIN
5280: 54 20 43 50 55 41 63 63 65 73 73 46 6c 61 67 73  T CPUAccessFlags
5290: 3b 0d 0a 09 55 49 4e 54 20 4d 69 73 63 46 6c 61  ;...UINT MiscFla
52a0: 67 73 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72 75 63 74  gs;..}....struct
52b0: 20 44 33 44 31 30 5f 4d 41 50 50 45 44 5f 54 45   D3D10_MAPPED_TE
52c0: 58 54 55 52 45 32 44 20 7b 0d 0a 09 76 6f 69 64  XTURE2D {...void
52d0: 20 2a 70 44 61 74 61 3b 0d 0a 09 55 49 4e 54 20   *pData;...UINT 
52e0: 52 6f 77 50 69 74 63 68 3b 0d 0a 7d 0d 0a 0d 0a  RowPitch;..}....
52f0: 69 6e 74 65 72 66 61 63 65 20 49 44 33 44 31 30  interface ID3D10
5300: 54 65 78 74 75 72 65 32 44 20 3a 20 49 44 33 44  Texture2D : ID3D
5310: 31 30 52 65 73 6f 75 72 63 65 20 7b 0d 0a 09 65  10Resource {...e
5320: 78 74 65 72 6e 28 57 69 6e 64 6f 77 73 29 20 3a  xtern(Windows) :
5330: 0d 0a 09 48 52 45 53 55 4c 54 20 4d 61 70 28 55  ...HRESULT Map(U
5340: 49 4e 54 20 53 75 62 72 65 73 6f 75 72 63 65 2c  INT Subresource,
5350: 20 44 33 44 31 30 5f 4d 41 50 20 4d 61 70 54 79   D3D10_MAP MapTy
5360: 70 65 2c 20 55 49 4e 54 20 4d 61 70 46 6c 61 67  pe, UINT MapFlag
5370: 73 2c 20 44 33 44 31 30 5f 4d 41 50 50 45 44 5f  s, D3D10_MAPPED_
5380: 54 45 58 54 55 52 45 32 44 20 2a 70 4d 61 70 70  TEXTURE2D *pMapp
5390: 65 64 54 65 78 32 44 29 3b 0d 0a 09 76 6f 69 64  edTex2D);...void
53a0: 20 55 6e 6d 61 70 28 55 49 4e 54 20 53 75 62 72   Unmap(UINT Subr
53b0: 65 73 6f 75 72 63 65 29 3b 0d 0a 09 76 6f 69 64  esource);...void
53c0: 20 47 65 74 44 65 73 63 28 44 33 44 31 30 5f 54   GetDesc(D3D10_T
53d0: 45 58 54 55 52 45 32 44 5f 44 45 53 43 20 2a 70  EXTURE2D_DESC *p
53e0: 44 65 73 63 29 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72  Desc);..}....str
53f0: 75 63 74 20 44 33 44 31 30 5f 54 45 58 54 55 52  uct D3D10_TEXTUR
5400: 45 33 44 5f 44 45 53 43 20 7b 0d 0a 09 55 49 4e  E3D_DESC {...UIN
5410: 54 20 57 69 64 74 68 3b 0d 0a 09 55 49 4e 54 20  T Width;...UINT 
5420: 48 65 69 67 68 74 3b 0d 0a 09 55 49 4e 54 20 44  Height;...UINT D
5430: 65 70 74 68 3b 0d 0a 09 55 49 4e 54 20 4d 69 70  epth;...UINT Mip
5440: 4c 65 76 65 6c 73 3b 0d 0a 09 44 58 47 49 5f 46  Levels;...DXGI_F
5450: 4f 52 4d 41 54 20 46 6f 72 6d 61 74 3b 0d 0a 09  ORMAT Format;...
5460: 44 33 44 31 30 5f 55 53 41 47 45 20 55 73 61 67  D3D10_USAGE Usag
5470: 65 3b 0d 0a 09 55 49 4e 54 20 42 69 6e 64 46 6c  e;...UINT BindFl
5480: 61 67 73 3b 0d 0a 09 55 49 4e 54 20 43 50 55 41  ags;...UINT CPUA
5490: 63 63 65 73 73 46 6c 61 67 73 3b 0d 0a 09 55 49  ccessFlags;...UI
54a0: 4e 54 20 4d 69 73 63 46 6c 61 67 73 3b 0d 0a 7d  NT MiscFlags;..}
54b0: 0d 0a 0d 0a 73 74 72 75 63 74 20 44 33 44 31 30  ....struct D3D10
54c0: 5f 4d 41 50 50 45 44 5f 54 45 58 54 55 52 45 33  _MAPPED_TEXTURE3
54d0: 44 20 7b 0d 0a 09 76 6f 69 64 20 2a 70 44 61 74  D {...void *pDat
54e0: 61 3b 0d 0a 09 55 49 4e 54 20 52 6f 77 50 69 74  a;...UINT RowPit
54f0: 63 68 3b 0d 0a 09 55 49 4e 54 20 44 65 70 74 68  ch;...UINT Depth
5500: 50 69 74 63 68 3b 0d 0a 7d 0d 0a 0d 0a 69 6e 74  Pitch;..}....int
5510: 65 72 66 61 63 65 20 49 44 33 44 31 30 54 65 78  erface ID3D10Tex
5520: 74 75 72 65 33 44 20 3a 20 49 44 33 44 31 30 52  ture3D : ID3D10R
5530: 65 73 6f 75 72 63 65 20 7b 0d 0a 09 65 78 74 65  esource {...exte
5540: 72 6e 28 57 69 6e 64 6f 77 73 29 20 3a 0d 0a 09  rn(Windows) :...
5550: 48 52 45 53 55 4c 54 20 4d 61 70 28 55 49 4e 54  HRESULT Map(UINT
5560: 20 53 75 62 72 65 73 6f 75 72 63 65 2c 20 44 33   Subresource, D3
5570: 44 31 30 5f 4d 41 50 20 4d 61 70 54 79 70 65 2c  D10_MAP MapType,
5580: 20 55 49 4e 54 20 4d 61 70 46 6c 61 67 73 2c 20   UINT MapFlags, 
5590: 44 33 44 31 30 5f 4d 41 50 50 45 44 5f 54 45 58  D3D10_MAPPED_TEX
55a0: 54 55 52 45 33 44 20 2a 70 4d 61 70 70 65 64 54  TURE3D *pMappedT
55b0: 65 78 33 44 29 3b 0d 0a 09 76 6f 69 64 20 55 6e  ex3D);...void Un
55c0: 6d 61 70 28 55 49 4e 54 20 53 75 62 72 65 73 6f  map(UINT Subreso
55d0: 75 72 63 65 29 3b 0d 0a 09 76 6f 69 64 20 47 65  urce);...void Ge
55e0: 74 44 65 73 63 28 44 33 44 31 30 5f 54 45 58 54  tDesc(D3D10_TEXT
55f0: 55 52 45 33 44 5f 44 45 53 43 20 2a 70 44 65 73  URE3D_DESC *pDes
5600: 63 29 3b 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d 20 44  c);..}....enum D
5610: 33 44 31 30 5f 54 45 58 54 55 52 45 43 55 42 45  3D10_TEXTURECUBE
5620: 5f 46 41 43 45 20 7b 0d 0a 09 44 33 44 31 30 5f  _FACE {...D3D10_
5630: 54 45 58 54 55 52 45 43 55 42 45 5f 46 41 43 45  TEXTURECUBE_FACE
5640: 5f 50 4f 53 49 54 49 56 45 5f 58 20 3d 20 30 2c  _POSITIVE_X = 0,
5650: 0d 0a 09 44 33 44 31 30 5f 54 45 58 54 55 52 45  ...D3D10_TEXTURE
5660: 43 55 42 45 5f 46 41 43 45 5f 4e 45 47 41 54 49  CUBE_FACE_NEGATI
5670: 56 45 5f 58 2c 0d 0a 09 44 33 44 31 30 5f 54 45  VE_X,...D3D10_TE
5680: 58 54 55 52 45 43 55 42 45 5f 46 41 43 45 5f 50  XTURECUBE_FACE_P
5690: 4f 53 49 54 49 56 45 5f 59 2c 0d 0a 09 44 33 44  OSITIVE_Y,...D3D
56a0: 31 30 5f 54 45 58 54 55 52 45 43 55 42 45 5f 46  10_TEXTURECUBE_F
56b0: 41 43 45 5f 4e 45 47 41 54 49 56 45 5f 59 2c 0d  ACE_NEGATIVE_Y,.
56c0: 0a 09 44 33 44 31 30 5f 54 45 58 54 55 52 45 43  ..D3D10_TEXTUREC
56d0: 55 42 45 5f 46 41 43 45 5f 50 4f 53 49 54 49 56  UBE_FACE_POSITIV
56e0: 45 5f 5a 2c 0d 0a 09 44 33 44 31 30 5f 54 45 58  E_Z,...D3D10_TEX
56f0: 54 55 52 45 43 55 42 45 5f 46 41 43 45 5f 4e 45  TURECUBE_FACE_NE
5700: 47 41 54 49 56 45 5f 5a 0d 0a 7d 0d 0a 0d 0a 69  GATIVE_Z..}....i
5710: 6e 74 65 72 66 61 63 65 20 49 44 33 44 31 30 56  nterface ID3D10V
5720: 69 65 77 20 3a 20 49 44 33 44 31 30 44 65 76 69  iew : ID3D10Devi
5730: 63 65 43 68 69 6c 64 20 7b 0d 0a 09 65 78 74 65  ceChild {...exte
5740: 72 6e 28 57 69 6e 64 6f 77 73 29 20 3a 0d 0a 09  rn(Windows) :...
5750: 76 6f 69 64 20 47 65 74 52 65 73 6f 75 72 63 65  void GetResource
5760: 28 49 44 33 44 31 30 52 65 73 6f 75 72 63 65 20  (ID3D10Resource 
5770: 2a 70 70 52 65 73 6f 75 72 63 65 29 3b 0d 0a 7d  *ppResource);..}
5780: 0d 0a 0d 0a 73 74 72 75 63 74 20 44 33 44 31 30  ....struct D3D10
5790: 5f 42 55 46 46 45 52 5f 53 52 56 20 7b 0d 0a 09  _BUFFER_SRV {...
57a0: 55 49 4e 54 20 45 6c 65 6d 65 6e 74 4f 66 66 73  UINT ElementOffs
57b0: 65 74 3b 0d 0a 09 55 49 4e 54 20 45 6c 65 6d 65  et;...UINT Eleme
57c0: 6e 74 57 69 64 74 68 3b 0d 0a 7d 0d 0a 0d 0a 73  ntWidth;..}....s
57d0: 74 72 75 63 74 20 44 33 44 31 30 5f 54 45 58 31  truct D3D10_TEX1
57e0: 44 5f 53 52 56 20 7b 0d 0a 09 55 49 4e 54 20 4d  D_SRV {...UINT M
57f0: 6f 73 74 44 65 74 61 69 6c 65 64 4d 69 70 3b 0d  ostDetailedMip;.
5800: 0a 09 55 49 4e 54 20 4d 69 70 4c 65 76 65 6c 73  ..UINT MipLevels
5810: 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72 75 63 74 20 44  ;..}....struct D
5820: 33 44 31 30 5f 54 45 58 31 44 5f 41 52 52 41 59  3D10_TEX1D_ARRAY
5830: 5f 53 52 56 20 7b 0d 0a 09 55 49 4e 54 20 4d 6f  _SRV {...UINT Mo
5840: 73 74 44 65 74 61 69 6c 65 64 4d 69 70 3b 0d 0a  stDetailedMip;..
5850: 09 55 49 4e 54 20 4d 69 70 4c 65 76 65 6c 73 3b  .UINT MipLevels;
5860: 0d 0a 09 55 49 4e 54 20 46 69 72 73 74 41 72 72  ...UINT FirstArr
5870: 61 79 53 6c 69 63 65 3b 0d 0a 09 55 49 4e 54 20  aySlice;...UINT 
5880: 41 72 72 61 79 53 69 7a 65 3b 0d 0a 7d 0d 0a 0d  ArraySize;..}...
5890: 0a 73 74 72 75 63 74 20 44 33 44 31 30 5f 54 45  .struct D3D10_TE
58a0: 58 32 44 5f 53 52 56 20 7b 0d 0a 09 55 49 4e 54  X2D_SRV {...UINT
58b0: 20 4d 6f 73 74 44 65 74 61 69 6c 65 64 4d 69 70   MostDetailedMip
58c0: 3b 0d 0a 09 55 49 4e 54 20 4d 69 70 4c 65 76 65  ;...UINT MipLeve
58d0: 6c 73 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72 75 63 74  ls;..}....struct
58e0: 20 44 33 44 31 30 5f 54 45 58 32 44 5f 41 52 52   D3D10_TEX2D_ARR
58f0: 41 59 5f 53 52 56 20 7b 0d 0a 09 55 49 4e 54 20  AY_SRV {...UINT 
5900: 4d 6f 73 74 44 65 74 61 69 6c 65 64 4d 69 70 3b  MostDetailedMip;
5910: 0d 0a 09 55 49 4e 54 20 4d 69 70 4c 65 76 65 6c  ...UINT MipLevel
5920: 73 3b 0d 0a 09 55 49 4e 54 20 46 69 72 73 74 41  s;...UINT FirstA
5930: 72 72 61 79 53 6c 69 63 65 3b 0d 0a 09 55 49 4e  rraySlice;...UIN
5940: 54 20 41 72 72 61 79 53 69 7a 65 3b 0d 0a 7d 0d  T ArraySize;..}.
5950: 0a 0d 0a 73 74 72 75 63 74 20 44 33 44 31 30 5f  ...struct D3D10_
5960: 54 45 58 33 44 5f 53 52 56 20 7b 0d 0a 09 55 49  TEX3D_SRV {...UI
5970: 4e 54 20 4d 6f 73 74 44 65 74 61 69 6c 65 64 4d  NT MostDetailedM
5980: 69 70 3b 0d 0a 09 55 49 4e 54 20 4d 69 70 4c 65  ip;...UINT MipLe
5990: 76 65 6c 73 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72 75  vels;..}....stru
59a0: 63 74 20 44 33 44 31 30 5f 54 45 58 43 55 42 45  ct D3D10_TEXCUBE
59b0: 5f 53 52 56 20 7b 0d 0a 09 55 49 4e 54 20 4d 6f  _SRV {...UINT Mo
59c0: 73 74 44 65 74 61 69 6c 65 64 4d 69 70 3b 0d 0a  stDetailedMip;..
59d0: 09 55 49 4e 54 20 4d 69 70 4c 65 76 65 6c 73 3b  .UINT MipLevels;
59e0: 0d 0a 7d 0d 0a 0d 0a 73 74 72 75 63 74 20 44 33  ..}....struct D3
59f0: 44 31 30 5f 54 45 58 32 44 4d 53 5f 53 52 56 20  D10_TEX2DMS_SRV 
5a00: 7b 0d 0a 09 55 49 4e 54 20 55 6e 75 73 65 64 46  {...UINT UnusedF
5a10: 69 65 6c 64 5f 4e 6f 74 68 69 6e 67 54 6f 44 65  ield_NothingToDe
5a20: 66 69 6e 65 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72 75  fine;..}....stru
5a30: 63 74 20 44 33 44 31 30 5f 54 45 58 32 44 4d 53  ct D3D10_TEX2DMS
5a40: 5f 41 52 52 41 59 5f 53 52 56 20 7b 0d 0a 09 55  _ARRAY_SRV {...U
5a50: 49 4e 54 20 46 69 72 73 74 41 72 72 61 79 53 6c  INT FirstArraySl
5a60: 69 63 65 3b 0d 0a 09 55 49 4e 54 20 41 72 72 61  ice;...UINT Arra
5a70: 79 53 69 7a 65 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72  ySize;..}....str
5a80: 75 63 74 20 44 33 44 31 30 5f 53 48 41 44 45 52  uct D3D10_SHADER
5a90: 5f 52 45 53 4f 55 52 43 45 5f 56 49 45 57 5f 44  _RESOURCE_VIEW_D
5aa0: 45 53 43 20 7b 0d 0a 09 44 58 47 49 5f 46 4f 52  ESC {...DXGI_FOR
5ab0: 4d 41 54 20 46 6f 72 6d 61 74 3b 0d 0a 09 44 33  MAT Format;...D3
5ac0: 44 31 30 5f 53 52 56 5f 44 49 4d 45 4e 53 49 4f  D10_SRV_DIMENSIO
5ad0: 4e 20 56 69 65 77 44 69 6d 65 6e 73 69 6f 6e 3b  N ViewDimension;
5ae0: 0d 0a 09 75 6e 69 6f 6e 20 7b 0d 0a 09 09 44 33  ...union {....D3
5af0: 44 31 30 5f 42 55 46 46 45 52 5f 53 52 56 20 42  D10_BUFFER_SRV B
5b00: 75 66 66 65 72 3b 0d 0a 09 09 44 33 44 31 30 5f  uffer;....D3D10_
5b10: 54 45 58 31 44 5f 53 52 56 20 54 65 78 74 75 72  TEX1D_SRV Textur
5b20: 65 31 44 3b 0d 0a 09 09 44 33 44 31 30 5f 54 45  e1D;....D3D10_TE
5b30: 58 31 44 5f 41 52 52 41 59 5f 53 52 56 20 54 65  X1D_ARRAY_SRV Te
5b40: 78 74 75 72 65 31 44 41 72 72 61 79 3b 0d 0a 09  xture1DArray;...
5b50: 09 44 33 44 31 30 5f 54 45 58 32 44 5f 53 52 56  .D3D10_TEX2D_SRV
5b60: 20 54 65 78 74 75 72 65 32 44 3b 0d 0a 09 09 44   Texture2D;....D
5b70: 33 44 31 30 5f 54 45 58 32 44 5f 41 52 52 41 59  3D10_TEX2D_ARRAY
5b80: 5f 53 52 56 20 54 65 78 74 75 72 65 32 44 41 72  _SRV Texture2DAr
5b90: 72 61 79 3b 0d 0a 09 09 44 33 44 31 30 5f 54 45  ray;....D3D10_TE
5ba0: 58 32 44 4d 53 5f 53 52 56 20 54 65 78 74 75 72  X2DMS_SRV Textur
5bb0: 65 32 44 4d 53 3b 0d 0a 09 09 44 33 44 31 30 5f  e2DMS;....D3D10_
5bc0: 54 45 58 32 44 4d 53 5f 41 52 52 41 59 5f 53 52  TEX2DMS_ARRAY_SR
5bd0: 56 20 54 65 78 74 75 72 65 32 44 4d 53 41 72 72  V Texture2DMSArr
5be0: 61 79 3b 0d 0a 09 09 44 33 44 31 30 5f 54 45 58  ay;....D3D10_TEX
5bf0: 33 44 5f 53 52 56 20 54 65 78 74 75 72 65 33 44  3D_SRV Texture3D
5c00: 3b 0d 0a 09 09 44 33 44 31 30 5f 54 45 58 43 55  ;....D3D10_TEXCU
5c10: 42 45 5f 53 52 56 20 54 65 78 74 75 72 65 43 75  BE_SRV TextureCu
5c20: 62 65 3b 0d 0a 09 7d 0d 0a 7d 0d 0a 0d 0a 69 6e  be;...}..}....in
5c30: 74 65 72 66 61 63 65 20 49 44 33 44 31 30 53 68  terface ID3D10Sh
5c40: 61 64 65 72 52 65 73 6f 75 72 63 65 56 69 65 77  aderResourceView
5c50: 20 3a 20 49 44 33 44 31 30 56 69 65 77 20 7b 0d   : ID3D10View {.
5c60: 0a 09 65 78 74 65 72 6e 28 57 69 6e 64 6f 77 73  ..extern(Windows
5c70: 29 20 3a 0d 0a 09 76 6f 69 64 20 47 65 74 44 65  ) :...void GetDe
5c80: 73 63 28 44 33 44 31 30 5f 53 48 41 44 45 52 5f  sc(D3D10_SHADER_
5c90: 52 45 53 4f 55 52 43 45 5f 56 49 45 57 5f 44 45  RESOURCE_VIEW_DE
5ca0: 53 43 20 2a 70 44 65 73 63 29 3b 0d 0a 7d 0d 0a  SC *pDesc);..}..
5cb0: 0d 0a 73 74 72 75 63 74 20 44 33 44 31 30 5f 42  ..struct D3D10_B
5cc0: 55 46 46 45 52 5f 52 54 56 20 7b 0d 0a 09 55 49  UFFER_RTV {...UI
5cd0: 4e 54 20 45 6c 65 6d 65 6e 74 4f 66 66 73 65 74  NT ElementOffset
5ce0: 3b 0d 0a 09 55 49 4e 54 20 45 6c 65 6d 65 6e 74  ;...UINT Element
5cf0: 57 69 64 74 68 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72  Width;..}....str
5d00: 75 63 74 20 44 33 44 31 30 5f 54 45 58 31 44 5f  uct D3D10_TEX1D_
5d10: 52 54 56 20 7b 0d 0a 09 55 49 4e 54 20 4d 69 70  RTV {...UINT Mip
5d20: 53 6c 69 63 65 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72  Slice;..}....str
5d30: 75 63 74 20 44 33 44 31 30 5f 54 45 58 31 44 5f  uct D3D10_TEX1D_
5d40: 41 52 52 41 59 5f 52 54 56 20 7b 0d 0a 09 55 49  ARRAY_RTV {...UI
5d50: 4e 54 20 4d 69 70 53 6c 69 63 65 3b 0d 0a 09 55  NT MipSlice;...U
5d60: 49 4e 54 20 46 69 72 73 74 41 72 72 61 79 53 6c  INT FirstArraySl
5d70: 69 63 65 3b 0d 0a 09 55 49 4e 54 20 41 72 72 61  ice;...UINT Arra
5d80: 79 53 69 7a 65 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72  ySize;..}....str
5d90: 75 63 74 20 44 33 44 31 30 5f 54 45 58 32 44 5f  uct D3D10_TEX2D_
5da0: 52 54 56 20 7b 0d 0a 09 55 49 4e 54 20 4d 69 70  RTV {...UINT Mip
5db0: 53 6c 69 63 65 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72  Slice;..}....str
5dc0: 75 63 74 20 44 33 44 31 30 5f 54 45 58 32 44 4d  uct D3D10_TEX2DM
5dd0: 53 5f 52 54 56 20 7b 0d 0a 09 55 49 4e 54 20 55  S_RTV {...UINT U
5de0: 6e 75 73 65 64 46 69 65 6c 64 5f 4e 6f 74 68 69  nusedField_Nothi
5df0: 6e 67 54 6f 44 65 66 69 6e 65 3b 0d 0a 7d 0d 0a  ngToDefine;..}..
5e00: 0d 0a 73 74 72 75 63 74 20 44 33 44 31 30 5f 54  ..struct D3D10_T
5e10: 45 58 32 44 5f 41 52 52 41 59 5f 52 54 56 20 7b  EX2D_ARRAY_RTV {
5e20: 0d 0a 09 55 49 4e 54 20 4d 69 70 53 6c 69 63 65  ...UINT MipSlice
5e30: 3b 0d 0a 09 55 49 4e 54 20 46 69 72 73 74 41 72  ;...UINT FirstAr
5e40: 72 61 79 53 6c 69 63 65 3b 0d 0a 09 55 49 4e 54  raySlice;...UINT
5e50: 20 41 72 72 61 79 53 69 7a 65 3b 0d 0a 7d 0d 0a   ArraySize;..}..
5e60: 0d 0a 73 74 72 75 63 74 20 44 33 44 31 30 5f 54  ..struct D3D10_T
5e70: 45 58 32 44 4d 53 5f 41 52 52 41 59 5f 52 54 56  EX2DMS_ARRAY_RTV
5e80: 20 7b 0d 0a 09 55 49 4e 54 20 46 69 72 73 74 41   {...UINT FirstA
5e90: 72 72 61 79 53 6c 69 63 65 3b 0d 0a 09 55 49 4e  rraySlice;...UIN
5ea0: 54 20 41 72 72 61 79 53 69 7a 65 3b 0d 0a 7d 0d  T ArraySize;..}.
5eb0: 0a 0d 0a 73 74 72 75 63 74 20 44 33 44 31 30 5f  ...struct D3D10_
5ec0: 54 45 58 33 44 5f 52 54 56 20 7b 0d 0a 09 55 49  TEX3D_RTV {...UI
5ed0: 4e 54 20 4d 69 70 53 6c 69 63 65 3b 0d 0a 09 55  NT MipSlice;...U
5ee0: 49 4e 54 20 46 69 72 73 74 57 53 6c 69 63 65 3b  INT FirstWSlice;
5ef0: 0d 0a 09 55 49 4e 54 20 57 53 69 7a 65 3b 0d 0a  ...UINT WSize;..
5f00: 7d 0d 0a 0d 0a 73 74 72 75 63 74 20 44 33 44 31  }....struct D3D1
5f10: 30 5f 52 45 4e 44 45 52 5f 54 41 52 47 45 54 5f  0_RENDER_TARGET_
5f20: 56 49 45 57 5f 44 45 53 43 20 7b 0d 0a 09 44 58  VIEW_DESC {...DX
5f30: 47 49 5f 46 4f 52 4d 41 54 20 46 6f 72 6d 61 74  GI_FORMAT Format
5f40: 3b 0d 0a 09 44 33 44 31 30 5f 52 54 56 5f 44 49  ;...D3D10_RTV_DI
5f50: 4d 45 4e 53 49 4f 4e 20 56 69 65 77 44 69 6d 65  MENSION ViewDime
5f60: 6e 73 69 6f 6e 3b 0d 0a 09 75 6e 69 6f 6e 20 7b  nsion;...union {
5f70: 0d 0a 09 09 44 33 44 31 30 5f 42 55 46 46 45 52  ....D3D10_BUFFER
5f80: 5f 52 54 56 20 42 75 66 66 65 72 3b 0d 0a 09 09  _RTV Buffer;....
5f90: 44 33 44 31 30 5f 54 45 58 31 44 5f 52 54 56 20  D3D10_TEX1D_RTV 
5fa0: 54 65 78 74 75 72 65 31 44 3b 0d 0a 09 09 44 33  Texture1D;....D3
5fb0: 44 31 30 5f 54 45 58 31 44 5f 41 52 52 41 59 5f  D10_TEX1D_ARRAY_
5fc0: 52 54 56 20 54 65 78 74 75 72 65 31 44 41 72 72  RTV Texture1DArr
5fd0: 61 79 3b 0d 0a 09 09 44 33 44 31 30 5f 54 45 58  ay;....D3D10_TEX
5fe0: 32 44 5f 52 54 56 20 54 65 78 74 75 72 65 32 44  2D_RTV Texture2D
5ff0: 3b 0d 0a 09 09 44 33 44 31 30 5f 54 45 58 32 44  ;....D3D10_TEX2D
6000: 5f 41 52 52 41 59 5f 52 54 56 20 54 65 78 74 75  _ARRAY_RTV Textu
6010: 72 65 32 44 41 72 72 61 79 3b 0d 0a 09 09 44 33  re2DArray;....D3
6020: 44 31 30 5f 54 45 58 32 44 4d 53 5f 52 54 56 20  D10_TEX2DMS_RTV 
6030: 54 65 78 74 75 72 65 32 44 4d 53 3b 0d 0a 09 09  Texture2DMS;....
6040: 44 33 44 31 30 5f 54 45 58 32 44 4d 53 5f 41 52  D3D10_TEX2DMS_AR
6050: 52 41 59 5f 52 54 56 20 54 65 78 74 75 72 65 32  RAY_RTV Texture2
6060: 44 4d 53 41 72 72 61 79 3b 0d 0a 09 09 44 33 44  DMSArray;....D3D
6070: 31 30 5f 54 45 58 33 44 5f 52 54 56 20 54 65 78  10_TEX3D_RTV Tex
6080: 74 75 72 65 33 44 3b 0d 0a 09 7d 0d 0a 7d 0d 0a  ture3D;...}..}..
6090: 0d 0a 69 6e 74 65 72 66 61 63 65 20 49 44 33 44  ..interface ID3D
60a0: 31 30 52 65 6e 64 65 72 54 61 72 67 65 74 56 69  10RenderTargetVi
60b0: 65 77 20 3a 20 49 44 33 44 31 30 56 69 65 77 20  ew : ID3D10View 
60c0: 7b 0d 0a 09 65 78 74 65 72 6e 28 57 69 6e 64 6f  {...extern(Windo
60d0: 77 73 29 20 3a 0d 0a 09 76 6f 69 64 20 47 65 74  ws) :...void Get
60e0: 44 65 73 63 28 44 33 44 31 30 5f 52 45 4e 44 45  Desc(D3D10_RENDE
60f0: 52 5f 54 41 52 47 45 54 5f 56 49 45 57 5f 44 45  R_TARGET_VIEW_DE
6100: 53 43 20 2a 70 44 65 73 63 29 3b 0d 0a 7d 0d 0a  SC *pDesc);..}..
6110: 0d 0a 73 74 72 75 63 74 20 44 33 44 31 30 5f 54  ..struct D3D10_T
6120: 45 58 31 44 5f 44 53 56 20 7b 0d 0a 09 55 49 4e  EX1D_DSV {...UIN
6130: 54 20 4d 69 70 53 6c 69 63 65 3b 0d 0a 7d 0d 0a  T MipSlice;..}..
6140: 0d 0a 73 74 72 75 63 74 20 44 33 44 31 30 5f 54  ..struct D3D10_T
6150: 45 58 31 44 5f 41 52 52 41 59 5f 44 53 56 20 7b  EX1D_ARRAY_DSV {
6160: 0d 0a 09 55 49 4e 54 20 4d 69 70 53 6c 69 63 65  ...UINT MipSlice
6170: 3b 0d 0a 09 55 49 4e 54 20 46 69 72 73 74 41 72  ;...UINT FirstAr
6180: 72 61 79 53 6c 69 63 65 3b 0d 0a 09 55 49 4e 54  raySlice;...UINT
6190: 20 41 72 72 61 79 53 69 7a 65 3b 0d 0a 7d 0d 0a   ArraySize;..}..
61a0: 0d 0a 73 74 72 75 63 74 20 44 33 44 31 30 5f 54  ..struct D3D10_T
61b0: 45 58 32 44 5f 44 53 56 20 7b 0d 0a 09 55 49 4e  EX2D_DSV {...UIN
61c0: 54 20 4d 69 70 53 6c 69 63 65 3b 0d 0a 7d 0d 0a  T MipSlice;..}..
61d0: 0d 0a 73 74 72 75 63 74 20 44 33 44 31 30 5f 54  ..struct D3D10_T
61e0: 45 58 32 44 5f 41 52 52 41 59 5f 44 53 56 20 7b  EX2D_ARRAY_DSV {
61f0: 0d 0a 09 55 49 4e 54 20 4d 69 70 53 6c 69 63 65  ...UINT MipSlice
6200: 3b 0d 0a 09 55 49 4e 54 20 46 69 72 73 74 41 72  ;...UINT FirstAr
6210: 72 61 79 53 6c 69 63 65 3b 0d 0a 09 55 49 4e 54  raySlice;...UINT
6220: 20 41 72 72 61 79 53 69 7a 65 3b 0d 0a 7d 0d 0a   ArraySize;..}..
6230: 0d 0a 73 74 72 75 63 74 20 44 33 44 31 30 5f 54  ..struct D3D10_T
6240: 45 58 32 44 4d 53 5f 44 53 56 20 7b 0d 0a 09 55  EX2DMS_DSV {...U
6250: 49 4e 54 20 55 6e 75 73 65 64 46 69 65 6c 64 5f  INT UnusedField_
6260: 4e 6f 74 68 69 6e 67 54 6f 44 65 66 69 6e 65 3b  NothingToDefine;
6270: 0d 0a 7d 0d 0a 0d 0a 73 74 72 75 63 74 20 44 33  ..}....struct D3
6280: 44 31 30 5f 54 45 58 32 44 4d 53 5f 41 52 52 41  D10_TEX2DMS_ARRA
6290: 59 5f 44 53 56 20 7b 0d 0a 09 55 49 4e 54 20 46  Y_DSV {...UINT F
62a0: 69 72 73 74 41 72 72 61 79 53 6c 69 63 65 3b 0d  irstArraySlice;.
62b0: 0a 09 55 49 4e 54 20 41 72 72 61 79 53 69 7a 65  ..UINT ArraySize
62c0: 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72 75 63 74 20 44  ;..}....struct D
62d0: 33 44 31 30 5f 44 45 50 54 48 5f 53 54 45 4e 43  3D10_DEPTH_STENC
62e0: 49 4c 5f 56 49 45 57 5f 44 45 53 43 20 7b 0d 0a  IL_VIEW_DESC {..
62f0: 09 44 58 47 49 5f 46 4f 52 4d 41 54 20 46 6f 72  .DXGI_FORMAT For
6300: 6d 61 74 3b 0d 0a 09 44 33 44 31 30 5f 44 53 56  mat;...D3D10_DSV
6310: 5f 44 49 4d 45 4e 53 49 4f 4e 20 56 69 65 77 44  _DIMENSION ViewD
6320: 69 6d 65 6e 73 69 6f 6e 3b 0d 0a 09 75 6e 69 6f  imension;...unio
6330: 6e 20 7b 0d 0a 09 09 44 33 44 31 30 5f 54 45 58  n {....D3D10_TEX
6340: 31 44 5f 44 53 56 20 54 65 78 74 75 72 65 31 44  1D_DSV Texture1D
6350: 3b 0d 0a 09 09 44 33 44 31 30 5f 54 45 58 31 44  ;....D3D10_TEX1D
6360: 5f 41 52 52 41 59 5f 44 53 56 20 54 65 78 74 75  _ARRAY_DSV Textu
6370: 72 65 31 44 41 72 72 61 79 3b 0d 0a 09 09 44 33  re1DArray;....D3
6380: 44 31 30 5f 54 45 58 32 44 5f 44 53 56 20 54 65  D10_TEX2D_DSV Te
6390: 78 74 75 72 65 32 44 3b 0d 0a 09 09 44 33 44 31  xture2D;....D3D1
63a0: 30 5f 54 45 58 32 44 5f 41 52 52 41 59 5f 44 53  0_TEX2D_ARRAY_DS
63b0: 56 20 54 65 78 74 75 72 65 32 44 41 72 72 61 79  V Texture2DArray
63c0: 3b 0d 0a 09 09 44 33 44 31 30 5f 54 45 58 32 44  ;....D3D10_TEX2D
63d0: 4d 53 5f 44 53 56 20 54 65 78 74 75 72 65 32 44  MS_DSV Texture2D
63e0: 4d 53 3b 0d 0a 09 09 44 33 44 31 30 5f 54 45 58  MS;....D3D10_TEX
63f0: 32 44 4d 53 5f 41 52 52 41 59 5f 44 53 56 20 54  2DMS_ARRAY_DSV T
6400: 65 78 74 75 72 65 32 44 4d 53 41 72 72 61 79 3b  exture2DMSArray;
6410: 0d 0a 09 7d 0d 0a 7d 0d 0a 0d 0a 69 6e 74 65 72  ...}..}....inter
6420: 66 61 63 65 20 49 44 33 44 31 30 44 65 70 74 68  face ID3D10Depth
6430: 53 74 65 6e 63 69 6c 56 69 65 77 20 3a 20 49 44  StencilView : ID
6440: 33 44 31 30 56 69 65 77 20 7b 0d 0a 09 65 78 74  3D10View {...ext
6450: 65 72 6e 28 57 69 6e 64 6f 77 73 29 20 3a 0d 0a  ern(Windows) :..
6460: 09 76 6f 69 64 20 47 65 74 44 65 73 63 28 44 33  .void GetDesc(D3
6470: 44 31 30 5f 44 45 50 54 48 5f 53 54 45 4e 43 49  D10_DEPTH_STENCI
6480: 4c 5f 56 49 45 57 5f 44 45 53 43 20 2a 70 44 65  L_VIEW_DESC *pDe
6490: 73 63 29 3b 0d 0a 7d 0d 0a 0d 0a 69 6e 74 65 72  sc);..}....inter
64a0: 66 61 63 65 20 49 44 33 44 31 30 56 65 72 74 65  face ID3D10Verte
64b0: 78 53 68 61 64 65 72 20 3a 20 49 44 33 44 31 30  xShader : ID3D10
64c0: 44 65 76 69 63 65 43 68 69 6c 64 20 7b 20 7d 0d  DeviceChild { }.
64d0: 0a 0d 0a 69 6e 74 65 72 66 61 63 65 20 49 44 33  ...interface ID3
64e0: 44 31 30 47 65 6f 6d 65 74 72 79 53 68 61 64 65  D10GeometryShade
64f0: 72 20 3a 20 49 44 33 44 31 30 44 65 76 69 63 65  r : ID3D10Device
6500: 43 68 69 6c 64 20 7b 20 7d 0d 0a 0d 0a 69 6e 74  Child { }....int
6510: 65 72 66 61 63 65 20 49 44 33 44 31 30 50 69 78  erface ID3D10Pix
6520: 65 6c 53 68 61 64 65 72 20 3a 20 49 44 33 44 31  elShader : ID3D1
6530: 30 44 65 76 69 63 65 43 68 69 6c 64 20 7b 20 7d  0DeviceChild { }
6540: 0d 0a 0d 0a 69 6e 74 65 72 66 61 63 65 20 49 44  ....interface ID
6550: 33 44 31 30 49 6e 70 75 74 4c 61 79 6f 75 74 20  3D10InputLayout 
6560: 3a 20 49 44 33 44 31 30 44 65 76 69 63 65 43 68  : ID3D10DeviceCh
6570: 69 6c 64 20 7b 20 7d 0d 0a 0d 0a 65 6e 75 6d 20  ild { }....enum 
6580: 44 33 44 31 30 5f 46 49 4c 54 45 52 20 7b 0d 0a  D3D10_FILTER {..
6590: 09 44 33 44 31 30 5f 46 49 4c 54 45 52 5f 4d 49  .D3D10_FILTER_MI
65a0: 4e 5f 4d 41 47 5f 4d 49 50 5f 50 4f 49 4e 54 09  N_MAG_MIP_POINT.
65b0: 09 09 09 09 09 09 3d 20 30 78 30 30 2c 0d 0a 09  ......= 0x00,...
65c0: 44 33 44 31 30 5f 46 49 4c 54 45 52 5f 4d 49 4e  D3D10_FILTER_MIN
65d0: 5f 4d 41 47 5f 50 4f 49 4e 54 5f 4d 49 50 5f 4c  _MAG_POINT_MIP_L
65e0: 49 4e 45 41 52 09 09 09 09 09 3d 20 30 78 30 31  INEAR.....= 0x01
65f0: 2c 0d 0a 09 44 33 44 31 30 5f 46 49 4c 54 45 52  ,...D3D10_FILTER
6600: 5f 4d 49 4e 5f 50 4f 49 4e 54 5f 4d 41 47 5f 4c  _MIN_POINT_MAG_L
6610: 49 4e 45 41 52 5f 4d 49 50 5f 50 4f 49 4e 54 09  INEAR_MIP_POINT.
6620: 09 09 09 3d 20 30 78 30 34 2c 0d 0a 09 44 33 44  ...= 0x04,...D3D
6630: 31 30 5f 46 49 4c 54 45 52 5f 4d 49 4e 5f 50 4f  10_FILTER_MIN_PO
6640: 49 4e 54 5f 4d 41 47 5f 4d 49 50 5f 4c 49 4e 45  INT_MAG_MIP_LINE
6650: 41 52 09 09 09 09 09 3d 20 30 78 30 35 2c 0d 0a  AR.....= 0x05,..
6660: 09 44 33 44 31 30 5f 46 49 4c 54 45 52 5f 4d 49  .D3D10_FILTER_MI
6670: 4e 5f 4c 49 4e 45 41 52 5f 4d 41 47 5f 4d 49 50  N_LINEAR_MAG_MIP
6680: 5f 50 4f 49 4e 54 09 09 09 09 09 3d 20 30 78 31  _POINT.....= 0x1
6690: 30 2c 0d 0a 09 44 33 44 31 30 5f 46 49 4c 54 45  0,...D3D10_FILTE
66a0: 52 5f 4d 49 4e 5f 4c 49 4e 45 41 52 5f 4d 41 47  R_MIN_LINEAR_MAG
66b0: 5f 50 4f 49 4e 54 5f 4d 49 50 5f 4c 49 4e 45 41  _POINT_MIP_LINEA
66c0: 52 09 09 09 3d 20 30 78 31 31 2c 0d 0a 09 44 33  R...= 0x11,...D3
66d0: 44 31 30 5f 46 49 4c 54 45 52 5f 4d 49 4e 5f 4d  D10_FILTER_MIN_M
66e0: 41 47 5f 4c 49 4e 45 41 52 5f 4d 49 50 5f 50 4f  AG_LINEAR_MIP_PO
66f0: 49 4e 54 09 09 09 09 09 3d 20 30 78 31 34 2c 0d  INT.....= 0x14,.
6700: 0a 09 44 33 44 31 30 5f 46 49 4c 54 45 52 5f 4d  ..D3D10_FILTER_M
6710: 49 4e 5f 4d 41 47 5f 4d 49 50 5f 4c 49 4e 45 41  IN_MAG_MIP_LINEA
6720: 52 09 09 09 09 09 09 09 3d 20 30 78 31 35 2c 0d  R.......= 0x15,.
6730: 0a 09 44 33 44 31 30 5f 46 49 4c 54 45 52 5f 41  ..D3D10_FILTER_A
6740: 4e 49 53 4f 54 52 4f 50 49 43 09 09 09 09 09 09  NISOTROPIC......
6750: 09 09 3d 20 30 78 35 35 2c 0d 0a 09 44 33 44 31  ..= 0x55,...D3D1
6760: 30 5f 46 49 4c 54 45 52 5f 43 4f 4d 50 41 52 49  0_FILTER_COMPARI
6770: 53 4f 4e 5f 4d 49 4e 5f 4d 41 47 5f 4d 49 50 5f  SON_MIN_MAG_MIP_
6780: 50 4f 49 4e 54 09 09 09 09 3d 20 30 78 38 30 2c  POINT....= 0x80,
6790: 0d 0a 09 44 33 44 31 30 5f 46 49 4c 54 45 52 5f  ...D3D10_FILTER_
67a0: 43 4f 4d 50 41 52 49 53 4f 4e 5f 4d 49 4e 5f 4d  COMPARISON_MIN_M
67b0: 41 47 5f 50 4f 49 4e 54 5f 4d 49 50 5f 4c 49 4e  AG_POINT_MIP_LIN
67c0: 45 41 52 09 09 3d 20 30 78 38 31 2c 0d 0a 09 44  EAR..= 0x81,...D
67d0: 33 44 31 30 5f 46 49 4c 54 45 52 5f 43 4f 4d 50  3D10_FILTER_COMP
67e0: 41 52 49 53 4f 4e 5f 4d 49 4e 5f 50 4f 49 4e 54  ARISON_MIN_POINT
67f0: 5f 4d 41 47 5f 4c 49 4e 45 41 52 5f 4d 49 50 5f  _MAG_LINEAR_MIP_
6800: 50 4f 49 4e 54 09 3d 20 30 78 38 34 2c 0d 0a 09  POINT.= 0x84,...
6810: 44 33 44 31 30 5f 46 49 4c 54 45 52 5f 43 4f 4d  D3D10_FILTER_COM
6820: 50 41 52 49 53 4f 4e 5f 4d 49 4e 5f 50 4f 49 4e  PARISON_MIN_POIN
6830: 54 5f 4d 41 47 5f 4d 49 50 5f 4c 49 4e 45 41 52  T_MAG_MIP_LINEAR
6840: 09 09 3d 20 30 78 38 35 2c 0d 0a 09 44 33 44 31  ..= 0x85,...D3D1
6850: 30 5f 46 49 4c 54 45 52 5f 43 4f 4d 50 41 52 49  0_FILTER_COMPARI
6860: 53 4f 4e 5f 4d 49 4e 5f 4c 49 4e 45 41 52 5f 4d  SON_MIN_LINEAR_M
6870: 41 47 5f 4d 49 50 5f 50 4f 49 4e 54 09 09 3d 20  AG_MIP_POINT..= 
6880: 30 78 39 30 2c 0d 0a 09 44 33 44 31 30 5f 46 49  0x90,...D3D10_FI
6890: 4c 54 45 52 5f 43 4f 4d 50 41 52 49 53 4f 4e 5f  LTER_COMPARISON_
68a0: 4d 49 4e 5f 4c 49 4e 45 41 52 5f 4d 41 47 5f 50  MIN_LINEAR_MAG_P
68b0: 4f 49 4e 54 5f 4d 49 50 5f 4c 49 4e 45 41 52 09  OINT_MIP_LINEAR.
68c0: 3d 20 30 78 39 31 2c 0d 0a 09 44 33 44 31 30 5f  = 0x91,...D3D10_
68d0: 46 49 4c 54 45 52 5f 43 4f 4d 50 41 52 49 53 4f  FILTER_COMPARISO
68e0: 4e 5f 4d 49 4e 5f 4d 41 47 5f 4c 49 4e 45 41 52  N_MIN_MAG_LINEAR
68f0: 5f 4d 49 50 5f 50 4f 49 4e 54 09 09 3d 20 30 78  _MIP_POINT..= 0x
6900: 39 34 2c 0d 0a 09 44 33 44 31 30 5f 46 49 4c 54  94,...D3D10_FILT
6910: 45 52 5f 43 4f 4d 50 41 52 49 53 4f 4e 5f 4d 49  ER_COMPARISON_MI
6920: 4e 5f 4d 41 47 5f 4d 49 50 5f 4c 49 4e 45 41 52  N_MAG_MIP_LINEAR
6930: 09 09 09 09 3d 20 30 78 39 35 2c 0d 0a 09 44 33  ....= 0x95,...D3
6940: 44 31 30 5f 46 49 4c 54 45 52 5f 43 4f 4d 50 41  D10_FILTER_COMPA
6950: 52 49 53 4f 4e 5f 41 4e 49 53 4f 54 52 4f 50 49  RISON_ANISOTROPI
6960: 43 09 09 09 09 09 09 3d 20 30 78 64 35 2c 0d 0a  C......= 0xd5,..
6970: 09 44 33 44 31 30 5f 46 49 4c 54 45 52 5f 54 45  .D3D10_FILTER_TE
6980: 58 54 5f 31 42 49 54 09 09 09 09 09 09 09 09 09  XT_1BIT.........
6990: 3d 20 30 78 38 30 30 30 30 30 30 30 0d 0a 7d 0d  = 0x80000000..}.
69a0: 0a 0d 0a 0d 0a 65 6e 75 6d 20 44 33 44 31 30 5f  .....enum D3D10_
69b0: 46 49 4c 54 45 52 5f 54 59 50 45 20 7b 0d 0a 09  FILTER_TYPE {...
69c0: 44 33 44 31 30 5f 46 49 4c 54 45 52 5f 54 59 50  D3D10_FILTER_TYP
69d0: 45 5f 50 4f 49 4e 54 09 09 3d 20 30 2c 0d 0a 09  E_POINT..= 0,...
69e0: 44 33 44 31 30 5f 46 49 4c 54 45 52 5f 54 59 50  D3D10_FILTER_TYP
69f0: 45 5f 4c 49 4e 45 41 52 0d 0a 7d 0d 0a 0d 0a 63  E_LINEAR..}....c
6a00: 6f 6e 73 74 20 44 33 44 31 30 5f 46 49 4c 54 45  onst D3D10_FILTE
6a10: 52 5f 54 59 50 45 5f 4d 41 53 4b 20 3d 20 30 78  R_TYPE_MASK = 0x
6a20: 30 33 3b 0d 0a 0d 0a 63 6f 6e 73 74 20 44 33 44  03;....const D3D
6a30: 31 30 5f 4d 49 4e 5f 46 49 4c 54 45 52 5f 53 48  10_MIN_FILTER_SH
6a40: 49 46 54 20 3d 20 34 3b 0d 0a 0d 0a 63 6f 6e 73  IFT = 4;....cons
6a50: 74 20 44 33 44 31 30 5f 4d 41 47 5f 46 49 4c 54  t D3D10_MAG_FILT
6a60: 45 52 5f 53 48 49 46 54 20 3d 20 32 3b 0d 0a 0d  ER_SHIFT = 2;...
6a70: 0a 63 6f 6e 73 74 20 44 33 44 31 30 5f 4d 49 50  .const D3D10_MIP
6a80: 5f 46 49 4c 54 45 52 5f 53 48 49 46 54 20 3d 20  _FILTER_SHIFT = 
6a90: 30 3b 0d 0a 0d 0a 63 6f 6e 73 74 20 44 33 44 31  0;....const D3D1
6aa0: 30 5f 43 4f 4d 50 41 52 49 53 4f 4e 5f 46 49 4c  0_COMPARISON_FIL
6ab0: 54 45 52 49 4e 47 5f 42 49 54 20 3d 20 30 78 38  TERING_BIT = 0x8
6ac0: 30 3b 0d 0a 0d 0a 63 6f 6e 73 74 20 44 33 44 31  0;....const D3D1
6ad0: 30 5f 41 4e 49 53 4f 54 52 4f 50 49 43 5f 46 49  0_ANISOTROPIC_FI
6ae0: 4c 54 45 52 49 4e 47 5f 42 49 54 20 3d 20 30 78  LTERING_BIT = 0x
6af0: 34 30 3b 0d 0a 0d 0a 63 6f 6e 73 74 20 44 33 44  40;....const D3D
6b00: 31 30 5f 54 45 58 54 5f 31 42 49 54 5f 42 49 54  10_TEXT_1BIT_BIT
6b10: 20 3d 20 30 78 38 30 30 30 30 30 30 30 3b 0d 0a   = 0x80000000;..
6b20: 0d 0a 44 33 44 31 30 5f 46 49 4c 54 45 52 20 44  ..D3D10_FILTER D
6b30: 33 44 31 30 5f 45 4e 43 4f 44 45 5f 42 41 53 49  3D10_ENCODE_BASI
6b40: 43 5f 46 49 4c 54 45 52 28 69 6e 74 20 6d 69 6e  C_FILTER(int min
6b50: 2c 20 69 6e 74 20 6d 61 67 2c 20 69 6e 74 20 6d  , int mag, int m
6b60: 69 70 2c 20 62 6f 6f 6c 20 62 43 6f 6d 70 61 72  ip, bool bCompar
6b70: 69 73 6f 6e 29 20 7b 0d 0a 09 72 65 74 75 72 6e  ison) {...return
6b80: 20 63 61 73 74 28 44 33 44 31 30 5f 46 49 4c 54   cast(D3D10_FILT
6b90: 45 52 29 28 28 28 62 43 6f 6d 70 61 72 69 73 6f  ER)(((bCompariso
6ba0: 6e 29 20 3f 20 44 33 44 31 30 5f 43 4f 4d 50 41  n) ? D3D10_COMPA
6bb0: 52 49 53 4f 4e 5f 46 49 4c 54 45 52 49 4e 47 5f  RISON_FILTERING_
6bc0: 42 49 54 20 3a 20 30 29 20 7c 0d 0a 09 20 20 20  BIT : 0) |...   
6bd0: 20 20 20 20 28 28 6d 69 6e 20 26 20 44 33 44 31      ((min & D3D1
6be0: 30 5f 46 49 4c 54 45 52 5f 54 59 50 45 5f 4d 41  0_FILTER_TYPE_MA
6bf0: 53 4b 29 20 3c 3c 20 44 33 44 31 30 5f 4d 49 4e  SK) << D3D10_MIN
6c00: 5f 46 49 4c 54 45 52 5f 53 48 49 46 54 29 20 7c  _FILTER_SHIFT) |
6c10: 0d 0a 09 09 20 20 20 28 28 6d 61 67 20 26 20 44  ....   ((mag & D
6c20: 33 44 31 30 5f 46 49 4c 54 45 52 5f 54 59 50 45  3D10_FILTER_TYPE
6c30: 5f 4d 41 53 4b 29 20 3c 3c 20 44 33 44 31 30 5f  _MASK) << D3D10_
6c40: 4d 41 47 5f 46 49 4c 54 45 52 5f 53 48 49 46 54  MAG_FILTER_SHIFT
6c50: 29 20 7c 0d 0a 09 09 20 20 20 28 28 6d 69 70 20  ) |....   ((mip 
6c60: 26 20 44 33 44 31 30 5f 46 49 4c 54 45 52 5f 54  & D3D10_FILTER_T
6c70: 59 50 45 5f 4d 41 53 4b 29 20 3c 3c 20 44 33 44  YPE_MASK) << D3D
6c80: 31 30 5f 4d 49 50 5f 46 49 4c 54 45 52 5f 53 48  10_MIP_FILTER_SH
6c90: 49 46 54 29 29 3b 0d 0a 7d 0d 0a 0d 0a 44 33 44  IFT));..}....D3D
6ca0: 31 30 5f 46 49 4c 54 45 52 20 44 33 44 31 30 5f  10_FILTER D3D10_
6cb0: 45 4e 43 4f 44 45 5f 41 4e 49 53 4f 54 52 4f 50  ENCODE_ANISOTROP
6cc0: 49 43 5f 46 49 4c 54 45 52 28 62 6f 6f 6c 20 62  IC_FILTER(bool b
6cd0: 43 6f 6d 70 61 72 69 73 6f 6e 29 20 7b 0d 0a 09  Comparison) {...
6ce0: 72 65 74 75 72 6e 20 63 61 73 74 28 44 33 44 31  return cast(D3D1
6cf0: 30 5f 46 49 4c 54 45 52 29 28 44 33 44 31 30 5f  0_FILTER)(D3D10_
6d00: 41 4e 49 53 4f 54 52 4f 50 49 43 5f 46 49 4c 54  ANISOTROPIC_FILT
6d10: 45 52 49 4e 47 5f 42 49 54 20 7c 0d 0a 09 09 44  ERING_BIT |....D
6d20: 33 44 31 30 5f 45 4e 43 4f 44 45 5f 42 41 53 49  3D10_ENCODE_BASI
6d30: 43 5f 46 49 4c 54 45 52 28 44 33 44 31 30 5f 46  C_FILTER(D3D10_F
6d40: 49 4c 54 45 52 5f 54 59 50 45 2e 44 33 44 31 30  ILTER_TYPE.D3D10
6d50: 5f 46 49 4c 54 45 52 5f 54 59 50 45 5f 4c 49 4e  _FILTER_TYPE_LIN
6d60: 45 41 52 2c 0d 0a 09 09 09 44 33 44 31 30 5f 46  EAR,.....D3D10_F
6d70: 49 4c 54 45 52 5f 54 59 50 45 2e 44 33 44 31 30  ILTER_TYPE.D3D10
6d80: 5f 46 49 4c 54 45 52 5f 54 59 50 45 5f 4c 49 4e  _FILTER_TYPE_LIN
6d90: 45 41 52 2c 20 44 33 44 31 30 5f 46 49 4c 54 45  EAR, D3D10_FILTE
6da0: 52 5f 54 59 50 45 2e 44 33 44 31 30 5f 46 49 4c  R_TYPE.D3D10_FIL
6db0: 54 45 52 5f 54 59 50 45 5f 4c 49 4e 45 41 52 2c  TER_TYPE_LINEAR,
6dc0: 0d 0a 09 09 09 62 43 6f 6d 70 61 72 69 73 6f 6e  .....bComparison
6dd0: 29 29 3b 0d 0a 7d 0d 0a 0d 0a 44 33 44 31 30 5f  ));..}....D3D10_
6de0: 46 49 4c 54 45 52 5f 54 59 50 45 20 44 33 44 31  FILTER_TYPE D3D1
6df0: 30 5f 44 45 43 4f 44 45 5f 4d 49 4e 5f 46 49 4c  0_DECODE_MIN_FIL
6e00: 54 45 52 28 44 33 44 31 30 5f 46 49 4c 54 45 52  TER(D3D10_FILTER
6e10: 20 64 33 64 31 30 46 69 6c 74 65 72 29 20 7b 0d   d3d10Filter) {.
6e20: 0a 09 72 65 74 75 72 6e 20 63 61 73 74 28 44 33  ..return cast(D3
6e30: 44 31 30 5f 46 49 4c 54 45 52 5f 54 59 50 45 29  D10_FILTER_TYPE)
6e40: 28 28 64 33 64 31 30 46 69 6c 74 65 72 20 3e 3e  ((d3d10Filter >>
6e50: 20 44 33 44 31 30 5f 4d 49 4e 5f 46 49 4c 54 45   D3D10_MIN_FILTE
6e60: 52 5f 53 48 49 46 54 29 20 26 20 44 33 44 31 30  R_SHIFT) & D3D10
6e70: 5f 46 49 4c 54 45 52 5f 54 59 50 45 5f 4d 41 53  _FILTER_TYPE_MAS
6e80: 4b 29 3b 0d 0a 7d 0d 0a 0d 0a 44 33 44 31 30 5f  K);..}....D3D10_
6e90: 46 49 4c 54 45 52 5f 54 59 50 45 20 44 33 44 31  FILTER_TYPE D3D1
6ea0: 30 5f 44 45 43 4f 44 45 5f 4d 41 47 5f 46 49 4c  0_DECODE_MAG_FIL
6eb0: 54 45 52 28 44 33 44 31 30 5f 46 49 4c 54 45 52  TER(D3D10_FILTER
6ec0: 20 64 33 64 31 30 46 69 6c 74 65 72 29 20 7b 0d   d3d10Filter) {.
6ed0: 0a 09 72 65 74 75 72 6e 20 63 61 73 74 28 44 33  ..return cast(D3
6ee0: 44 31 30 5f 46 49 4c 54 45 52 5f 54 59 50 45 29  D10_FILTER_TYPE)
6ef0: 28 28 64 33 64 31 30 46 69 6c 74 65 72 20 3e 3e  ((d3d10Filter >>
6f00: 20 44 33 44 31 30 5f 4d 41 47 5f 46 49 4c 54 45   D3D10_MAG_FILTE
6f10: 52 5f 53 48 49 46 54 29 20 26 20 44 33 44 31 30  R_SHIFT) & D3D10
6f20: 5f 46 49 4c 54 45 52 5f 54 59 50 45 5f 4d 41 53  _FILTER_TYPE_MAS
6f30: 4b 29 3b 0d 0a 7d 0d 0a 0d 0a 44 33 44 31 30 5f  K);..}....D3D10_
6f40: 46 49 4c 54 45 52 5f 54 59 50 45 20 44 33 44 31  FILTER_TYPE D3D1
6f50: 30 5f 44 45 43 4f 44 45 5f 4d 49 50 5f 46 49 4c  0_DECODE_MIP_FIL
6f60: 54 45 52 28 44 33 44 31 30 5f 46 49 4c 54 45 52  TER(D3D10_FILTER
6f70: 20 64 33 64 31 30 46 69 6c 74 65 72 29 20 7b 0d   d3d10Filter) {.
6f80: 0a 09 72 65 74 75 72 6e 20 63 61 73 74 28 44 33  ..return cast(D3
6f90: 44 31 30 5f 46 49 4c 54 45 52 5f 54 59 50 45 29  D10_FILTER_TYPE)
6fa0: 28 28 64 33 64 31 30 46 69 6c 74 65 72 20 3e 3e  ((d3d10Filter >>
6fb0: 20 44 33 44 31 30 5f 4d 49 50 5f 46 49 4c 54 45   D3D10_MIP_FILTE
6fc0: 52 5f 53 48 49 46 54 29 20 26 20 44 33 44 31 30  R_SHIFT) & D3D10
6fd0: 5f 46 49 4c 54 45 52 5f 54 59 50 45 5f 4d 41 53  _FILTER_TYPE_MAS
6fe0: 4b 29 3b 0d 0a 7d 0d 0a 0d 0a 62 6f 6f 6c 20 44  K);..}....bool D
6ff0: 33 44 31 30 5f 44 45 43 4f 44 45 5f 49 53 5f 43  3D10_DECODE_IS_C
7000: 4f 4d 50 41 52 49 53 4f 4e 5f 46 49 4c 54 45 52  OMPARISON_FILTER
7010: 28 44 33 44 31 30 5f 46 49 4c 54 45 52 20 64 33  (D3D10_FILTER d3
7020: 64 31 30 46 69 6c 74 65 72 29 20 7b 0d 0a 09 72  d10Filter) {...r
7030: 65 74 75 72 6e 20 28 64 33 64 31 30 46 69 6c 74  eturn (d3d10Filt
7040: 65 72 20 26 20 44 33 44 31 30 5f 43 4f 4d 50 41  er & D3D10_COMPA
7050: 52 49 53 4f 4e 5f 46 49 4c 54 45 52 49 4e 47 5f  RISON_FILTERING_
7060: 42 49 54 29 20 3d 3d 20 44 33 44 31 30 5f 43 4f  BIT) == D3D10_CO
7070: 4d 50 41 52 49 53 4f 4e 5f 46 49 4c 54 45 52 49  MPARISON_FILTERI
7080: 4e 47 5f 42 49 54 3b 0d 0a 7d 0d 0a 0d 0a 62 6f  NG_BIT;..}....bo
7090: 6f 6c 20 44 33 44 31 30 5f 44 45 43 4f 44 45 5f  ol D3D10_DECODE_
70a0: 49 53 5f 41 4e 49 53 4f 54 52 4f 50 49 43 5f 46  IS_ANISOTROPIC_F
70b0: 49 4c 54 45 52 28 44 33 44 31 30 5f 46 49 4c 54  ILTER(D3D10_FILT
70c0: 45 52 20 64 33 64 31 30 46 69 6c 74 65 72 29 20  ER d3d10Filter) 
70d0: 7b 0d 0a 09 72 65 74 75 72 6e 20 28 28 64 33 64  {...return ((d3d
70e0: 31 30 46 69 6c 74 65 72 20 26 20 44 33 44 31 30  10Filter & D3D10
70f0: 5f 41 4e 49 53 4f 54 52 4f 50 49 43 5f 46 49 4c  _ANISOTROPIC_FIL
7100: 54 45 52 49 4e 47 5f 42 49 54 29 20 26 26 0d 0a  TERING_BIT) &&..
7110: 09 20 20 20 20 20 20 20 28 44 33 44 31 30 5f 46  .       (D3D10_F
7120: 49 4c 54 45 52 5f 54 59 50 45 2e 44 33 44 31 30  ILTER_TYPE.D3D10
7130: 5f 46 49 4c 54 45 52 5f 54 59 50 45 5f 4c 49 4e  _FILTER_TYPE_LIN
7140: 45 41 52 20 3d 3d 20 44 33 44 31 30 5f 44 45 43  EAR == D3D10_DEC
7150: 4f 44 45 5f 4d 49 4e 5f 46 49 4c 54 45 52 28 64  ODE_MIN_FILTER(d
7160: 33 64 31 30 46 69 6c 74 65 72 29 29 20 26 26 0d  3d10Filter)) &&.
7170: 0a 09 20 20 20 20 20 20 20 28 44 33 44 31 30 5f  ..       (D3D10_
7180: 46 49 4c 54 45 52 5f 54 59 50 45 2e 44 33 44 31  FILTER_TYPE.D3D1
7190: 30 5f 46 49 4c 54 45 52 5f 54 59 50 45 5f 4c 49  0_FILTER_TYPE_LI
71a0: 4e 45 41 52 20 3d 3d 20 44 33 44 31 30 5f 44 45  NEAR == D3D10_DE
71b0: 43 4f 44 45 5f 4d 41 47 5f 46 49 4c 54 45 52 28  CODE_MAG_FILTER(
71c0: 64 33 64 31 30 46 69 6c 74 65 72 29 29 20 26 26  d3d10Filter)) &&
71d0: 0d 0a 09 20 20 20 20 20 20 20 28 44 33 44 31 30  ...       (D3D10
71e0: 5f 46 49 4c 54 45 52 5f 54 59 50 45 2e 44 33 44  _FILTER_TYPE.D3D
71f0: 31 30 5f 46 49 4c 54 45 52 5f 54 59 50 45 5f 4c  10_FILTER_TYPE_L
7200: 49 4e 45 41 52 20 3d 3d 20 44 33 44 31 30 5f 44  INEAR == D3D10_D
7210: 45 43 4f 44 45 5f 4d 49 50 5f 46 49 4c 54 45 52  ECODE_MIP_FILTER
7220: 28 64 33 64 31 30 46 69 6c 74 65 72 29 29 29 3b  (d3d10Filter)));
7230: 0d 0a 7d 0d 0a 0d 0a 62 6f 6f 6c 20 44 33 44 31  ..}....bool D3D1
7240: 30 5f 44 45 43 4f 44 45 5f 49 53 5f 54 45 58 54  0_DECODE_IS_TEXT
7250: 5f 31 42 49 54 5f 46 49 4c 54 45 52 28 44 33 44  _1BIT_FILTER(D3D
7260: 31 30 5f 46 49 4c 54 45 52 20 64 33 64 31 30 46  10_FILTER d3d10F
7270: 69 6c 74 65 72 29 20 7b 0d 0a 09 72 65 74 75 72  ilter) {...retur
7280: 6e 20 64 33 64 31 30 46 69 6c 74 65 72 20 3d 3d  n d3d10Filter ==
7290: 20 44 33 44 31 30 5f 54 45 58 54 5f 31 42 49 54   D3D10_TEXT_1BIT
72a0: 5f 42 49 54 3b 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d  _BIT;..}....enum
72b0: 20 44 33 44 31 30 5f 54 45 58 54 55 52 45 5f 41   D3D10_TEXTURE_A
72c0: 44 44 52 45 53 53 5f 4d 4f 44 45 20 7b 0d 0a 09  DDRESS_MODE {...
72d0: 44 33 44 31 30 5f 54 45 58 54 55 52 45 5f 41 44  D3D10_TEXTURE_AD
72e0: 44 52 45 53 53 5f 57 52 41 50 20 3d 20 31 2c 0d  DRESS_WRAP = 1,.
72f0: 0a 09 44 33 44 31 30 5f 54 45 58 54 55 52 45 5f  ..D3D10_TEXTURE_
7300: 41 44 44 52 45 53 53 5f 4d 49 52 52 4f 52 2c 0d  ADDRESS_MIRROR,.
7310: 0a 09 44 33 44 31 30 5f 54 45 58 54 55 52 45 5f  ..D3D10_TEXTURE_
7320: 41 44 44 52 45 53 53 5f 43 4c 41 4d 50 2c 0d 0a  ADDRESS_CLAMP,..
7330: 09 44 33 44 31 30 5f 54 45 58 54 55 52 45 5f 41  .D3D10_TEXTURE_A
7340: 44 44 52 45 53 53 5f 42 4f 52 44 45 52 2c 0d 0a  DDRESS_BORDER,..
7350: 09 44 33 44 31 30 5f 54 45 58 54 55 52 45 5f 41  .D3D10_TEXTURE_A
7360: 44 44 52 45 53 53 5f 4d 49 52 52 4f 52 5f 4f 4e  DDRESS_MIRROR_ON
7370: 43 45 0d 0a 7d 0d 0a 0d 0a 73 74 72 75 63 74 20  CE..}....struct 
7380: 44 33 44 31 30 5f 53 41 4d 50 4c 45 52 5f 44 45  D3D10_SAMPLER_DE
7390: 53 43 20 7b 0d 0a 09 44 33 44 31 30 5f 46 49 4c  SC {...D3D10_FIL
73a0: 54 45 52 20 46 69 6c 74 65 72 3b 0d 0a 09 44 33  TER Filter;...D3
73b0: 44 31 30 5f 54 45 58 54 55 52 45 5f 41 44 44 52  D10_TEXTURE_ADDR
73c0: 45 53 53 5f 4d 4f 44 45 20 41 64 64 72 65 73 73  ESS_MODE Address
73d0: 55 3b 0d 0a 09 44 33 44 31 30 5f 54 45 58 54 55  U;...D3D10_TEXTU
73e0: 52 45 5f 41 44 44 52 45 53 53 5f 4d 4f 44 45 20  RE_ADDRESS_MODE 
73f0: 41 64 64 72 65 73 73 56 3b 0d 0a 09 44 33 44 31  AddressV;...D3D1
7400: 30 5f 54 45 58 54 55 52 45 5f 41 44 44 52 45 53  0_TEXTURE_ADDRES
7410: 53 5f 4d 4f 44 45 20 41 64 64 72 65 73 73 57 3b  S_MODE AddressW;
7420: 0d 0a 09 46 4c 4f 41 54 20 4d 69 70 4c 4f 44 42  ...FLOAT MipLODB
7430: 69 61 73 3b 0d 0a 09 55 49 4e 54 20 4d 61 78 41  ias;...UINT MaxA
7440: 6e 69 73 6f 74 72 6f 70 79 3b 0d 0a 09 44 33 44  nisotropy;...D3D
7450: 31 30 5f 43 4f 4d 50 41 52 49 53 4f 4e 5f 46 55  10_COMPARISON_FU
7460: 4e 43 20 43 6f 6d 70 61 72 69 73 6f 6e 46 75 6e  NC ComparisonFun
7470: 63 3b 0d 0a 09 46 4c 4f 41 54 5b 34 5d 20 42 6f  c;...FLOAT[4] Bo
7480: 72 64 65 72 43 6f 6c 6f 72 3b 0d 0a 09 46 4c 4f  rderColor;...FLO
7490: 41 54 20 4d 69 6e 4c 4f 44 3b 0d 0a 09 46 4c 4f  AT MinLOD;...FLO
74a0: 41 54 20 4d 61 78 4c 4f 44 3b 0d 0a 7d 0d 0a 0d  AT MaxLOD;..}...
74b0: 0a 69 6e 74 65 72 66 61 63 65 20 49 44 33 44 31  .interface ID3D1
74c0: 30 53 61 6d 70 6c 65 72 53 74 61 74 65 20 3a 20  0SamplerState : 
74d0: 49 44 33 44 31 30 44 65 76 69 63 65 43 68 69 6c  ID3D10DeviceChil
74e0: 64 20 7b 0d 0a 09 65 78 74 65 72 6e 28 57 69 6e  d {...extern(Win
74f0: 64 6f 77 73 29 20 3a 0d 0a 09 76 6f 69 64 20 47  dows) :...void G
7500: 65 74 44 65 73 63 28 44 33 44 31 30 5f 53 41 4d  etDesc(D3D10_SAM
7510: 50 4c 45 52 5f 44 45 53 43 20 2a 70 44 65 73 63  PLER_DESC *pDesc
7520: 29 3b 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d 20 44 33  );..}....enum D3
7530: 44 31 30 5f 46 4f 52 4d 41 54 5f 53 55 50 50 4f  D10_FORMAT_SUPPO
7540: 52 54 20 7b 0d 0a 09 44 33 44 31 30 5f 46 4f 52  RT {...D3D10_FOR
7550: 4d 41 54 5f 53 55 50 50 4f 52 54 5f 42 55 46 46  MAT_SUPPORT_BUFF
7560: 45 52 09 09 09 09 09 09 3d 20 30 78 30 30 30 30  ER......= 0x0000
7570: 30 31 2c 0d 0a 09 44 33 44 31 30 5f 46 4f 52 4d  01,...D3D10_FORM
7580: 41 54 5f 53 55 50 50 4f 52 54 5f 49 41 5f 56 45  AT_SUPPORT_IA_VE
7590: 52 54 45 58 5f 42 55 46 46 45 52 09 09 09 3d 20  RTEX_BUFFER...= 
75a0: 30 78 30 30 30 30 30 32 2c 0d 0a 09 44 33 44 31  0x000002,...D3D1
75b0: 30 5f 46 4f 52 4d 41 54 5f 53 55 50 50 4f 52 54  0_FORMAT_SUPPORT
75c0: 5f 49 41 5f 49 4e 44 45 58 5f 42 55 46 46 45 52  _IA_INDEX_BUFFER
75d0: 09 09 09 3d 20 30 78 30 30 30 30 30 34 2c 0d 0a  ...= 0x000004,..
75e0: 09 44 33 44 31 30 5f 46 4f 52 4d 41 54 5f 53 55  .D3D10_FORMAT_SU
75f0: 50 50 4f 52 54 5f 53 4f 5f 42 55 46 46 45 52 09  PPORT_SO_BUFFER.
7600: 09 09 09 09 3d 20 30 78 30 30 30 30 30 38 2c 0d  ....= 0x000008,.
7610: 0a 09 44 33 44 31 30 5f 46 4f 52 4d 41 54 5f 53  ..D3D10_FORMAT_S
7620: 55 50 50 4f 52 54 5f 54 45 58 54 55 52 45 31 44  UPPORT_TEXTURE1D
7630: 09 09 09 09 09 3d 20 30 78 30 30 30 30 31 30 2c  .....= 0x000010,
7640: 0d 0a 09 44 33 44 31 30 5f 46 4f 52 4d 41 54 5f  ...D3D10_FORMAT_
7650: 53 55 50 50 4f 52 54 5f 54 45 58 54 55 52 45 32  SUPPORT_TEXTURE2
7660: 44 09 09 09 09 09 3d 20 30 78 30 30 30 30 32 30  D.....= 0x000020
7670: 2c 0d 0a 09 44 33 44 31 30 5f 46 4f 52 4d 41 54  ,...D3D10_FORMAT
7680: 5f 53 55 50 50 4f 52 54 5f 54 45 58 54 55 52 45  _SUPPORT_TEXTURE
7690: 33 44 09 09 09 09 09 3d 20 30 78 30 30 30 30 34  3D.....= 0x00004
76a0: 30 2c 0d 0a 09 44 33 44 31 30 5f 46 4f 52 4d 41  0,...D3D10_FORMA
76b0: 54 5f 53 55 50 50 4f 52 54 5f 54 45 58 54 55 52  T_SUPPORT_TEXTUR
76c0: 45 43 55 42 45 09 09 09 09 3d 20 30 78 30 30 30  ECUBE....= 0x000
76d0: 30 38 30 2c 0d 0a 09 44 33 44 31 30 5f 46 4f 52  080,...D3D10_FOR
76e0: 4d 41 54 5f 53 55 50 50 4f 52 54 5f 53 48 41 44  MAT_SUPPORT_SHAD
76f0: 45 52 5f 4c 4f 41 44 09 09 09 09 3d 20 30 78 30  ER_LOAD....= 0x0
7700: 30 30 31 30 30 2c 0d 0a 09 44 33 44 31 30 5f 46  00100,...D3D10_F
7710: 4f 52 4d 41 54 5f 53 55 50 50 4f 52 54 5f 53 48  ORMAT_SUPPORT_SH
7720: 41 44 45 52 5f 53 41 4d 50 4c 45 09 09 09 09 3d  ADER_SAMPLE....=
7730: 20 30 78 30 30 30 32 30 30 2c 0d 0a 09 44 33 44   0x000200,...D3D
7740: 31 30 5f 46 4f 52 4d 41 54 5f 53 55 50 50 4f 52  10_FORMAT_SUPPOR
7750: 54 5f 53 48 41 44 45 52 5f 53 41 4d 50 4c 45 5f  T_SHADER_SAMPLE_
7760: 43 4f 4d 50 41 52 49 53 4f 4e 09 3d 20 30 78 30  COMPARISON.= 0x0
7770: 30 30 34 30 30 2c 0d 0a 09 44 33 44 31 30 5f 46  00400,...D3D10_F
7780: 4f 52 4d 41 54 5f 53 55 50 50 4f 52 54 5f 53 48  ORMAT_SUPPORT_SH
7790: 41 44 45 52 5f 53 41 4d 50 4c 45 5f 4d 4f 4e 4f  ADER_SAMPLE_MONO
77a0: 5f 54 45 58 54 09 3d 20 30 78 30 30 30 38 30 30  _TEXT.= 0x000800
77b0: 2c 0d 0a 09 44 33 44 31 30 5f 46 4f 52 4d 41 54  ,...D3D10_FORMAT
77c0: 5f 53 55 50 50 4f 52 54 5f 4d 49 50 09 09 09 09  _SUPPORT_MIP....
77d0: 09 09 3d 20 30 78 30 30 31 30 30 30 2c 0d 0a 09  ..= 0x001000,...
77e0: 44 33 44 31 30 5f 46 4f 52 4d 41 54 5f 53 55 50  D3D10_FORMAT_SUP
77f0: 50 4f 52 54 5f 4d 49 50 5f 41 55 54 4f 47 45 4e  PORT_MIP_AUTOGEN
7800: 09 09 09 09 3d 20 30 78 30 30 32 30 30 30 2c 0d  ....= 0x002000,.
7810: 0a 09 44 33 44 31 30 5f 46 4f 52 4d 41 54 5f 53  ..D3D10_FORMAT_S
7820: 55 50 50 4f 52 54 5f 52 45 4e 44 45 52 5f 54 41  UPPORT_RENDER_TA
7830: 52 47 45 54 09 09 09 09 3d 20 30 78 30 30 34 30  RGET....= 0x0040
7840: 30 30 2c 0d 0a 09 44 33 44 31 30 5f 46 4f 52 4d  00,...D3D10_FORM
7850: 41 54 5f 53 55 50 50 4f 52 54 5f 42 4c 45 4e 44  AT_SUPPORT_BLEND
7860: 41 42 4c 45 09 09 09 09 09 3d 20 30 78 30 30 38  ABLE.....= 0x008
7870: 30 30 30 2c 0d 0a 09 44 33 44 31 30 5f 46 4f 52  000,...D3D10_FOR
7880: 4d 41 54 5f 53 55 50 50 4f 52 54 5f 44 45 50 54  MAT_SUPPORT_DEPT
7890: 48 5f 53 54 45 4e 43 49 4c 09 09 09 09 3d 20 30  H_STENCIL....= 0
78a0: 78 30 31 30 30 30 30 2c 0d 0a 09 44 33 44 31 30  x010000,...D3D10
78b0: 5f 46 4f 52 4d 41 54 5f 53 55 50 50 4f 52 54 5f  _FORMAT_SUPPORT_
78c0: 43 50 55 5f 4c 4f 43 4b 41 42 4c 45 09 09 09 09  CPU_LOCKABLE....
78d0: 3d 20 30 78 30 32 30 30 30 30 2c 0d 0a 09 44 33  = 0x020000,...D3
78e0: 44 31 30 5f 46 4f 52 4d 41 54 5f 53 55 50 50 4f  D10_FORMAT_SUPPO
78f0: 52 54 5f 4d 55 4c 54 49 53 41 4d 50 4c 45 5f 52  RT_MULTISAMPLE_R
7900: 45 53 4f 4c 56 45 09 09 3d 20 30 78 30 34 30 30  ESOLVE..= 0x0400
7910: 30 30 2c 0d 0a 09 44 33 44 31 30 5f 46 4f 52 4d  00,...D3D10_FORM
7920: 41 54 5f 53 55 50 50 4f 52 54 5f 44 49 53 50 4c  AT_SUPPORT_DISPL
7930: 41 59 09 09 09 09 09 3d 20 30 78 30 38 30 30 30  AY.....= 0x08000
7940: 30 2c 0d 0a 09 44 33 44 31 30 5f 46 4f 52 4d 41  0,...D3D10_FORMA
7950: 54 5f 53 55 50 50 4f 52 54 5f 43 41 53 54 5f 57  T_SUPPORT_CAST_W
7960: 49 54 48 49 4e 5f 42 49 54 5f 4c 41 59 4f 55 54  ITHIN_BIT_LAYOUT
7970: 09 09 3d 20 30 78 31 30 30 30 30 30 2c 0d 0a 09  ..= 0x100000,...
7980: 44 33 44 31 30 5f 46 4f 52 4d 41 54 5f 53 55 50  D3D10_FORMAT_SUP
7990: 50 4f 52 54 5f 4d 55 4c 54 49 53 41 4d 50 4c 45  PORT_MULTISAMPLE
79a0: 5f 52 45 4e 44 45 52 54 41 52 47 45 54 09 3d 20  _RENDERTARGET.= 
79b0: 30 78 32 30 30 30 30 30 2c 0d 0a 09 44 33 44 31  0x200000,...D3D1
79c0: 30 5f 46 4f 52 4d 41 54 5f 53 55 50 50 4f 52 54  0_FORMAT_SUPPORT
79d0: 5f 4d 55 4c 54 49 53 41 4d 50 4c 45 5f 4c 4f 41  _MULTISAMPLE_LOA
79e0: 44 09 09 09 3d 20 30 78 34 30 30 30 30 30 2c 0d  D...= 0x400000,.
79f0: 0a 09 44 33 44 31 30 5f 46 4f 52 4d 41 54 5f 53  ..D3D10_FORMAT_S
7a00: 55 50 50 4f 52 54 5f 53 48 41 44 45 52 5f 47 41  UPPORT_SHADER_GA
7a10: 54 48 45 52 09 09 09 09 3d 20 30 78 38 30 30 30  THER....= 0x8000
7a20: 30 30 0d 0a 7d 0d 0a 0d 0a 69 6e 74 65 72 66 61  00..}....interfa
7a30: 63 65 20 49 44 33 44 31 30 41 73 79 6e 63 68 72  ce ID3D10Asynchr
7a40: 6f 6e 6f 75 73 20 3a 20 49 44 33 44 31 30 44 65  onous : ID3D10De
7a50: 76 69 63 65 43 68 69 6c 64 20 7b 0d 0a 09 65 78  viceChild {...ex
7a60: 74 65 72 6e 28 57 69 6e 64 6f 77 73 29 20 3a 0d  tern(Windows) :.
7a70: 0a 09 76 6f 69 64 20 42 65 67 69 6e 28 29 3b 0d  ..void Begin();.
7a80: 0a 09 76 6f 69 64 20 45 6e 64 28 29 3b 0d 0a 09  ..void End();...
7a90: 48 52 45 53 55 4c 54 20 47 65 74 44 61 74 61 28  HRESULT GetData(
7aa0: 76 6f 69 64 20 2a 70 44 61 74 61 2c 20 55 49 4e  void *pData, UIN
7ab0: 54 20 44 61 74 61 53 69 7a 65 2c 20 55 49 4e 54  T DataSize, UINT
7ac0: 20 47 65 74 44 61 74 61 46 6c 61 67 73 29 3b 0d   GetDataFlags);.
7ad0: 0a 09 55 49 4e 54 20 47 65 74 44 61 74 61 53 69  ..UINT GetDataSi
7ae0: 7a 65 28 29 3b 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d  ze();..}....enum
7af0: 20 44 33 44 31 30 5f 41 53 59 4e 43 5f 47 45 54   D3D10_ASYNC_GET
7b00: 44 41 54 41 5f 46 4c 41 47 20 7b 0d 0a 09 44 33  DATA_FLAG {...D3
7b10: 44 31 30 5f 41 53 59 4e 43 5f 47 45 54 44 41 54  D10_ASYNC_GETDAT
7b20: 41 5f 44 4f 4e 4f 54 46 4c 55 53 48 09 3d 20 30  A_DONOTFLUSH.= 0
7b30: 78 31 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d 20 44 33  x1..}....enum D3
7b40: 44 31 30 5f 51 55 45 52 59 20 7b 0d 0a 09 44 33  D10_QUERY {...D3
7b50: 44 31 30 5f 51 55 45 52 59 5f 45 56 45 4e 54 09  D10_QUERY_EVENT.
7b60: 09 09 09 09 3d 20 30 2c 0d 0a 09 44 33 44 31 30  ....= 0,...D3D10
7b70: 5f 51 55 45 52 59 5f 4f 43 43 4c 55 53 49 4f 4e  _QUERY_OCCLUSION
7b80: 09 09 09 09 3d 20 28 44 33 44 31 30 5f 51 55 45  ....= (D3D10_QUE
7b90: 52 59 5f 45 56 45 4e 54 20 2b 20 31 29 2c 0d 0a  RY_EVENT + 1),..
7ba0: 09 44 33 44 31 30 5f 51 55 45 52 59 5f 54 49 4d  .D3D10_QUERY_TIM
7bb0: 45 53 54 41 4d 50 09 09 09 09 3d 20 28 44 33 44  ESTAMP....= (D3D
7bc0: 31 30 5f 51 55 45 52 59 5f 4f 43 43 4c 55 53 49  10_QUERY_OCCLUSI
7bd0: 4f 4e 20 2b 20 31 29 2c 0d 0a 09 44 33 44 31 30  ON + 1),...D3D10
7be0: 5f 51 55 45 52 59 5f 54 49 4d 45 53 54 41 4d 50  _QUERY_TIMESTAMP
7bf0: 5f 44 49 53 4a 4f 49 4e 54 09 09 3d 20 28 44 33  _DISJOINT..= (D3
7c00: 44 31 30 5f 51 55 45 52 59 5f 54 49 4d 45 53 54  D10_QUERY_TIMEST
7c10: 41 4d 50 20 2b 20 31 29 2c 0d 0a 09 44 33 44 31  AMP + 1),...D3D1
7c20: 30 5f 51 55 45 52 59 5f 50 49 50 45 4c 49 4e 45  0_QUERY_PIPELINE
7c30: 5f 53 54 41 54 49 53 54 49 43 53 09 09 3d 20 28  _STATISTICS..= (
7c40: 44 33 44 31 30 5f 51 55 45 52 59 5f 54 49 4d 45  D3D10_QUERY_TIME
7c50: 53 54 41 4d 50 5f 44 49 53 4a 4f 49 4e 54 20 2b  STAMP_DISJOINT +
7c60: 20 31 29 2c 0d 0a 09 44 33 44 31 30 5f 51 55 45   1),...D3D10_QUE
7c70: 52 59 5f 4f 43 43 4c 55 53 49 4f 4e 5f 50 52 45  RY_OCCLUSION_PRE
7c80: 44 49 43 41 54 45 09 09 3d 20 28 44 33 44 31 30  DICATE..= (D3D10
7c90: 5f 51 55 45 52 59 5f 50 49 50 45 4c 49 4e 45 5f  _QUERY_PIPELINE_
7ca0: 53 54 41 54 49 53 54 49 43 53 20 2b 20 31 29 2c  STATISTICS + 1),
7cb0: 0d 0a 09 44 33 44 31 30 5f 51 55 45 52 59 5f 53  ...D3D10_QUERY_S
7cc0: 4f 5f 53 54 41 54 49 53 54 49 43 53 09 09 09 3d  O_STATISTICS...=
7cd0: 20 28 44 33 44 31 30 5f 51 55 45 52 59 5f 4f 43   (D3D10_QUERY_OC
7ce0: 43 4c 55 53 49 4f 4e 5f 50 52 45 44 49 43 41 54  CLUSION_PREDICAT
7cf0: 45 20 2b 20 31 29 2c 0d 0a 09 44 33 44 31 30 5f  E + 1),...D3D10_
7d00: 51 55 45 52 59 5f 53 4f 5f 4f 56 45 52 46 4c 4f  QUERY_SO_OVERFLO
7d10: 57 5f 50 52 45 44 49 43 41 54 45 09 3d 20 28 44  W_PREDICATE.= (D
7d20: 33 44 31 30 5f 51 55 45 52 59 5f 53 4f 5f 53 54  3D10_QUERY_SO_ST
7d30: 41 54 49 53 54 49 43 53 20 2b 20 31 29 0d 0a 7d  ATISTICS + 1)..}
7d40: 0d 0a 0d 0a 65 6e 75 6d 20 44 33 44 31 30 5f 51  ....enum D3D10_Q
7d50: 55 45 52 59 5f 4d 49 53 43 5f 46 4c 41 47 20 7b  UERY_MISC_FLAG {
7d60: 0d 0a 09 44 33 44 31 30 5f 51 55 45 52 59 5f 4d  ...D3D10_QUERY_M
7d70: 49 53 43 5f 50 52 45 44 49 43 41 54 45 48 49 4e  ISC_PREDICATEHIN
7d80: 54 20 3d 20 30 78 30 31 0d 0a 7d 0d 0a 0d 0a 73  T = 0x01..}....s
7d90: 74 72 75 63 74 20 44 33 44 31 30 5f 51 55 45 52  truct D3D10_QUER
7da0: 59 5f 44 45 53 43 20 7b 0d 0a 09 44 33 44 31 30  Y_DESC {...D3D10
7db0: 5f 51 55 45 52 59 20 51 75 65 72 79 3b 0d 0a 09  _QUERY Query;...
7dc0: 55 49 4e 54 20 4d 69 73 63 46 6c 61 67 73 3b 0d  UINT MiscFlags;.
7dd0: 0a 7d 0d 0a 0d 0a 69 6e 74 65 72 66 61 63 65 20  .}....interface 
7de0: 49 44 33 44 31 30 51 75 65 72 79 20 3a 20 49 44  ID3D10Query : ID
7df0: 33 44 31 30 41 73 79 6e 63 68 72 6f 6e 6f 75 73  3D10Asynchronous
7e00: 20 7b 0d 0a 09 65 78 74 65 72 6e 28 57 69 6e 64   {...extern(Wind
7e10: 6f 77 73 29 20 3a 0d 0a 09 76 6f 69 64 20 47 65  ows) :...void Ge
7e20: 74 44 65 73 63 28 44 33 44 31 30 5f 51 55 45 52  tDesc(D3D10_QUER
7e30: 59 5f 44 45 53 43 20 2a 70 44 65 73 63 29 3b 0d  Y_DESC *pDesc);.
7e40: 0a 7d 0d 0a 0d 0a 69 6e 74 65 72 66 61 63 65 20  .}....interface 
7e50: 49 44 33 44 31 30 50 72 65 64 69 63 61 74 65 20  ID3D10Predicate 
7e60: 3a 20 49 44 33 44 31 30 51 75 65 72 79 20 7b 20  : ID3D10Query { 
7e70: 7d 0d 0a 0d 0a 73 74 72 75 63 74 20 44 33 44 31  }....struct D3D1
7e80: 30 5f 51 55 45 52 59 5f 44 41 54 41 5f 54 49 4d  0_QUERY_DATA_TIM
7e90: 45 53 54 41 4d 50 5f 44 49 53 4a 4f 49 4e 54 20  ESTAMP_DISJOINT 
7ea0: 7b 0d 0a 09 55 49 4e 54 36 34 20 46 72 65 71 75  {...UINT64 Frequ
7eb0: 65 6e 63 79 3b 0d 0a 09 42 4f 4f 4c 20 44 69 73  ency;...BOOL Dis
7ec0: 6a 6f 69 6e 74 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72  joint;..}....str
7ed0: 75 63 74 20 44 33 44 31 30 5f 51 55 45 52 59 5f  uct D3D10_QUERY_
7ee0: 44 41 54 41 5f 50 49 50 45 4c 49 4e 45 5f 53 54  DATA_PIPELINE_ST
7ef0: 41 54 49 53 54 49 43 53 20 7b 0d 0a 09 55 49 4e  ATISTICS {...UIN
7f00: 54 36 34 20 49 41 56 65 72 74 69 63 65 73 3b 0d  T64 IAVertices;.
7f10: 0a 09 55 49 4e 54 36 34 20 49 41 50 72 69 6d 69  ..UINT64 IAPrimi
7f20: 74 69 76 65 73 3b 0d 0a 09 55 49 4e 54 36 34 20  tives;...UINT64 
7f30: 56 53 49 6e 76 6f 63 61 74 69 6f 6e 73 3b 0d 0a  VSInvocations;..
7f40: 09 55 49 4e 54 36 34 20 47 53 49 6e 76 6f 63 61  .UINT64 GSInvoca
7f50: 74 69 6f 6e 73 3b 0d 0a 09 55 49 4e 54 36 34 20  tions;...UINT64 
7f60: 47 53 50 72 69 6d 69 74 69 76 65 73 3b 0d 0a 09  GSPrimitives;...
7f70: 55 49 4e 54 36 34 20 43 49 6e 76 6f 63 61 74 69  UINT64 CInvocati
7f80: 6f 6e 73 3b 0d 0a 09 55 49 4e 54 36 34 20 43 50  ons;...UINT64 CP
7f90: 72 69 6d 69 74 69 76 65 73 3b 0d 0a 09 55 49 4e  rimitives;...UIN
7fa0: 54 36 34 20 50 53 49 6e 76 6f 63 61 74 69 6f 6e  T64 PSInvocation
7fb0: 73 3b 0d 0a 7d 0d 0a 0d 0a 73 74 72 75 63 74 20  s;..}....struct 
7fc0: 44 33 44 31 30 5f 51 55 45 52 59 5f 44 41 54 41  D3D10_QUERY_DATA
7fd0: 5f 53 4f 5f 53 54 41 54 49 53 54 49 43 53 20 7b  _SO_STATISTICS {
7fe0: 0d 0a 09 55 49 4e 54 36 34 20 4e 75 6d 50 72 69  ...UINT64 NumPri
7ff0: 6d 69 74 69 76 65 73 57 72 69 74 74 65 6e 3b 0d  mitivesWritten;.
8000: 0a 09 55 49 4e 54 36 34 20 50 72 69 6d 69 74 69  ..UINT64 Primiti
8010: 76 65 73 53 74 6f 72 61 67 65 4e 65 65 64 65 64  vesStorageNeeded
8020: 3b 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d 20 44 33 44  ;..}....enum D3D
8030: 31 30 5f 43 4f 55 4e 54 45 52 20 7b 0d 0a 09 44  10_COUNTER {...D
8040: 33 44 31 30 5f 43 4f 55 4e 54 45 52 5f 47 50 55  3D10_COUNTER_GPU
8050: 5f 49 44 4c 45 09 09 09 09 09 09 09 09 3d 20 30  _IDLE........= 0
8060: 2c 0d 0a 09 44 33 44 31 30 5f 43 4f 55 4e 54 45  ,...D3D10_COUNTE
8070: 52 5f 56 45 52 54 45 58 5f 50 52 4f 43 45 53 53  R_VERTEX_PROCESS
8080: 49 4e 47 09 09 09 09 09 09 3d 20 28 44 33 44 31  ING......= (D3D1
8090: 30 5f 43 4f 55 4e 54 45 52 5f 47 50 55 5f 49 44  0_COUNTER_GPU_ID
80a0: 4c 45 20 2b 20 31 29 2c 0d 0a 09 44 33 44 31 30  LE + 1),...D3D10
80b0: 5f 43 4f 55 4e 54 45 52 5f 47 45 4f 4d 45 54 52  _COUNTER_GEOMETR
80c0: 59 5f 50 52 4f 43 45 53 53 49 4e 47 09 09 09 09  Y_PROCESSING....
80d0: 09 3d 20 28 44 33 44 31 30 5f 43 4f 55 4e 54 45  .= (D3D10_COUNTE
80e0: 52 5f 56 45 52 54 45 58 5f 50 52 4f 43 45 53 53  R_VERTEX_PROCESS
80f0: 49 4e 47 20 2b 20 31 29 2c 0d 0a 09 44 33 44 31  ING + 1),...D3D1
8100: 30 5f 43 4f 55 4e 54 45 52 5f 50 49 58 45 4c 5f  0_COUNTER_PIXEL_
8110: 50 52 4f 43 45 53 53 49 4e 47 09 09 09 09 09 09  PROCESSING......
8120: 3d 20 28 44 33 44 31 30 5f 43 4f 55 4e 54 45 52  = (D3D10_COUNTER
8130: 5f 47 45 4f 4d 45 54 52 59 5f 50 52 4f 43 45 53  _GEOMETRY_PROCES
8140: 53 49 4e 47 20 2b 20 31 29 2c 0d 0a 09 44 33 44  SING + 1),...D3D
8150: 31 30 5f 43 4f 55 4e 54 45 52 5f 4f 54 48 45 52  10_COUNTER_OTHER
8160: 5f 47 50 55 5f 50 52 4f 43 45 53 53 49 4e 47 09  _GPU_PROCESSING.
8170: 09 09 09 09 3d 20 28 44 33 44 31 30 5f 43 4f 55  ....= (D3D10_COU
8180: 4e 54 45 52 5f 50 49 58 45 4c 5f 50 52 4f 43 45  NTER_PIXEL_PROCE
8190: 53 53 49 4e 47 20 2b 20 31 29 2c 0d 0a 09 44 33  SSING + 1),...D3
81a0: 44 31 30 5f 43 4f 55 4e 54 45 52 5f 48 4f 53 54  D10_COUNTER_HOST
81b0: 5f 41 44 41 50 54 45 52 5f 42 41 4e 44 57 49 44  _ADAPTER_BANDWID
81c0: 54 48 5f 55 54 49 4c 49 5a 41 54 49 4f 4e 09 3d  TH_UTILIZATION.=
81d0: 20 28 44 33 44 31 30 5f 43 4f 55 4e 54 45 52 5f   (D3D10_COUNTER_
81e0: 4f 54 48 45 52 5f 47 50 55 5f 50 52 4f 43 45 53  OTHER_GPU_PROCES
81f0: 53 49 4e 47 20 2b 20 31 29 2c 0d 0a 09 44 33 44  SING + 1),...D3D
8200: 31 30 5f 43 4f 55 4e 54 45 52 5f 4c 4f 43 41 4c  10_COUNTER_LOCAL
8210: 5f 56 49 44 4d 45 4d 5f 42 41 4e 44 57 49 44 54  _VIDMEM_BANDWIDT
8220: 48 5f 55 54 49 4c 49 5a 41 54 49 4f 4e 09 3d 20  H_UTILIZATION.= 
8230: 28 44 33 44 31 30 5f 43 4f 55 4e 54 45 52 5f 48  (D3D10_COUNTER_H
8240: 4f 53 54 5f 41 44 41 50 54 45 52 5f 42 41 4e 44  OST_ADAPTER_BAND
8250: 57 49 44 54 48 5f 55 54 49 4c 49 5a 41 54 49 4f  WIDTH_UTILIZATIO
8260: 4e 20 2b 20 31 29 2c 0d 0a 09 44 33 44 31 30 5f  N + 1),...D3D10_
8270: 43 4f 55 4e 54 45 52 5f 56 45 52 54 45 58 5f 54  COUNTER_VERTEX_T
8280: 48 52 4f 55 47 48 50 55 54 5f 55 54 49 4c 49 5a  HROUGHPUT_UTILIZ
8290: 41 54 49 4f 4e 09 09 09 3d 20 28 44 33 44 31 30  ATION...= (D3D10
82a0: 5f 43 4f 55 4e 54 45 52 5f 4c 4f 43 41 4c 5f 56  _COUNTER_LOCAL_V
82b0: 49 44 4d 45 4d 5f 42 41 4e 44 57 49 44 54 48 5f  IDMEM_BANDWIDTH_
82c0: 55 54 49 4c 49 5a 41 54 49 4f 4e 20 2b 20 31 29  UTILIZATION + 1)
82d0: 2c 0d 0a 09 44 33 44 31 30 5f 43 4f 55 4e 54 45  ,...D3D10_COUNTE
82e0: 52 5f 54 52 49 41 4e 47 4c 45 5f 53 45 54 55 50  R_TRIANGLE_SETUP
82f0: 5f 54 48 52 4f 55 47 48 50 55 54 5f 55 54 49 4c  _THROUGHPUT_UTIL
8300: 49 5a 41 54 49 4f 4e 09 3d 20 28 44 33 44 31 30  IZATION.= (D3D10
8310: 5f 43 4f 55 4e 54 45 52 5f 56 45 52 54 45 58 5f  _COUNTER_VERTEX_
8320: 54 48 52 4f 55 47 48 50 55 54 5f 55 54 49 4c 49  THROUGHPUT_UTILI
8330: 5a 41 54 49 4f 4e 20 2b 20 31 29 2c 0d 0a 09 44  ZATION + 1),...D
8340: 33 44 31 30 5f 43 4f 55 4e 54 45 52 5f 46 49 4c  3D10_COUNTER_FIL
8350: 4c 52 41 54 45 5f 54 48 52 4f 55 47 48 50 55 54  LRATE_THROUGHPUT
8360: 5f 55 54 49 4c 49 5a 41 54 49 4f 4e 09 09 3d 20  _UTILIZATION..= 
8370: 28 44 33 44 31 30 5f 43 4f 55 4e 54 45 52 5f 54  (D3D10_COUNTER_T
8380: 52 49 41 4e 47 4c 45 5f 53 45 54 55 50 5f 54 48  RIANGLE_SETUP_TH
8390: 52 4f 55 47 48 50 55 54 5f 55 54 49 4c 49 5a 41  ROUGHPUT_UTILIZA
83a0: 54 49 4f 4e 20 2b 20 31 29 2c 0d 0a 09 44 33 44  TION + 1),...D3D
83b0: 31 30 5f 43 4f 55 4e 54 45 52 5f 56 53 5f 4d 45  10_COUNTER_VS_ME
83c0: 4d 4f 52 59 5f 4c 49 4d 49 54 45 44 09 09 09 09  MORY_LIMITED....
83d0: 09 09 3d 20 28 44 33 44 31 30 5f 43 4f 55 4e 54  ..= (D3D10_COUNT
83e0: 45 52 5f 46 49 4c 4c 52 41 54 45 5f 54 48 52 4f  ER_FILLRATE_THRO
83f0: 55 47 48 50 55 54 5f 55 54 49 4c 49 5a 41 54 49  UGHPUT_UTILIZATI
8400: 4f 4e 20 2b 20 31 29 2c 0d 0a 09 44 33 44 31 30  ON + 1),...D3D10
8410: 5f 43 4f 55 4e 54 45 52 5f 56 53 5f 43 4f 4d 50  _COUNTER_VS_COMP
8420: 55 54 41 54 49 4f 4e 5f 4c 49 4d 49 54 45 44 09  UTATION_LIMITED.
8430: 09 09 09 3d 20 28 44 33 44 31 30 5f 43 4f 55 4e  ...= (D3D10_COUN
8440: 54 45 52 5f 56 53 5f 4d 45 4d 4f 52 59 5f 4c 49  TER_VS_MEMORY_LI
8450: 4d 49 54 45 44 20 2b 20 31 29 2c 0d 0a 09 44 33  MITED + 1),...D3
8460: 44 31 30 5f 43 4f 55 4e 54 45 52 5f 47 53 5f 4d  D10_COUNTER_GS_M
8470: 45 4d 4f 52 59 5f 4c 49 4d 49 54 45 44 09 09 09  EMORY_LIMITED...
8480: 09 09 09 3d 20 28 44 33 44 31 30 5f 43 4f 55 4e  ...= (D3D10_COUN
8490: 54 45 52 5f 56 53 5f 43 4f 4d 50 55 54 41 54 49  TER_VS_COMPUTATI
84a0: 4f 4e 5f 4c 49 4d 49 54 45 44 20 2b 20 31 29 2c  ON_LIMITED + 1),
84b0: 0d 0a 09 44 33 44 31 30 5f 43 4f 55 4e 54 45 52  ...D3D10_COUNTER
84c0: 5f 47 53 5f 43 4f 4d 50 55 54 41 54 49 4f 4e 5f  _GS_COMPUTATION_
84d0: 4c 49 4d 49 54 45 44 09 09 09 09 3d 20 28 44 33  LIMITED....= (D3
84e0: 44 31 30 5f 43 4f 55 4e 54 45 52 5f 47 53 5f 4d  D10_COUNTER_GS_M
84f0: 45 4d 4f 52 59 5f 4c 49 4d 49 54 45 44 20 2b 20  EMORY_LIMITED + 
8500: 31 29 2c 0d 0a 09 44 33 44 31 30 5f 43 4f 55 4e  1),...D3D10_COUN
8510: 54 45 52 5f 50 53 5f 4d 45 4d 4f 52 59 5f 4c 49  TER_PS_MEMORY_LI
8520: 4d 49 54 45 44 09 09 09 09 09 09 3d 20 28 44 33  MITED......= (D3
8530: 44 31 30 5f 43 4f 55 4e 54 45 52 5f 47 53 5f 43  D10_COUNTER_GS_C
8540: 4f 4d 50 55 54 41 54 49 4f 4e 5f 4c 49 4d 49 54  OMPUTATION_LIMIT
8550: 45 44 20 2b 20 31 29 2c 0d 0a 09 44 33 44 31 30  ED + 1),...D3D10
8560: 5f 43 4f 55 4e 54 45 52 5f 50 53 5f 43 4f 4d 50  _COUNTER_PS_COMP
8570: 55 54 41 54 49 4f 4e 5f 4c 49 4d 49 54 45 44 09  UTATION_LIMITED.
8580: 09 09 09 3d 20 28 44 33 44 31 30 5f 43 4f 55 4e  ...= (D3D10_COUN
8590: 54 45 52 5f 50 53 5f 4d 45 4d 4f 52 59 5f 4c 49  TER_PS_MEMORY_LI
85a0: 4d 49 54 45 44 20 2b 20 31 29 2c 0d 0a 09 44 33  MITED + 1),...D3
85b0: 44 31 30 5f 43 4f 55 4e 54 45 52 5f 50 4f 53 54  D10_COUNTER_POST
85c0: 5f 54 52 41 4e 53 46 4f 52 4d 5f 43 41 43 48 45  _TRANSFORM_CACHE
85d0: 5f 48 49 54 5f 52 41 54 45 09 09 09 3d 20 28 44  _HIT_RATE...= (D
85e0: 33 44 31 30 5f 43 4f 55 4e 54 45 52 5f 50 53 5f  3D10_COUNTER_PS_
85f0: 43 4f 4d 50 55 54 41 54 49 4f 4e 5f 4c 49 4d 49  COMPUTATION_LIMI
8600: 54 45 44 20 2b 20 31 29 2c 0d 0a 09 44 33 44 31  TED + 1),...D3D1
8610: 30 5f 43 4f 55 4e 54 45 52 5f 54 45 58 54 55 52  0_COUNTER_TEXTUR
8620: 45 5f 43 41 43 48 45 5f 48 49 54 5f 52 41 54 45  E_CACHE_HIT_RATE
8630: 09 09 09 09 3d 20 28 44 33 44 31 30 5f 43 4f 55  ....= (D3D10_COU
8640: 4e 54 45 52 5f 50 4f 53 54 5f 54 52 41 4e 53 46  NTER_POST_TRANSF
8650: 4f 52 4d 5f 43 41 43 48 45 5f 48 49 54 5f 52 41  ORM_CACHE_HIT_RA
8660: 54 45 20 2b 20 31 29 2c 0d 0a 09 44 33 44 31 30  TE + 1),...D3D10
8670: 5f 43 4f 55 4e 54 45 52 5f 44 45 56 49 43 45 5f  _COUNTER_DEVICE_
8680: 44 45 50 45 4e 44 45 4e 54 5f 30 09 09 09 09 09  DEPENDENT_0.....
8690: 3d 20 30 78 34 30 30 30 30 30 30 30 0d 0a 7d 0d  = 0x40000000..}.
86a0: 0a 0d 0a 65 6e 75 6d 20 44 33 44 31 30 5f 43 4f  ...enum D3D10_CO
86b0: 55 4e 54 45 52 5f 54 59 50 45 20 7b 0d 0a 09 44  UNTER_TYPE {...D
86c0: 33 44 31 30 5f 43 4f 55 4e 54 45 52 5f 54 59 50  3D10_COUNTER_TYP
86d0: 45 5f 46 4c 4f 41 54 33 32 09 3d 20 30 2c 0d 0a  E_FLOAT32.= 0,..
86e0: 09 44 33 44 31 30 5f 43 4f 55 4e 54 45 52 5f 54  .D3D10_COUNTER_T
86f0: 59 50 45 5f 55 49 4e 54 31 36 09 3d 20 28 44 33  YPE_UINT16.= (D3
8700: 44 31 30 5f 43 4f 55 4e 54 45 52 5f 54 59 50 45  D10_COUNTER_TYPE
8710: 5f 46 4c 4f 41 54 33 32 20 2b 20 31 29 2c 0d 0a  _FLOAT32 + 1),..
8720: 09 44 33 44 31 30 5f 43 4f 55 4e 54 45 52 5f 54  .D3D10_COUNTER_T
8730: 59 50 45 5f 55 49 4e 54 33 32 09 3d 20 28 44 33  YPE_UINT32.= (D3
8740: 44 31 30 5f 43 4f 55 4e 54 45 52 5f 54 59 50 45  D10_COUNTER_TYPE
8750: 5f 55 49 4e 54 31 36 20 2b 20 31 29 2c 0d 0a 09  _UINT16 + 1),...
8760: 44 33 44 31 30 5f 43 4f 55 4e 54 45 52 5f 54 59  D3D10_COUNTER_TY
8770: 50 45 5f 55 49 4e 54 36 34 09 3d 20 28 44 33 44  PE_UINT64.= (D3D
8780: 31 30 5f 43 4f 55 4e 54 45 52 5f 54 59 50 45 5f  10_COUNTER_TYPE_
8790: 55 49 4e 54 33 32 20 2b 20 31 29 0d 0a 7d 0d 0a  UINT32 + 1)..}..
87a0: 0d 0a 73 74 72 75 63 74 20 44 33 44 31 30 5f 43  ..struct D3D10_C
87b0: 4f 55 4e 54 45 52 5f 44 45 53 43 20 7b 0d 0a 09  OUNTER_DESC {...
87c0: 44 33 44 31 30 5f 43 4f 55 4e 54 45 52 20 43 6f  D3D10_COUNTER Co
87d0: 75 6e 74 65 72 3b 0d 0a 09 55 49 4e 54 20 4d 69  unter;...UINT Mi
87e0: 73 63 46 6c 61 67 73 3b 0d 0a 7d 0d 0a 0d 0a 73  scFlags;..}....s
87f0: 74 72 75 63 74 20 44 33 44 31 30 5f 43 4f 55 4e  truct D3D10_COUN
8800: 54 45 52 5f 49 4e 46 4f 20 7b 0d 0a 09 44 33 44  TER_INFO {...D3D
8810: 31 30 5f 43 4f 55 4e 54 45 52 20 4c 61 73 74 44  10_COUNTER LastD
8820: 65 76 69 63 65 44 65 70 65 6e 64 65 6e 74 43 6f  eviceDependentCo
8830: 75 6e 74 65 72 3b 0d 0a 09 55 49 4e 54 20 4e 75  unter;...UINT Nu
8840: 6d 53 69 6d 75 6c 74 61 6e 65 6f 75 73 43 6f 75  mSimultaneousCou
8850: 6e 74 65 72 73 3b 0d 0a 09 55 49 4e 54 38 20 4e  nters;...UINT8 N
8860: 75 6d 44 65 74 65 63 74 61 62 6c 65 50 61 72 61  umDetectablePara
8870: 6c 6c 65 6c 55 6e 69 74 73 3b 0d 0a 7d 0d 0a 0d  llelUnits;..}...
8880: 0a 69 6e 74 65 72 66 61 63 65 20 49 44 33 44 31  .interface ID3D1
8890: 30 43 6f 75 6e 74 65 72 20 3a 20 49 44 33 44 31  0Counter : ID3D1
88a0: 30 41 73 79 6e 63 68 72 6f 6e 6f 75 73 20 7b 0d  0Asynchronous {.
88b0: 0a 09 65 78 74 65 72 6e 28 57 69 6e 64 6f 77 73  ..extern(Windows
88c0: 29 20 3a 0d 0a 09 76 6f 69 64 20 47 65 74 44 65  ) :...void GetDe
88d0: 73 63 28 44 33 44 31 30 5f 43 4f 55 4e 54 45 52  sc(D3D10_COUNTER
88e0: 5f 44 45 53 43 20 2a 70 44 65 73 63 29 3b 0d 0a  _DESC *pDesc);..
88f0: 7d 0d 0a 0d 0a 69 6e 74 65 72 66 61 63 65 20 49  }....interface I
8900: 44 33 44 31 30 44 65 76 69 63 65 20 3a 20 49 55  D3D10Device : IU
8910: 6e 6b 6e 6f 77 6e 20 7b 0d 0a 09 65 78 74 65 72  nknown {...exter
8920: 6e 28 57 69 6e 64 6f 77 73 29 20 3a 0d 0a 09 76  n(Windows) :...v
8930: 6f 69 64 20 56 53 53 65 74 43 6f 6e 73 74 61 6e  oid VSSetConstan
8940: 74 42 75 66 66 65 72 73 28 55 49 4e 54 20 53 74  tBuffers(UINT St
8950: 61 72 74 53 6c 6f 74 2c 20 55 49 4e 54 20 4e 75  artSlot, UINT Nu
8960: 6d 42 75 66 66 65 72 73 2c 20 49 44 33 44 31 30  mBuffers, ID3D10
8970: 42 75 66 66 65 72 2a 20 70 70 43 6f 6e 73 74 61  Buffer* ppConsta
8980: 6e 74 42 75 66 66 65 72 73 29 3b 0d 0a 09 76 6f  ntBuffers);...vo
8990: 69 64 20 50 53 53 65 74 53 68 61 64 65 72 52 65  id PSSetShaderRe
89a0: 73 6f 75 72 63 65 73 28 55 49 4e 54 20 53 74 61  sources(UINT Sta
89b0: 72 74 53 6c 6f 74 2c 20 55 49 4e 54 20 4e 75 6d  rtSlot, UINT Num
89c0: 56 69 65 77 73 2c 20 49 44 33 44 31 30 53 68 61  Views, ID3D10Sha
89d0: 64 65 72 52 65 73 6f 75 72 63 65 56 69 65 77 2a  derResourceView*
89e0: 20 70 70 53 68 61 64 65 72 52 65 73 6f 75 72 63   ppShaderResourc
89f0: 65 56 69 65 77 73 29 3b 0d 0a 09 76 6f 69 64 20  eViews);...void 
8a00: 50 53 53 65 74 53 68 61 64 65 72 28 49 44 33 44  PSSetShader(ID3D
8a10: 31 30 50 69 78 65 6c 53 68 61 64 65 72 20 70 50  10PixelShader pP
8a20: 69 78 65 6c 53 68 61 64 65 72 29 3b 0d 0a 09 76  ixelShader);...v
8a30: 6f 69 64 20 50 53 53 65 74 53 61 6d 70 6c 65 72  oid PSSetSampler
8a40: 73 28 55 49 4e 54 20 53 74 61 72 74 53 6c 6f 74  s(UINT StartSlot
8a50: 2c 20 55 49 4e 54 20 4e 75 6d 53 61 6d 70 6c 65  , UINT NumSample
8a60: 72 73 2c 20 49 44 33 44 31 30 53 61 6d 70 6c 65  rs, ID3D10Sample
8a70: 72 53 74 61 74 65 2a 20 70 70 53 61 6d 70 6c 65  rState* ppSample
8a80: 72 73 29 3b 0d 0a 09 76 6f 69 64 20 56 53 53 65  rs);...void VSSe
8a90: 74 53 68 61 64 65 72 28 49 44 33 44 31 30 56 65  tShader(ID3D10Ve
8aa0: 72 74 65 78 53 68 61 64 65 72 20 70 56 65 72 74  rtexShader pVert
8ab0: 65 78 53 68 61 64 65 72 29 3b 0d 0a 09 76 6f 69  exShader);...voi
8ac0: 64 20 44 72 61 77 49 6e 64 65 78 65 64 28 55 49  d DrawIndexed(UI
8ad0: 4e 54 20 49 6e 64 65 78 43 6f 75 6e 74 2c 20 55  NT IndexCount, U
8ae0: 49 4e 54 20 53 74 61 72 74 49 6e 64 65 78 4c 6f  INT StartIndexLo
8af0: 63 61 74 69 6f 6e 2c 20 49 4e 54 20 42 61 73 65  cation, INT Base
8b00: 56 65 72 74 65 78 4c 6f 63 61 74 69 6f 6e 29 3b  VertexLocation);
8b10: 0d 0a 09 76 6f 69 64 20 44 72 61 77 28 55 49 4e  ...void Draw(UIN
8b20: 54 20 56 65 72 74 65 78 43 6f 75 6e 74 2c 20 55  T VertexCount, U
8b30: 49 4e 54 20 53 74 61 72 74 56 65 72 74 65 78 4c  INT StartVertexL
8b40: 6f 63 61 74 69 6f 6e 29 3b 0d 0a 09 76 6f 69 64  ocation);...void
8b50: 20 50 53 53 65 74 43 6f 6e 73 74 61 6e 74 42 75   PSSetConstantBu
8b60: 66 66 65 72 73 28 55 49 4e 54 20 53 74 61 72 74  ffers(UINT Start
8b70: 53 6c 6f 74 2c 20 55 49 4e 54 20 4e 75 6d 42 75  Slot, UINT NumBu
8b80: 66 66 65 72 73 2c 20 49 44 33 44 31 30 42 75 66  ffers, ID3D10Buf
8b90: 66 65 72 2a 20 70 70 43 6f 6e 73 74 61 6e 74 42  fer* ppConstantB
8ba0: 75 66 66 65 72 73 29 3b 0d 0a 09 76 6f 69 64 20  uffers);...void 
8bb0: 49 41 53 65 74 49 6e 70 75 74 4c 61 79 6f 75 74  IASetInputLayout
8bc0: 28 49 44 33 44 31 30 49 6e 70 75 74 4c 61 79 6f  (ID3D10InputLayo
8bd0: 75 74 20 70 49 6e 70 75 74 4c 61 79 6f 75 74 29  ut pInputLayout)
8be0: 3b 0d 0a 09 76 6f 69 64 20 49 41 53 65 74 56 65  ;...void IASetVe
8bf0: 72 74 65 78 42 75 66 66 65 72 73 28 55 49 4e 54  rtexBuffers(UINT
8c00: 20 53 74 61 72 74 53 6c 6f 74 2c 20 55 49 4e 54   StartSlot, UINT
8c10: 20 4e 75 6d 42 75 66 66 65 72 73 2c 20 49 44 33   NumBuffers, ID3
8c20: 44 31 30 42 75 66 66 65 72 2a 20 70 70 56 65 72  D10Buffer* ppVer
8c30: 74 65 78 42 75 66 66 65 72 73 2c 20 55 49 4e 54  texBuffers, UINT
8c40: 2a 20 70 53 74 72 69 64 65 73 2c 20 55 49 4e 54  * pStrides, UINT
8c50: 2a 20 70 4f 66 66 73 65 74 73 29 3b 0d 0a 09 76  * pOffsets);...v
8c60: 6f 69 64 20 49 41 53 65 74 49 6e 64 65 78 42 75  oid IASetIndexBu
8c70: 66 66 65 72 28 49 44 33 44 31 30 42 75 66 66 65  ffer(ID3D10Buffe
8c80: 72 20 70 49 6e 64 65 78 42 75 66 66 65 72 2c 20  r pIndexBuffer, 
8c90: 44 58 47 49 5f 46 4f 52 4d 41 54 20 46 6f 72 6d  DXGI_FORMAT Form
8ca0: 61 74 2c 20 55 49 4e 54 20 4f 66 66 73 65 74 29  at, UINT Offset)
8cb0: 3b 0d 0a 09 76 6f 69 64 20 44 72 61 77 49 6e 64  ;...void DrawInd
8cc0: 65 78 65 64 49 6e 73 74 61 6e 63 65 64 28 55 49  exedInstanced(UI
8cd0: 4e 54 20 49 6e 64 65 78 43 6f 75 6e 74 50 65 72  NT IndexCountPer
8ce0: 49 6e 73 74 61 6e 63 65 2c 20 55 49 4e 54 20 49  Instance, UINT I
8cf0: 6e 73 74 61 6e 63 65 43 6f 75 6e 74 2c 20 55 49  nstanceCount, UI
8d00: 4e 54 20 53 74 61 72 74 49 6e 64 65 78 4c 6f 63  NT StartIndexLoc
8d10: 61 74 69 6f 6e 2c 20 49 4e 54 20 42 61 73 65 56  ation, INT BaseV
8d20: 65 72 74 65 78 4c 6f 63 61 74 69 6f 6e 2c 20 55  ertexLocation, U
8d30: 49 4e 54 20 53 74 61 72 74 49 6e 73 74 61 6e 63  INT StartInstanc
8d40: 65 4c 6f 63 61 74 69 6f 6e 29 3b 0d 0a 09 76 6f  eLocation);...vo
8d50: 69 64 20 44 72 61 77 49 6e 73 74 61 6e 63 65 64  id DrawInstanced
8d60: 28 55 49 4e 54 20 56 65 72 74 65 78 43 6f 75 6e  (UINT VertexCoun
8d70: 74 50 65 72 49 6e 73 74 61 6e 63 65 2c 20 55 49  tPerInstance, UI
8d80: 4e 54 20 49 6e 73 74 61 6e 63 65 43 6f 75 6e 74  NT InstanceCount
8d90: 2c 20 55 49 4e 54 20 53 74 61 72 74 56 65 72 74  , UINT StartVert
8da0: 65 78 4c 6f 63 61 74 69 6f 6e 2c 20 55 49 4e 54  exLocation, UINT
8db0: 20 53 74 61 72 74 49 6e 73 74 61 6e 63 65 4c 6f   StartInstanceLo
8dc0: 63 61 74 69 6f 6e 29 3b 0d 0a 09 76 6f 69 64 20  cation);...void 
8dd0: 47 53 53 65 74 43 6f 6e 73 74 61 6e 74 42 75 66  GSSetConstantBuf
8de0: 66 65 72 73 28 55 49 4e 54 20 53 74 61 72 74 53  fers(UINT StartS
8df0: 6c 6f 74 2c 20 55 49 4e 54 20 4e 75 6d 42 75 66  lot, UINT NumBuf
8e00: 66 65 72 73 2c 20 49 44 33 44 31 30 42 75 66 66  fers, ID3D10Buff
8e10: 65 72 2a 20 70 70 43 6f 6e 73 74 61 6e 74 42 75  er* ppConstantBu
8e20: 66 66 65 72 73 29 3b 0d 0a 09 76 6f 69 64 20 47  ffers);...void G
8e30: 53 53 65 74 53 68 61 64 65 72 28 49 44 33 44 31  SSetShader(ID3D1
8e40: 30 47 65 6f 6d 65 74 72 79 53 68 61 64 65 72 20  0GeometryShader 
8e50: 70 53 68 61 64 65 72 29 3b 0d 0a 09 76 6f 69 64  pShader);...void
8e60: 20 49 41 53 65 74 50 72 69 6d 69 74 69 76 65 54   IASetPrimitiveT
8e70: 6f 70 6f 6c 6f 67 79 28 44 33 44 31 30 5f 50 52  opology(D3D10_PR
8e80: 49 4d 49 54 49 56 45 5f 54 4f 50 4f 4c 4f 47 59  IMITIVE_TOPOLOGY
8e90: 20 54 6f 70 6f 6c 6f 67 79 29 3b 0d 0a 09 76 6f   Topology);...vo
8ea0: 69 64 20 56 53 53 65 74 53 68 61 64 65 72 52 65  id VSSetShaderRe
8eb0: 73 6f 75 72 63 65 73 28 55 49 4e 54 20 53 74 61  sources(UINT Sta
8ec0: 72 74 53 6c 6f 74 2c 20 55 49 4e 54 20 4e 75 6d  rtSlot, UINT Num
8ed0: 56 69 65 77 73 2c 20 49 44 33 44 31 30 53 68 61  Views, ID3D10Sha
8ee0: 64 65 72 52 65 73 6f 75 72 63 65 56 69 65 77 2a  derResourceView*
8ef0: 20 70 70 53 68 61 64 65 72 52 65 73 6f 75 72 63   ppShaderResourc
8f00: 65 56 69 65 77 73 29 3b 0d 0a 09 76 6f 69 64 20  eViews);...void 
8f10: 56 53 53 65 74 53 61 6d 70 6c 65 72 73 28 55 49  VSSetSamplers(UI
8f20: 4e 54 20 53 74 61 72 74 53 6c 6f 74 2c 20 55 49  NT StartSlot, UI
8f30: 4e 54 20 4e 75 6d 53 61 6d 70 6c 65 72 73 2c 20  NT NumSamplers, 
8f40: 49 44 33 44 31 30 53 61 6d 70 6c 65 72 53 74 61  ID3D10SamplerSta
8f50: 74 65 2a 20 70 70 53 61 6d 70 6c 65 72 73 29 3b  te* ppSamplers);
8f60: 0d 0a 09 76 6f 69 64 20 53 65 74 50 72 65 64 69  ...void SetPredi
8f70: 63 61 74 69 6f 6e 28 49 44 33 44 31 30 50 72 65  cation(ID3D10Pre
8f80: 64 69 63 61 74 65 20 70 50 72 65 64 69 63 61 74  dicate pPredicat
8f90: 65 2c 20 42 4f 4f 4c 20 50 72 65 64 69 63 61 74  e, BOOL Predicat
8fa0: 65 56 61 6c 75 65 29 3b 0d 0a 09 76 6f 69 64 20  eValue);...void 
8fb0: 47 53 53 65 74 53 68 61 64 65 72 52 65 73 6f 75  GSSetShaderResou
8fc0: 72 63 65 73 28 55 49 4e 54 20 53 74 61 72 74 53  rces(UINT StartS
8fd0: 6c 6f 74 2c 20 55 49 4e 54 20 4e 75 6d 56 69 65  lot, UINT NumVie
8fe0: 77 73 2c 20 49 44 33 44 31 30 53 68 61 64 65 72  ws, ID3D10Shader
8ff0: 52 65 73 6f 75 72 63 65 56 69 65 77 2a 20 70 70  ResourceView* pp
9000: 53 68 61 64 65 72 52 65 73 6f 75 72 63 65 56 69  ShaderResourceVi
9010: 65 77 73 29 3b 0d 0a 09 76 6f 69 64 20 47 53 53  ews);...void GSS
9020: 65 74 53 61 6d 70 6c 65 72 73 28 55 49 4e 54 20  etSamplers(UINT 
9030: 53 74 61 72 74 53 6c 6f 74 2c 20 55 49 4e 54 20  StartSlot, UINT 
9040: 4e 75 6d 53 61 6d 70 6c 65 72 73 2c 20 49 44 33  NumSamplers, ID3
9050: 44 31 30 53 61 6d 70 6c 65 72 53 74 61 74 65 2a  D10SamplerState*
9060: 20 70 70 53 61 6d 70 6c 65 72 73 29 3b 0d 0a 09   ppSamplers);...
9070: 76 6f 69 64 20 4f 4d 53 65 74 52 65 6e 64 65 72  void OMSetRender
9080: 54 61 72 67 65 74 73 28 55 49 4e 54 20 4e 75 6d  Targets(UINT Num
9090: 56 69 65 77 73 2c 20 49 44 33 44 31 30 52 65 6e  Views, ID3D10Ren
90a0: 64 65 72 54 61 72 67 65 74 56 69 65 77 2a 20 70  derTargetView* p
90b0: 70 52 65 6e 64 65 72 54 61 72 67 65 74 56 69 65  pRenderTargetVie
90c0: 77 73 2c 20 49 44 33 44 31 30 44 65 70 74 68 53  ws, ID3D10DepthS
90d0: 74 65 6e 63 69 6c 56 69 65 77 20 70 44 65 70 74  tencilView pDept
90e0: 68 53 74 65 6e 63 69 6c 56 69 65 77 29 3b 0d 0a  hStencilView);..
90f0: 09 76 6f 69 64 20 4f 4d 53 65 74 42 6c 65 6e 64  .void OMSetBlend
9100: 53 74 61 74 65 28 49 44 33 44 31 30 42 6c 65 6e  State(ID3D10Blen
9110: 64 53 74 61 74 65 20 70 42 6c 65 6e 64 53 74 61  dState pBlendSta
9120: 74 65 2c 20 46 4c 4f 41 54 5b 34 5d 20 42 6c 65  te, FLOAT[4] Ble
9130: 6e 64 46 61 63 74 6f 72 2c 20 55 49 4e 54 20 53  ndFactor, UINT S
9140: 61 6d 70 6c 65 4d 61 73 6b 29 3b 0d 0a 09 76 6f  ampleMask);...vo
9150: 69 64 20 4f 4d 53 65 74 44 65 70 74 68 53 74 65  id OMSetDepthSte
9160: 6e 63 69 6c 53 74 61 74 65 28 49 44 33 44 31 30  ncilState(ID3D10
9170: 44 65 70 74 68 53 74 65 6e 63 69 6c 53 74 61 74  DepthStencilStat
9180: 65 20 70 44 65 70 74 68 53 74 65 6e 63 69 6c 53  e pDepthStencilS
9190: 74 61 74 65 2c 20 55 49 4e 54 20 53 74 65 6e 63  tate, UINT Stenc
91a0: 69 6c 52 65 66 29 3b 0d 0a 09 76 6f 69 64 20 53  ilRef);...void S
91b0: 4f 53 65 74 54 61 72 67 65 74 73 28 55 49 4e 54  OSetTargets(UINT
91c0: 20 4e 75 6d 42 75 66 66 65 72 73 2c 20 49 44 33   NumBuffers, ID3
91d0: 44 31 30 42 75 66 66 65 72 2a 20 70 70 53 4f 54  D10Buffer* ppSOT
91e0: 61 72 67 65 74 73 2c 20 55 49 4e 54 2a 20 70 4f  argets, UINT* pO
91f0: 66 66 73 65 74 73 29 3b 0d 0a 09 76 6f 69 64 20  ffsets);...void 
9200: 44 72 61 77 41 75 74 6f 28 29 3b 0d 0a 09 76 6f  DrawAuto();...vo
9210: 69 64 20 52 53 53 65 74 53 74 61 74 65 28 49 44  id RSSetState(ID
9220: 33 44 31 30 52 61 73 74 65 72 69 7a 65 72 53 74  3D10RasterizerSt
9230: 61 74 65 20 70 52 61 73 74 65 72 69 7a 65 72 53  ate pRasterizerS
9240: 74 61 74 65 29 3b 0d 0a 09 76 6f 69 64 20 52 53  tate);...void RS
9250: 53 65 74 56 69 65 77 70 6f 72 74 73 28 55 49 4e  SetViewports(UIN
9260: 54 20 4e 75 6d 56 69 65 77 70 6f 72 74 73 2c 20  T NumViewports, 
9270: 44 33 44 31 30 5f 56 49 45 57 50 4f 52 54 2a 20  D3D10_VIEWPORT* 
9280: 70 56 69 65 77 70 6f 72 74 73 29 3b 0d 0a 09 76  pViewports);...v
9290: 6f 69 64 20 52 53 53 65 74 53 63 69 73 73 6f 72  oid RSSetScissor
92a0: 52 65 63 74 73 28 55 49 4e 54 20 4e 75 6d 52 65  Rects(UINT NumRe
92b0: 63 74 73 2c 20 44 33 44 31 30 5f 52 45 43 54 2a  cts, D3D10_RECT*
92c0: 20 70 52 65 63 74 73 29 3b 0d 0a 09 76 6f 69 64   pRects);...void
92d0: 20 43 6f 70 79 53 75 62 72 65 73 6f 75 72 63 65   CopySubresource
92e0: 52 65 67 69 6f 6e 28 49 44 33 44 31 30 52 65 73  Region(ID3D10Res
92f0: 6f 75 72 63 65 20 70 44 73 74 52 65 73 6f 75 72  ource pDstResour
9300: 63 65 2c 20 55 49 4e 54 20 44 73 74 53 75 62 72  ce, UINT DstSubr
9310: 65 73 6f 75 72 63 65 2c 20 55 49 4e 54 20 44 73  esource, UINT Ds
9320: 74 58 2c 20 55 49 4e 54 20 44 73 74 59 2c 20 55  tX, UINT DstY, U
9330: 49 4e 54 20 44 73 74 5a 2c 20 49 44 33 44 31 30  INT DstZ, ID3D10
9340: 52 65 73 6f 75 72 63 65 20 70 53 72 63 52 65 73  Resource pSrcRes
9350: 6f 75 72 63 65 2c 20 55 49 4e 54 20 53 72 63 53  ource, UINT SrcS
9360: 75 62 72 65 73 6f 75 72 63 65 2c 20 44 33 44 31  ubresource, D3D1
9370: 30 5f 42 4f 58 2a 20 70 53 72 63 42 6f 78 29 3b  0_BOX* pSrcBox);
9380: 0d 0a 09 76 6f 69 64 20 43 6f 70 79 52 65 73 6f  ...void CopyReso
9390: 75 72 63 65 28 49 44 33 44 31 30 52 65 73 6f 75  urce(ID3D10Resou
93a0: 72 63 65 20 70 44 73 74 52 65 73 6f 75 72 63 65  rce pDstResource
93b0: 2c 20 49 44 33 44 31 30 52 65 73 6f 75 72 63 65  , ID3D10Resource
93c0: 20 70 53 72 63 52 65 73 6f 75 72 63 65 29 3b 0d   pSrcResource);.
93d0: 0a 09 76 6f 69 64 20 55 70 64 61 74 65 53 75 62  ..void UpdateSub
93e0: 72 65 73 6f 75 72 63 65 28 49 44 33 44 31 30 52  resource(ID3D10R
93f0: 65 73 6f 75 72 63 65 20 70 44 73 74 52 65 73 6f  esource pDstReso
9400: 75 72 63 65 2c 20 55 49 4e 54 20 44 73 74 53 75  urce, UINT DstSu
9410: 62 72 65 73 6f 75 72 63 65 2c 20 44 33 44 31 30  bresource, D3D10
9420: 5f 42 4f 58 2a 20 70 44 73 74 42 6f 78 2c 20 76  _BOX* pDstBox, v
9430: 6f 69 64 2a 20 70 53 72 63 44 61 74 61 2c 20 55  oid* pSrcData, U
9440: 49 4e 54 20 53 72 63 52 6f 77 50 69 74 63 68 2c  INT SrcRowPitch,
9450: 20 55 49 4e 54 20 53 72 63 44 65 70 74 68 50 69   UINT SrcDepthPi
9460: 74 63 68 29 3b 0d 0a 09 76 6f 69 64 20 43 6c 65  tch);...void Cle
9470: 61 72 52 65 6e 64 65 72 54 61 72 67 65 74 56 69  arRenderTargetVi
9480: 65 77 28 49 44 33 44 31 30 52 65 6e 64 65 72 54  ew(ID3D10RenderT
9490: 61 72 67 65 74 56 69 65 77 20 70 52 65 6e 64 65  argetView pRende
94a0: 72 54 61 72 67 65 74 56 69 65 77 2c 20 46 4c 4f  rTargetView, FLO
94b0: 41 54 5b 34 5d 2a 20 43 6f 6c 6f 72 52 47 42 41  AT[4]* ColorRGBA
94c0: 29 3b 0d 0a 09 76 6f 69 64 20 43 6c 65 61 72 44  );...void ClearD
94d0: 65 70 74 68 53 74 65 6e 63 69 6c 56 69 65 77 28  epthStencilView(
94e0: 49 44 33 44 31 30 44 65 70 74 68 53 74 65 6e 63  ID3D10DepthStenc
94f0: 69 6c 56 69 65 77 20 70 44 65 70 74 68 53 74 65  ilView pDepthSte
9500: 6e 63 69 6c 56 69 65 77 2c 20 55 49 4e 54 20 43  ncilView, UINT C
9510: 6c 65 61 72 46 6c 61 67 73 2c 20 46 4c 4f 41 54  learFlags, FLOAT
9520: 20 44 65 70 74 68 2c 20 55 49 4e 54 38 20 53 74   Depth, UINT8 St
9530: 65 6e 63 69 6c 29 3b 0d 0a 09 76 6f 69 64 20 47  encil);...void G
9540: 65 6e 65 72 61 74 65 4d 69 70 73 28 49 44 33 44  enerateMips(ID3D
9550: 31 30 53 68 61 64 65 72 52 65 73 6f 75 72 63 65  10ShaderResource
9560: 56 69 65 77 20 70 53 68 61 64 65 72 52 65 73 6f  View pShaderReso
9570: 75 72 63 65 56 69 65 77 29 3b 0d 0a 09 76 6f 69  urceView);...voi
9580: 64 20 52 65 73 6f 6c 76 65 53 75 62 72 65 73 6f  d ResolveSubreso
9590: 75 72 63 65 28 49 44 33 44 31 30 52 65 73 6f 75  urce(ID3D10Resou
95a0: 72 63 65 20 70 44 73 74 52 65 73 6f 75 72 63 65  rce pDstResource
95b0: 2c 20 55 49 4e 54 20 44 73 74 53 75 62 72 65 73  , UINT DstSubres
95c0: 6f 75 72 63 65 2c 20 49 44 33 44 31 30 52 65 73  ource, ID3D10Res
95d0: 6f 75 72 63 65 20 70 53 72 63 52 65 73 6f 75 72  ource pSrcResour
95e0: 63 65 2c 20 55 49 4e 54 20 53 72 63 53 75 62 72  ce, UINT SrcSubr
95f0: 65 73 6f 75 72 63 65 2c 20 44 58 47 49 5f 46 4f  esource, DXGI_FO
9600: 52 4d 41 54 20 46 6f 72 6d 61 74 29 3b 0d 0a 09  RMAT Format);...
9610: 76 6f 69 64 20 56 53 47 65 74 43 6f 6e 73 74 61  void VSGetConsta
9620: 6e 74 42 75 66 66 65 72 73 28 55 49 4e 54 20 53  ntBuffers(UINT S
9630: 74 61 72 74 53 6c 6f 74 2c 20 55 49 4e 54 20 4e  tartSlot, UINT N
9640: 75 6d 42 75 66 66 65 72 73 2c 20 49 44 33 44 31  umBuffers, ID3D1
9650: 30 42 75 66 66 65 72 2a 20 70 70 43 6f 6e 73 74  0Buffer* ppConst
9660: 61 6e 74 42 75 66 66 65 72 73 29 3b 0d 0a 09 76  antBuffers);...v
9670: 6f 69 64 20 50 53 47 65 74 53 68 61 64 65 72 52  oid PSGetShaderR
9680: 65 73 6f 75 72 63 65 73 28 55 49 4e 54 20 53 74  esources(UINT St
9690: 61 72 74 53 6c 6f 74 2c 20 55 49 4e 54 20 4e 75  artSlot, UINT Nu
96a0: 6d 56 69 65 77 73 2c 20 49 44 33 44 31 30 53 68  mViews, ID3D10Sh
96b0: 61 64 65 72 52 65 73 6f 75 72 63 65 56 69 65 77  aderResourceView
96c0: 2a 20 70 70 53 68 61 64 65 72 52 65 73 6f 75 72  * ppShaderResour
96d0: 63 65 56 69 65 77 73 29 3b 0d 0a 09 76 6f 69 64  ceViews);...void
96e0: 20 50 53 47 65 74 53 68 61 64 65 72 28 49 44 33   PSGetShader(ID3
96f0: 44 31 30 50 69 78 65 6c 53 68 61 64 65 72 2a 20  D10PixelShader* 
9700: 70 70 50 69 78 65 6c 53 68 61 64 65 72 29 3b 0d  ppPixelShader);.
9710: 0a 09 76 6f 69 64 20 50 53 47 65 74 53 61 6d 70  ..void PSGetSamp
9720: 6c 65 72 73 28 55 49 4e 54 20 53 74 61 72 74 53  lers(UINT StartS
9730: 6c 6f 74 2c 20 55 49 4e 54 20 4e 75 6d 53 61 6d  lot, UINT NumSam
9740: 70 6c 65 72 73 2c 20 49 44 33 44 31 30 53 61 6d  plers, ID3D10Sam
9750: 70 6c 65 72 53 74 61 74 65 2a 20 70 70 53 61 6d  plerState* ppSam
9760: 70 6c 65 72 73 29 3b 0d 0a 09 76 6f 69 64 20 56  plers);...void V
9770: 53 47 65 74 53 68 61 64 65 72 28 49 44 33 44 31  SGetShader(ID3D1
9780: 30 56 65 72 74 65 78 53 68 61 64 65 72 2a 20 70  0VertexShader* p
9790: 70 56 65 72 74 65 78 53 68 61 64 65 72 29 3b 0d  pVertexShader);.
97a0: 0a 09 76 6f 69 64 20 50 53 47 65 74 43 6f 6e 73  ..void PSGetCons
97b0: 74 61 6e 74 42 75 66 66 65 72 73 28 55 49 4e 54  tantBuffers(UINT
97c0: 20 53 74 61 72 74 53 6c 6f 74 2c 20 55 49 4e 54   StartSlot, UINT
97d0: 20 4e 75 6d 42 75 66 66 65 72 73 2c 20 49 44 33   NumBuffers, ID3
97e0: 44 31 30 42 75 66 66 65 72 2a 20 70 70 43 6f 6e  D10Buffer* ppCon
97f0: 73 74 61 6e 74 42 75 66 66 65 72 73 29 3b 0d 0a  stantBuffers);..
9800: 09 76 6f 69 64 20 49 41 47 65 74 49 6e 70 75 74  .void IAGetInput
9810: 4c 61 79 6f 75 74 28 49 44 33 44 31 30 49 6e 70  Layout(ID3D10Inp
9820: 75 74 4c 61 79 6f 75 74 2a 20 70 70 49 6e 70 75  utLayout* ppInpu
9830: 74 4c 61 79 6f 75 74 29 3b 0d 0a 09 76 6f 69 64  tLayout);...void
9840: 20 49 41 47 65 74 56 65 72 74 65 78 42 75 66 66   IAGetVertexBuff
9850: 65 72 73 28 55 49 4e 54 20 53 74 61 72 74 53 6c  ers(UINT StartSl
9860: 6f 74 2c 20 55 49 4e 54 20 4e 75 6d 42 75 66 66  ot, UINT NumBuff
9870: 65 72 73 2c 20 49 44 33 44 31 30 42 75 66 66 65  ers, ID3D10Buffe
9880: 72 2a 20 70 70 56 65 72 74 65 78 42 75 66 66 65  r* ppVertexBuffe
9890: 72 73 2c 20 55 49 4e 54 2a 20 70 53 74 72 69 64  rs, UINT* pStrid
98a0: 65 73 2c 20 55 49 4e 54 2a 20 70 4f 66 66 73 65  es, UINT* pOffse
98b0: 74 73 29 3b 0d 0a 09 76 6f 69 64 20 49 41 47 65  ts);...void IAGe
98c0: 74 49 6e 64 65 78 42 75 66 66 65 72 28 49 44 33  tIndexBuffer(ID3
98d0: 44 31 30 42 75 66 66 65 72 2a 20 70 49 6e 64 65  D10Buffer* pInde
98e0: 78 42 75 66 66 65 72 2c 20 44 58 47 49 5f 46 4f  xBuffer, DXGI_FO
98f0: 52 4d 41 54 2a 20 46 6f 72 6d 61 74 2c 20 55 49  RMAT* Format, UI
9900: 4e 54 2a 20 4f 66 66 73 65 74 29 3b 0d 0a 09 76  NT* Offset);...v
9910: 6f 69 64 20 47 53 47 65 74 43 6f 6e 73 74 61 6e  oid GSGetConstan
9920: 74 42 75 66 66 65 72 73 28 55 49 4e 54 20 53 74  tBuffers(UINT St
9930: 61 72 74 53 6c 6f 74 2c 20 55 49 4e 54 20 4e 75  artSlot, UINT Nu
9940: 6d 42 75 66 66 65 72 73 2c 20 49 44 33 44 31 30  mBuffers, ID3D10
9950: 42 75 66 66 65 72 2a 20 70 70 43 6f 6e 73 74 61  Buffer* ppConsta
9960: 6e 74 42 75 66 66 65 72 73 29 3b 0d 0a 09 76 6f  ntBuffers);...vo
9970: 69 64 20 47 53 47 65 74 53 68 61 64 65 72 28 49  id GSGetShader(I
9980: 44 33 44 31 30 47 65 6f 6d 65 74 72 79 53 68 61  D3D10GeometrySha
9990: 64 65 72 2a 20 70 70 47 65 6f 6d 65 74 72 79 53  der* ppGeometryS
99a0: 68 61 64 65 72 29 3b 0d 0a 09 76 6f 69 64 20 49  hader);...void I
99b0: 41 47 65 74 50 72 69 6d 69 74 69 76 65 54 6f 70  AGetPrimitiveTop
99c0: 6f 6c 6f 67 79 28 44 33 44 31 30 5f 50 52 49 4d  ology(D3D10_PRIM
99d0: 49 54 49 56 45 5f 54 4f 50 4f 4c 4f 47 59 2a 20  ITIVE_TOPOLOGY* 
99e0: 70 54 6f 70 6f 6c 6f 67 79 29 3b 0d 0a 09 76 6f  pTopology);...vo
99f0: 69 64 20 56 53 47 65 74 53 68 61 64 65 72 52 65  id VSGetShaderRe
9a00: 73 6f 75 72 63 65 73 28 55 49 4e 54 20 53 74 61  sources(UINT Sta
9a10: 72 74 53 6c 6f 74 2c 20 55 49 4e 54 20 4e 75 6d  rtSlot, UINT Num
9a20: 56 69 65 77 73 2c 20 49 44 33 44 31 30 53 68 61  Views, ID3D10Sha
9a30: 64 65 72 52 65 73 6f 75 72 63 65 56 69 65 77 2a  derResourceView*
9a40: 20 70 70 53 68 61 64 65 72 52 65 73 6f 75 72 63   ppShaderResourc
9a50: 65 56 69 65 77 73 29 3b 0d 0a 09 76 6f 69 64 20  eViews);...void 
9a60: 56 53 47 65 74 53 61 6d 70 6c 65 72 73 28 55 49  VSGetSamplers(UI
9a70: 4e 54 20 53 74 61 72 74 53 6c 6f 74 2c 20 55 49  NT StartSlot, UI
9a80: 4e 54 20 4e 75 6d 53 61 6d 70 6c 65 72 73 2c 20  NT NumSamplers, 
9a90: 49 44 33 44 31 30 53 61 6d 70 6c 65 72 53 74 61  ID3D10SamplerSta
9aa0: 74 65 2a 20 70 70 53 61 6d 70 6c 65 72 73 29 3b  te* ppSamplers);
9ab0: 0d 0a 09 76 6f 69 64 20 47 65 74 50 72 65 64 69  ...void GetPredi
9ac0: 63 61 74 69 6f 6e 28 49 44 33 44 31 30 50 72 65  cation(ID3D10Pre
9ad0: 64 69 63 61 74 65 2a 20 70 70 50 72 65 64 69 63  dicate* ppPredic
9ae0: 61 74 65 2c 20 42 4f 4f 4c 2a 20 70 50 72 65 64  ate, BOOL* pPred
9af0: 69 63 61 74 65 56 61 6c 75 65 29 3b 0d 0a 09 76  icateValue);...v
9b00: 6f 69 64 20 47 53 47 65 74 53 68 61 64 65 72 52  oid GSGetShaderR
9b10: 65 73 6f 75 72 63 65 73 28 55 49 4e 54 20 53 74  esources(UINT St
9b20: 61 72 74 53 6c 6f 74 2c 20 55 49 4e 54 20 4e 75  artSlot, UINT Nu
9b30: 6d 56 69 65 77 73 2c 20 49 44 33 44 31 30 53 68  mViews, ID3D10Sh
9b40: 61 64 65 72 52 65 73 6f 75 72 63 65 56 69 65 77  aderResourceView
9b50: 2a 20 70 70 53 68 61 64 65 72 52 65 73 6f 75 72  * ppShaderResour
9b60: 63 65 56 69 65 77 73 29 3b 0d 0a 09 76 6f 69 64  ceViews);...void
9b70: 20 47 53 47 65 74 53 61 6d 70 6c 65 72 73 28 55   GSGetSamplers(U
9b80: 49 4e 54 20 53 74 61 72 74 53 6c 6f 74 2c 20 55  INT StartSlot, U
9b90: 49 4e 54 20 4e 75 6d 53 61 6d 70 6c 65 72 73 2c  INT NumSamplers,
9ba0: 20 49 44 33 44 31 30 53 61 6d 70 6c 65 72 53 74   ID3D10SamplerSt
9bb0: 61 74 65 2a 20 70 70 53 61 6d 70 6c 65 72 73 29  ate* ppSamplers)
9bc0: 3b 0d 0a 09 76 6f 69 64 20 4f 4d 47 65 74 52 65  ;...void OMGetRe
9bd0: 6e 64 65 72 54 61 72 67 65 74 73 28 55 49 4e 54  nderTargets(UINT
9be0: 20 4e 75 6d 56 69 65 77 73 2c 20 49 44 33 44 31   NumViews, ID3D1
9bf0: 30 52 65 6e 64 65 72 54 61 72 67 65 74 56 69 65  0RenderTargetVie
9c00: 77 2a 20 70 70 52 65 6e 64 65 72 54 61 72 67 65  w* ppRenderTarge
9c10: 74 56 69 65 77 73 2c 20 49 44 33 44 31 30 44 65  tViews, ID3D10De
9c20: 70 74 68 53 74 65 6e 63 69 6c 56 69 65 77 2a 20  pthStencilView* 
9c30: 70 70 44 65 70 74 68 53 74 65 6e 63 69 6c 56 69  ppDepthStencilVi
9c40: 65 77 29 3b 0d 0a 09 76 6f 69 64 20 4f 4d 47 65  ew);...void OMGe
9c50: 74 42 6c 65 6e 64 53 74 61 74 65 28 49 44 33 44  tBlendState(ID3D
9c60: 31 30 42 6c 65 6e 64 53 74 61 74 65 2a 20 70 70  10BlendState* pp
9c70: 42 6c 65 6e 64 53 74 61 74 65 2c 20 46 4c 4f 41  BlendState, FLOA
9c80: 54 5b 20 34 20 5d 20 42 6c 65 6e 64 46 61 63 74  T[ 4 ] BlendFact
9c90: 6f 72 2c 20 55 49 4e 54 2a 20 70 53 61 6d 70 6c  or, UINT* pSampl
9ca0: 65 4d 61 73 6b 29 3b 0d 0a 09 76 6f 69 64 20 4f  eMask);...void O
9cb0: 4d 47 65 74 44 65 70 74 68 53 74 65 6e 63 69 6c  MGetDepthStencil
9cc0: 53 74 61 74 65 28 49 44 33 44 31 30 44 65 70 74  State(ID3D10Dept
9cd0: 68 53 74 65 6e 63 69 6c 53 74 61 74 65 2a 20 70  hStencilState* p
9ce0: 70 44 65 70 74 68 53 74 65 6e 63 69 6c 53 74 61  pDepthStencilSta
9cf0: 74 65 2c 20 55 49 4e 54 2a 20 70 53 74 65 6e 63  te, UINT* pStenc
9d00: 69 6c 52 65 66 29 3b 0d 0a 09 76 6f 69 64 20 53  ilRef);...void S
9d10: 4f 47 65 74 54 61 72 67 65 74 73 28 55 49 4e 54  OGetTargets(UINT
9d20: 20 4e 75 6d 42 75 66 66 65 72 73 2c 20 49 44 33   NumBuffers, ID3
9d30: 44 31 30 42 75 66 66 65 72 2a 20 70 70 53 4f 54  D10Buffer* ppSOT
9d40: 61 72 67 65 74 73 2c 20 55 49 4e 54 2a 20 70 4f  argets, UINT* pO
9d50: 66 66 73 65 74 73 29 3b 0d 0a 09 76 6f 69 64 20  ffsets);...void 
9d60: 52 53 47 65 74 53 74 61 74 65 28 49 44 33 44 31  RSGetState(ID3D1
9d70: 30 52 61 73 74 65 72 69 7a 65 72 53 74 61 74 65  0RasterizerState
9d80: 2a 20 70 70 52 61 73 74 65 72 69 7a 65 72 53 74  * ppRasterizerSt
9d90: 61 74 65 29 3b 0d 0a 09 76 6f 69 64 20 52 53 47  ate);...void RSG
9da0: 65 74 56 69 65 77 70 6f 72 74 73 28 55 49 4e 54  etViewports(UINT
9db0: 2a 20 4e 75 6d 56 69 65 77 70 6f 72 74 73 2c 20  * NumViewports, 
9dc0: 44 33 44 31 30 5f 56 49 45 57 50 4f 52 54 2a 20  D3D10_VIEWPORT* 
9dd0: 70 56 69 65 77 70 6f 72 74 73 29 3b 0d 0a 09 76  pViewports);...v
9de0: 6f 69 64 20 52 53 47 65 74 53 63 69 73 73 6f 72  oid RSGetScissor
9df0: 52 65 63 74 73 28 55 49 4e 54 2a 20 4e 75 6d 52  Rects(UINT* NumR
9e00: 65 63 74 73 2c 20 44 33 44 31 30 5f 52 45 43 54  ects, D3D10_RECT
9e10: 2a 20 70 52 65 63 74 73 29 3b 0d 0a 09 48 52 45  * pRects);...HRE
9e20: 53 55 4c 54 20 47 65 74 44 65 76 69 63 65 52 65  SULT GetDeviceRe
9e30: 6d 6f 76 65 64 52 65 61 73 6f 6e 28 29 3b 0d 0a  movedReason();..
9e40: 09 48 52 45 53 55 4c 54 20 53 65 74 45 78 63 65  .HRESULT SetExce
9e50: 70 74 69 6f 6e 4d 6f 64 65 28 55 49 4e 54 20 52  ptionMode(UINT R
9e60: 61 69 73 65 46 6c 61 67 73 29 3b 0d 0a 09 55 49  aiseFlags);...UI
9e70: 4e 54 20 47 65 74 45 78 63 65 70 74 69 6f 6e 4d  NT GetExceptionM
9e80: 6f 64 65 28 29 3b 0d 0a 09 48 52 45 53 55 4c 54  ode();...HRESULT
9e90: 20 47 65 74 50 72 69 76 61 74 65 44 61 74 61 28   GetPrivateData(
9ea0: 52 45 46 47 55 49 44 20 67 75 69 64 2c 20 55 49  REFGUID guid, UI
9eb0: 4e 54 2a 20 70 44 61 74 61 53 69 7a 65 2c 20 76  NT* pDataSize, v
9ec0: 6f 69 64 2a 20 70 44 61 74 61 29 3b 0d 0a 09 48  oid* pData);...H
9ed0: 52 45 53 55 4c 54 20 53 65 74 50 72 69 76 61 74  RESULT SetPrivat
9ee0: 65 44 61 74 61 28 52 45 46 47 55 49 44 20 67 75  eData(REFGUID gu
9ef0: 69 64 2c 20 55 49 4e 54 20 44 61 74 61 53 69 7a  id, UINT DataSiz
9f00: 65 2c 20 76 6f 69 64 2a 20 70 44 61 74 61 29 3b  e, void* pData);
9f10: 0d 0a 09 48 52 45 53 55 4c 54 20 53 65 74 50 72  ...HRESULT SetPr
9f20: 69 76 61 74 65 44 61 74 61 49 6e 74 65 72 66 61  ivateDataInterfa
9f30: 63 65 28 52 45 46 47 55 49 44 20 67 75 69 64 2c  ce(REFGUID guid,
9f40: 20 49 55 6e 6b 6e 6f 77 6e 20 70 44 61 74 61 29   IUnknown pData)
9f50: 3b 0d 0a 09 76 6f 69 64 20 43 6c 65 61 72 53 74  ;...void ClearSt
9f60: 61 74 65 28 29 3b 0d 0a 09 76 6f 69 64 20 46 6c  ate();...void Fl
9f70: 75 73 68 28 29 3b 0d 0a 09 48 52 45 53 55 4c 54  ush();...HRESULT
9f80: 20 43 72 65 61 74 65 42 75 66 66 65 72 28 44 33   CreateBuffer(D3
9f90: 44 31 30 5f 42 55 46 46 45 52 5f 44 45 53 43 2a  D10_BUFFER_DESC*
9fa0: 20 70 44 65 73 63 2c 20 44 33 44 31 30 5f 53 55   pDesc, D3D10_SU
9fb0: 42 52 45 53 4f 55 52 43 45 5f 44 41 54 41 2a 20  BRESOURCE_DATA* 
9fc0: 70 49 6e 69 74 69 61 6c 44 61 74 61 2c 20 49 44  pInitialData, ID
9fd0: 33 44 31 30 42 75 66 66 65 72 2a 20 70 70 42 75  3D10Buffer* ppBu
9fe0: 66 66 65 72 29 3b 0d 0a 09 48 52 45 53 55 4c 54  ffer);...HRESULT
9ff0: 20 43 72 65 61 74 65 54 65 78 74 75 72 65 31 44   CreateTexture1D
a000: 28 44 33 44 31 30 5f 54 45 58 54 55 52 45 31 44  (D3D10_TEXTURE1D
a010: 5f 44 45 53 43 2a 20 70 44 65 73 63 2c 20 44 33  _DESC* pDesc, D3
a020: 44 31 30 5f 53 55 42 52 45 53 4f 55 52 43 45 5f  D10_SUBRESOURCE_
a030: 44 41 54 41 2a 20 70 49 6e 69 74 69 61 6c 44 61  DATA* pInitialDa
a040: 74 61 2c 20 49 44 33 44 31 30 54 65 78 74 75 72  ta, ID3D10Textur
a050: 65 31 44 2a 20 70 70 54 65 78 74 75 72 65 31 44  e1D* ppTexture1D
a060: 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 43 72 65  );...HRESULT Cre
a070: 61 74 65 54 65 78 74 75 72 65 32 44 28 44 33 44  ateTexture2D(D3D
a080: 31 30 5f 54 45 58 54 55 52 45 32 44 5f 44 45 53  10_TEXTURE2D_DES
a090: 43 2a 20 70 44 65 73 63 2c 20 44 33 44 31 30 5f  C* pDesc, D3D10_
a0a0: 53 55 42 52 45 53 4f 55 52 43 45 5f 44 41 54 41  SUBRESOURCE_DATA
a0b0: 2a 20 70 49 6e 69 74 69 61 6c 44 61 74 61 2c 20  * pInitialData, 
a0c0: 49 44 33 44 31 30 54 65 78 74 75 72 65 32 44 2a  ID3D10Texture2D*
a0d0: 20 70 70 54 65 78 74 75 72 65 32 44 29 3b 0d 0a   ppTexture2D);..
a0e0: 09 48 52 45 53 55 4c 54 20 43 72 65 61 74 65 54  .HRESULT CreateT
a0f0: 65 78 74 75 72 65 33 44 28 44 33 44 31 30 5f 54  exture3D(D3D10_T
a100: 45 58 54 55 52 45 33 44 5f 44 45 53 43 2a 20 70  EXTURE3D_DESC* p
a110: 44 65 73 63 2c 20 44 33 44 31 30 5f 53 55 42 52  Desc, D3D10_SUBR
a120: 45 53 4f 55 52 43 45 5f 44 41 54 41 2a 20 70 49  ESOURCE_DATA* pI
a130: 6e 69 74 69 61 6c 44 61 74 61 2c 20 49 44 33 44  nitialData, ID3D
a140: 31 30 54 65 78 74 75 72 65 33 44 2a 20 70 70 54  10Texture3D* ppT
a150: 65 78 74 75 72 65 33 44 29 3b 0d 0a 09 48 52 45  exture3D);...HRE
a160: 53 55 4c 54 20 43 72 65 61 74 65 53 68 61 64 65  SULT CreateShade
a170: 72 52 65 73 6f 75 72 63 65 56 69 65 77 28 49 44  rResourceView(ID
a180: 33 44 31 30 52 65 73 6f 75 72 63 65 20 70 52 65  3D10Resource pRe
a190: 73 6f 75 72 63 65 2c 20 44 33 44 31 30 5f 53 48  source, D3D10_SH
a1a0: 41 44 45 52 5f 52 45 53 4f 55 52 43 45 5f 56 49  ADER_RESOURCE_VI
a1b0: 45 57 5f 44 45 53 43 2a 20 70 44 65 73 63 2c 20  EW_DESC* pDesc, 
a1c0: 49 44 33 44 31 30 53 68 61 64 65 72 52 65 73 6f  ID3D10ShaderReso
a1d0: 75 72 63 65 56 69 65 77 2a 20 70 70 53 52 56 69  urceView* ppSRVi
a1e0: 65 77 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 43  ew);...HRESULT C
a1f0: 72 65 61 74 65 52 65 6e 64 65 72 54 61 72 67 65  reateRenderTarge
a200: 74 56 69 65 77 28 49 44 33 44 31 30 52 65 73 6f  tView(ID3D10Reso
a210: 75 72 63 65 20 70 52 65 73 6f 75 72 63 65 2c 20  urce pResource, 
a220: 44 33 44 31 30 5f 52 45 4e 44 45 52 5f 54 41 52  D3D10_RENDER_TAR
a230: 47 45 54 5f 56 49 45 57 5f 44 45 53 43 2a 20 70  GET_VIEW_DESC* p
a240: 44 65 73 63 2c 20 49 44 33 44 31 30 52 65 6e 64  Desc, ID3D10Rend
a250: 65 72 54 61 72 67 65 74 56 69 65 77 2a 20 70 70  erTargetView* pp
a260: 52 54 56 69 65 77 29 3b 0d 0a 09 48 52 45 53 55  RTView);...HRESU
a270: 4c 54 20 43 72 65 61 74 65 44 65 70 74 68 53 74  LT CreateDepthSt
a280: 65 6e 63 69 6c 56 69 65 77 28 49 44 33 44 31 30  encilView(ID3D10
a290: 52 65 73 6f 75 72 63 65 20 70 52 65 73 6f 75 72  Resource pResour
a2a0: 63 65 2c 20 44 33 44 31 30 5f 44 45 50 54 48 5f  ce, D3D10_DEPTH_
a2b0: 53 54 45 4e 43 49 4c 5f 56 49 45 57 5f 44 45 53  STENCIL_VIEW_DES
a2c0: 43 2a 20 70 44 65 73 63 2c 20 49 44 33 44 31 30  C* pDesc, ID3D10
a2d0: 44 65 70 74 68 53 74 65 6e 63 69 6c 56 69 65 77  DepthStencilView
a2e0: 2a 20 70 70 44 65 70 74 68 53 74 65 6e 63 69 6c  * ppDepthStencil
a2f0: 56 69 65 77 29 3b 0d 0a 09 48 52 45 53 55 4c 54  View);...HRESULT
a300: 20 43 72 65 61 74 65 49 6e 70 75 74 4c 61 79 6f   CreateInputLayo
a310: 75 74 28 44 33 44 31 30 5f 49 4e 50 55 54 5f 45  ut(D3D10_INPUT_E
a320: 4c 45 4d 45 4e 54 5f 44 45 53 43 2a 20 70 49 6e  LEMENT_DESC* pIn
a330: 70 75 74 45 6c 65 6d 65 6e 74 44 65 73 63 73 2c  putElementDescs,
a340: 20 55 49 4e 54 20 4e 75 6d 45 6c 65 6d 65 6e 74   UINT NumElement
a350: 73 2c 20 76 6f 69 64 2a 20 70 53 68 61 64 65 72  s, void* pShader
a360: 42 79 74 65 63 6f 64 65 57 69 74 68 49 6e 70 75  BytecodeWithInpu
a370: 74 53 69 67 6e 61 74 75 72 65 2c 20 53 49 5a 45  tSignature, SIZE
a380: 5f 54 20 42 79 74 65 63 6f 64 65 4c 65 6e 67 74  _T BytecodeLengt
a390: 68 2c 20 49 44 33 44 31 30 49 6e 70 75 74 4c 61  h, ID3D10InputLa
a3a0: 79 6f 75 74 2a 20 70 70 49 6e 70 75 74 4c 61 79  yout* ppInputLay
a3b0: 6f 75 74 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20  out);...HRESULT 
a3c0: 43 72 65 61 74 65 56 65 72 74 65 78 53 68 61 64  CreateVertexShad
a3d0: 65 72 28 76 6f 69 64 2a 20 70 53 68 61 64 65 72  er(void* pShader
a3e0: 42 79 74 65 63 6f 64 65 2c 20 53 49 5a 45 5f 54  Bytecode, SIZE_T
a3f0: 20 42 79 74 65 63 6f 64 65 4c 65 6e 67 74 68 2c   BytecodeLength,
a400: 20 49 44 33 44 31 30 56 65 72 74 65 78 53 68 61   ID3D10VertexSha
a410: 64 65 72 2a 20 70 70 56 65 72 74 65 78 53 68 61  der* ppVertexSha
a420: 64 65 72 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20  der);...HRESULT 
a430: 43 72 65 61 74 65 47 65 6f 6d 65 74 72 79 53 68  CreateGeometrySh
a440: 61 64 65 72 28 76 6f 69 64 2a 20 70 53 68 61 64  ader(void* pShad
a450: 65 72 42 79 74 65 63 6f 64 65 2c 20 53 49 5a 45  erBytecode, SIZE
a460: 5f 54 20 42 79 74 65 63 6f 64 65 4c 65 6e 67 74  _T BytecodeLengt
a470: 68 2c 20 49 44 33 44 31 30 47 65 6f 6d 65 74 72  h, ID3D10Geometr
a480: 79 53 68 61 64 65 72 2a 20 70 70 47 65 6f 6d 65  yShader* ppGeome
a490: 74 72 79 53 68 61 64 65 72 29 3b 0d 0a 09 48 52  tryShader);...HR
a4a0: 45 53 55 4c 54 20 43 72 65 61 74 65 47 65 6f 6d  ESULT CreateGeom
a4b0: 65 74 72 79 53 68 61 64 65 72 57 69 74 68 53 74  etryShaderWithSt
a4c0: 72 65 61 6d 4f 75 74 70 75 74 28 76 6f 69 64 2a  reamOutput(void*
a4d0: 20 70 53 68 61 64 65 72 42 79 74 65 63 6f 64 65   pShaderBytecode
a4e0: 2c 20 53 49 5a 45 5f 54 20 42 79 74 65 63 6f 64  , SIZE_T Bytecod
a4f0: 65 4c 65 6e 67 74 68 2c 20 44 33 44 31 30 5f 53  eLength, D3D10_S
a500: 4f 5f 44 45 43 4c 41 52 41 54 49 4f 4e 5f 45 4e  O_DECLARATION_EN
a510: 54 52 59 2a 20 70 53 4f 44 65 63 6c 61 72 61 74  TRY* pSODeclarat
a520: 69 6f 6e 2c 20 55 49 4e 54 20 4e 75 6d 45 6e 74  ion, UINT NumEnt
a530: 72 69 65 73 2c 20 55 49 4e 54 20 4f 75 74 70 75  ries, UINT Outpu
a540: 74 53 74 72 65 61 6d 53 74 72 69 64 65 2c 20 49  tStreamStride, I
a550: 44 33 44 31 30 47 65 6f 6d 65 74 72 79 53 68 61  D3D10GeometrySha
a560: 64 65 72 2a 20 70 70 47 65 6f 6d 65 74 72 79 53  der* ppGeometryS
a570: 68 61 64 65 72 29 3b 0d 0a 09 48 52 45 53 55 4c  hader);...HRESUL
a580: 54 20 43 72 65 61 74 65 50 69 78 65 6c 53 68 61  T CreatePixelSha
a590: 64 65 72 28 76 6f 69 64 2a 20 70 53 68 61 64 65  der(void* pShade
a5a0: 72 42 79 74 65 63 6f 64 65 2c 20 53 49 5a 45 5f  rBytecode, SIZE_
a5b0: 54 20 42 79 74 65 63 6f 64 65 4c 65 6e 67 74 68  T BytecodeLength
a5c0: 2c 20 49 44 33 44 31 30 50 69 78 65 6c 53 68 61  , ID3D10PixelSha
a5d0: 64 65 72 2a 20 70 70 50 69 78 65 6c 53 68 61 64  der* ppPixelShad
a5e0: 65 72 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 43  er);...HRESULT C
a5f0: 72 65 61 74 65 42 6c 65 6e 64 53 74 61 74 65 28  reateBlendState(
a600: 44 33 44 31 30 5f 42 4c 45 4e 44 5f 44 45 53 43  D3D10_BLEND_DESC
a610: 2a 20 70 42 6c 65 6e 64 53 74 61 74 65 44 65 73  * pBlendStateDes
a620: 63 2c 20 49 44 33 44 31 30 42 6c 65 6e 64 53 74  c, ID3D10BlendSt
a630: 61 74 65 2a 20 70 70 42 6c 65 6e 64 53 74 61 74  ate* ppBlendStat
a640: 65 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 43 72  e);...HRESULT Cr
a650: 65 61 74 65 44 65 70 74 68 53 74 65 6e 63 69 6c  eateDepthStencil
a660: 53 74 61 74 65 28 44 33 44 31 30 5f 44 45 50 54  State(D3D10_DEPT
a670: 48 5f 53 54 45 4e 43 49 4c 5f 44 45 53 43 2a 20  H_STENCIL_DESC* 
a680: 70 44 65 70 74 68 53 74 65 6e 63 69 6c 44 65 73  pDepthStencilDes
a690: 63 2c 20 49 44 33 44 31 30 44 65 70 74 68 53 74  c, ID3D10DepthSt
a6a0: 65 6e 63 69 6c 53 74 61 74 65 2a 20 70 70 44 65  encilState* ppDe
a6b0: 70 74 68 53 74 65 6e 63 69 6c 53 74 61 74 65 29  pthStencilState)
a6c0: 3b 0d 0a 09 48 52 45 53 55 4c 54 20 43 72 65 61  ;...HRESULT Crea
a6d0: 74 65 52 61 73 74 65 72 69 7a 65 72 53 74 61 74  teRasterizerStat
a6e0: 65 28 44 33 44 31 30 5f 52 41 53 54 45 52 49 5a  e(D3D10_RASTERIZ
a6f0: 45 52 5f 44 45 53 43 2a 20 70 52 61 73 74 65 72  ER_DESC* pRaster
a700: 69 7a 65 72 44 65 73 63 2c 20 49 44 33 44 31 30  izerDesc, ID3D10
a710: 52 61 73 74 65 72 69 7a 65 72 53 74 61 74 65 2a  RasterizerState*
a720: 20 70 70 52 61 73 74 65 72 69 7a 65 72 53 74 61   ppRasterizerSta
a730: 74 65 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 43  te);...HRESULT C
a740: 72 65 61 74 65 53 61 6d 70 6c 65 72 53 74 61 74  reateSamplerStat
a750: 65 28 44 33 44 31 30 5f 53 41 4d 50 4c 45 52 5f  e(D3D10_SAMPLER_
a760: 44 45 53 43 2a 20 70 53 61 6d 70 6c 65 72 44 65  DESC* pSamplerDe
a770: 73 63 2c 20 49 44 33 44 31 30 53 61 6d 70 6c 65  sc, ID3D10Sample
a780: 72 53 74 61 74 65 2a 20 70 70 53 61 6d 70 6c 65  rState* ppSample
a790: 72 53 74 61 74 65 29 3b 0d 0a 09 48 52 45 53 55  rState);...HRESU
a7a0: 4c 54 20 43 72 65 61 74 65 51 75 65 72 79 28 44  LT CreateQuery(D
a7b0: 33 44 31 30 5f 51 55 45 52 59 5f 44 45 53 43 2a  3D10_QUERY_DESC*
a7c0: 20 70 51 75 65 72 79 44 65 73 63 2c 20 49 44 33   pQueryDesc, ID3
a7d0: 44 31 30 51 75 65 72 79 2a 20 70 70 51 75 65 72  D10Query* ppQuer
a7e0: 79 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 43 72  y);...HRESULT Cr
a7f0: 65 61 74 65 50 72 65 64 69 63 61 74 65 28 44 33  eatePredicate(D3
a800: 44 31 30 5f 51 55 45 52 59 5f 44 45 53 43 2a 20  D10_QUERY_DESC* 
a810: 70 50 72 65 64 69 63 61 74 65 44 65 73 63 2c 20  pPredicateDesc, 
a820: 49 44 33 44 31 30 50 72 65 64 69 63 61 74 65 2a  ID3D10Predicate*
a830: 20 70 70 50 72 65 64 69 63 61 74 65 29 3b 0d 0a   ppPredicate);..
a840: 09 48 52 45 53 55 4c 54 20 43 72 65 61 74 65 43  .HRESULT CreateC
a850: 6f 75 6e 74 65 72 28 44 33 44 31 30 5f 43 4f 55  ounter(D3D10_COU
a860: 4e 54 45 52 5f 44 45 53 43 2a 20 70 43 6f 75 6e  NTER_DESC* pCoun
a870: 74 65 72 44 65 73 63 2c 20 49 44 33 44 31 30 43  terDesc, ID3D10C
a880: 6f 75 6e 74 65 72 2a 20 70 70 43 6f 75 6e 74 65  ounter* ppCounte
a890: 72 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 43 68  r);...HRESULT Ch
a8a0: 65 63 6b 46 6f 72 6d 61 74 53 75 70 70 6f 72 74  eckFormatSupport
a8b0: 28 44 58 47 49 5f 46 4f 52 4d 41 54 20 46 6f 72  (DXGI_FORMAT For
a8c0: 6d 61 74 2c 20 55 49 4e 54 2a 20 70 46 6f 72 6d  mat, UINT* pForm
a8d0: 61 74 53 75 70 70 6f 72 74 29 3b 0d 0a 09 48 52  atSupport);...HR
a8e0: 45 53 55 4c 54 20 43 68 65 63 6b 4d 75 6c 74 69  ESULT CheckMulti
a8f0: 73 61 6d 70 6c 65 51 75 61 6c 69 74 79 4c 65 76  sampleQualityLev
a900: 65 6c 73 28 44 58 47 49 5f 46 4f 52 4d 41 54 20  els(DXGI_FORMAT 
a910: 46 6f 72 6d 61 74 2c 20 55 49 4e 54 20 53 61 6d  Format, UINT Sam
a920: 70 6c 65 43 6f 75 6e 74 2c 20 55 49 4e 54 2a 20  pleCount, UINT* 
a930: 70 4e 75 6d 51 75 61 6c 69 74 79 4c 65 76 65 6c  pNumQualityLevel
a940: 73 29 3b 0d 0a 09 76 6f 69 64 20 43 68 65 63 6b  s);...void Check
a950: 43 6f 75 6e 74 65 72 49 6e 66 6f 28 44 33 44 31  CounterInfo(D3D1
a960: 30 5f 43 4f 55 4e 54 45 52 5f 49 4e 46 4f 2a 20  0_COUNTER_INFO* 
a970: 70 43 6f 75 6e 74 65 72 49 6e 66 6f 29 3b 0d 0a  pCounterInfo);..
a980: 09 48 52 45 53 55 4c 54 20 43 68 65 63 6b 43 6f  .HRESULT CheckCo
a990: 75 6e 74 65 72 28 44 33 44 31 30 5f 43 4f 55 4e  unter(D3D10_COUN
a9a0: 54 45 52 5f 44 45 53 43 2a 20 70 44 65 73 63 2c  TER_DESC* pDesc,
a9b0: 20 44 33 44 31 30 5f 43 4f 55 4e 54 45 52 5f 54   D3D10_COUNTER_T
a9c0: 59 50 45 2a 20 70 54 79 70 65 2c 20 55 49 4e 54  YPE* pType, UINT
a9d0: 2a 20 70 41 63 74 69 76 65 43 6f 75 6e 74 65 72  * pActiveCounter
a9e0: 73 2c 20 4c 50 53 54 52 20 73 7a 4e 61 6d 65 2c  s, LPSTR szName,
a9f0: 20 55 49 4e 54 2a 20 70 4e 61 6d 65 4c 65 6e 67   UINT* pNameLeng
aa00: 74 68 2c 20 4c 50 53 54 52 20 73 7a 55 6e 69 74  th, LPSTR szUnit
aa10: 73 2c 20 55 49 4e 54 2a 20 70 55 6e 69 74 73 4c  s, UINT* pUnitsL
aa20: 65 6e 67 74 68 2c 20 4c 50 53 54 52 20 73 7a 44  ength, LPSTR szD
aa30: 65 73 63 72 69 70 74 69 6f 6e 2c 20 55 49 4e 54  escription, UINT
aa40: 2a 20 70 44 65 73 63 72 69 70 74 69 6f 6e 4c 65  * pDescriptionLe
aa50: 6e 67 74 68 29 3b 0d 0a 09 55 49 4e 54 20 47 65  ngth);...UINT Ge
aa60: 74 43 72 65 61 74 69 6f 6e 46 6c 61 67 73 28 29  tCreationFlags()
aa70: 3b 0d 0a 09 48 52 45 53 55 4c 54 20 4f 70 65 6e  ;...HRESULT Open
aa80: 53 68 61 72 65 64 52 65 73 6f 75 72 63 65 28 48  SharedResource(H
aa90: 41 4e 44 4c 45 20 68 52 65 73 6f 75 72 63 65 2c  ANDLE hResource,
aaa0: 20 52 45 46 49 49 44 20 52 65 74 75 72 6e 65 64   REFIID Returned
aab0: 49 6e 74 65 72 66 61 63 65 2c 20 76 6f 69 64 2a  Interface, void*
aac0: 2a 20 70 70 52 65 73 6f 75 72 63 65 29 3b 0d 0a  * ppResource);..
aad0: 09 76 6f 69 64 20 53 65 74 54 65 78 74 46 69 6c  .void SetTextFil
aae0: 74 65 72 53 69 7a 65 28 55 49 4e 54 20 57 69 64  terSize(UINT Wid
aaf0: 74 68 2c 20 55 49 4e 54 20 48 65 69 67 68 74 29  th, UINT Height)
ab00: 3b 0d 0a 09 76 6f 69 64 20 47 65 74 54 65 78 74  ;...void GetText
ab10: 46 69 6c 74 65 72 53 69 7a 65 28 55 49 4e 54 2a  FilterSize(UINT*
ab20: 20 70 57 69 64 74 68 2c 20 55 49 4e 54 2a 20 70   pWidth, UINT* p
ab30: 48 65 69 67 68 74 29 3b 0d 0a 7d 0d 0a 0d 0a 69  Height);..}....i
ab40: 6e 74 65 72 66 61 63 65 20 49 44 33 44 31 30 4d  nterface ID3D10M
ab50: 75 6c 74 69 74 68 72 65 61 64 20 3a 20 49 55 6e  ultithread : IUn
ab60: 6b 6e 6f 77 6e 20 7b 0d 0a 09 65 78 74 65 72 6e  known {...extern
ab70: 28 57 69 6e 64 6f 77 73 29 20 3a 0d 0a 09 76 6f  (Windows) :...vo
ab80: 69 64 20 45 6e 74 65 72 28 29 3b 0d 0a 09 76 6f  id Enter();...vo
ab90: 69 64 20 4c 65 61 76 65 28 29 3b 0d 0a 09 42 4f  id Leave();...BO
aba0: 4f 4c 20 53 65 74 4d 75 6c 74 69 74 68 72 65 61  OL SetMultithrea
abb0: 64 50 72 6f 74 65 63 74 65 64 28 42 4f 4f 4c 20  dProtected(BOOL 
abc0: 62 4d 54 50 72 6f 74 65 63 74 29 3b 0d 0a 09 42  bMTProtect);...B
abd0: 4f 4f 4c 20 47 65 74 4d 75 6c 74 69 74 68 72 65  OOL GetMultithre
abe0: 61 64 50 72 6f 74 65 63 74 65 64 28 29 3b 0d 0a  adProtected();..
abf0: 7d 0d 0a 0d 0a 65 6e 75 6d 20 44 33 44 31 30 5f  }....enum D3D10_
ac00: 43 52 45 41 54 45 5f 44 45 56 49 43 45 5f 46 4c  CREATE_DEVICE_FL
ac10: 41 47 20 7b 0d 0a 09 44 33 44 31 30 5f 43 52 45  AG {...D3D10_CRE
ac20: 41 54 45 5f 44 45 56 49 43 45 5f 53 49 4e 47 4c  ATE_DEVICE_SINGL
ac30: 45 54 48 52 45 41 44 45 44 09 09 09 09 09 09 09  ETHREADED.......
ac40: 09 3d 20 30 78 30 31 2c 0d 0a 09 44 33 44 31 30  .= 0x01,...D3D10
ac50: 5f 43 52 45 41 54 45 5f 44 45 56 49 43 45 5f 44  _CREATE_DEVICE_D
ac60: 45 42 55 47 09 09 09 09 09 09 09 09 09 09 3d 20  EBUG..........= 
ac70: 30 78 30 32 2c 0d 0a 09 44 33 44 31 30 5f 43 52  0x02,...D3D10_CR
ac80: 45 41 54 45 5f 44 45 56 49 43 45 5f 53 57 49 54  EATE_DEVICE_SWIT
ac90: 43 48 5f 54 4f 5f 52 45 46 09 09 09 09 09 09 09  CH_TO_REF.......
aca0: 09 3d 20 30 78 30 34 2c 0d 0a 09 44 33 44 31 30  .= 0x04,...D3D10
acb0: 5f 43 52 45 41 54 45 5f 44 45 56 49 43 45 5f 50  _CREATE_DEVICE_P
acc0: 52 45 56 45 4e 54 5f 49 4e 54 45 52 4e 41 4c 5f  REVENT_INTERNAL_
acd0: 54 48 52 45 41 44 49 4e 47 5f 4f 50 54 49 4d 49  THREADING_OPTIMI
ace0: 5a 41 54 49 4f 4e 53 09 3d 20 30 78 30 38 0d 0a  ZATIONS.= 0x08..
acf0: 7d 0d 0a 0d 0a 63 6f 6e 73 74 20 44 33 44 31 30  }....const D3D10
ad00: 5f 53 44 4b 5f 56 45 52 53 49 4f 4e 09 3d 20 32  _SDK_VERSION.= 2
ad10: 39 3b 0d 0a 0d 0a 65 78 74 65 72 6e 28 43 29 20  9;....extern(C) 
ad20: 63 6f 6e 73 74 20 47 55 49 44 20 49 49 44 5f 49  const GUID IID_I
ad30: 44 33 44 31 30 44 65 76 69 63 65 43 68 69 6c 64  D3D10DeviceChild
ad40: 09 09 09 3d 20 7b 30 78 39 42 37 45 34 43 30 30  ...= {0x9B7E4C00
ad50: 2c 20 30 78 33 34 32 43 2c 20 30 78 34 31 30 36  , 0x342C, 0x4106
ad60: 2c 20 5b 30 78 41 31 2c 20 30 78 39 46 2c 20 30  , [0xA1, 0x9F, 0
ad70: 78 34 46 2c 20 30 78 32 37 2c 20 30 78 30 34 2c  x4F, 0x27, 0x04,
ad80: 20 30 78 46 36 2c 20 30 78 38 39 2c 20 30 78 46   0xF6, 0x89, 0xF
ad90: 30 5d 7d 3b 0d 0a 65 78 74 65 72 6e 28 43 29 20  0]};..extern(C) 
ada0: 63 6f 6e 73 74 20 47 55 49 44 20 49 49 44 5f 49  const GUID IID_I
adb0: 44 33 44 31 30 44 65 70 74 68 53 74 65 6e 63 69  D3D10DepthStenci
adc0: 6c 53 74 61 74 65 09 3d 20 7b 30 78 32 42 34 42  lState.= {0x2B4B
add0: 31 43 43 38 2c 20 30 78 41 34 41 44 2c 20 30 78  1CC8, 0xA4AD, 0x
ade0: 34 31 66 38 2c 20 5b 30 78 38 33 2c 20 30 78 32  41f8, [0x83, 0x2
adf0: 32 2c 20 30 78 43 41 2c 20 30 78 38 36 2c 20 30  2, 0xCA, 0x86, 0
ae00: 78 46 43 2c 20 30 78 33 45 2c 20 30 78 43 36 2c  xFC, 0x3E, 0xC6,
ae10: 20 30 78 37 35 5d 7d 3b 0d 0a 65 78 74 65 72 6e   0x75]};..extern
ae20: 28 43 29 20 63 6f 6e 73 74 20 47 55 49 44 20 49  (C) const GUID I
ae30: 49 44 5f 49 44 33 44 31 30 42 6c 65 6e 64 53 74  ID_ID3D10BlendSt
ae40: 61 74 65 09 09 09 3d 20 7b 30 78 45 44 41 44 38  ate...= {0xEDAD8
ae50: 44 31 39 2c 20 30 78 38 41 33 35 2c 20 30 78 34  D19, 0x8A35, 0x4
ae60: 64 36 64 2c 20 5b 30 78 38 35 2c 20 30 78 36 36  d6d, [0x85, 0x66
ae70: 2c 20 30 78 32 45 2c 20 30 78 41 32 2c 20 30 78  , 0x2E, 0xA2, 0x
ae80: 37 36 2c 20 30 78 43 44 2c 20 30 78 45 31 2c 20  76, 0xCD, 0xE1, 
ae90: 30 78 36 31 5d 7d 3b 0d 0a 65 78 74 65 72 6e 28  0x61]};..extern(
aea0: 43 29 20 63 6f 6e 73 74 20 47 55 49 44 20 49 49  C) const GUID II
aeb0: 44 5f 49 44 33 44 31 30 52 61 73 74 65 72 69 7a  D_ID3D10Rasteriz
aec0: 65 72 53 74 61 74 65 09 09 3d 20 7b 30 78 41 32  erState..= {0xA2
aed0: 41 30 37 32 39 32 2c 20 30 78 38 39 41 46 2c 20  A07292, 0x89AF, 
aee0: 30 78 34 33 34 35 2c 20 5b 30 78 42 45 2c 20 30  0x4345, [0xBE, 0
aef0: 78 32 45 2c 20 30 78 43 35 2c 20 30 78 33 44 2c  x2E, 0xC5, 0x3D,
af00: 20 30 78 39 46 2c 20 30 78 42 42 2c 20 30 78 36   0x9F, 0xBB, 0x6
af10: 45 2c 20 30 78 39 46 5d 7d 3b 0d 0a 65 78 74 65  E, 0x9F]};..exte
af20: 72 6e 28 43 29 20 63 6f 6e 73 74 20 47 55 49 44  rn(C) const GUID
af30: 20 49 49 44 5f 49 44 33 44 31 30 52 65 73 6f 75   IID_ID3D10Resou
af40: 72 63 65 09 09 09 09 3d 20 7b 30 78 39 42 37 45  rce....= {0x9B7E
af50: 34 43 30 31 2c 20 30 78 33 34 32 43 2c 20 30 78  4C01, 0x342C, 0x
af60: 34 31 30 36 2c 20 5b 30 78 41 31 2c 20 30 78 39  4106, [0xA1, 0x9
af70: 46 2c 20 30 78 34 46 2c 20 30 78 32 37 2c 20 30  F, 0x4F, 0x27, 0
af80: 78 30 34 2c 20 30 78 46 36 2c 20 30 78 38 39 2c  x04, 0xF6, 0x89,
af90: 20 30 78 46 30 5d 7d 3b 0d 0a 65 78 74 65 72 6e   0xF0]};..extern
afa0: 28 43 29 20 63 6f 6e 73 74 20 47 55 49 44 20 49  (C) const GUID I
afb0: 49 44 5f 49 44 33 44 31 30 42 75 66 66 65 72 09  ID_ID3D10Buffer.
afc0: 09 09 09 3d 20 7b 30 78 39 42 37 45 34 43 30 32  ...= {0x9B7E4C02
afd0: 2c 20 30 78 33 34 32 43 2c 20 30 78 34 31 30 36  , 0x342C, 0x4106
afe0: 2c 20 5b 30 78 41 31 2c 20 30 78 39 46 2c 20 30  , [0xA1, 0x9F, 0
aff0: 78 34 46 2c 20 30 78 32 37 2c 20 30 78 30 34 2c  x4F, 0x27, 0x04,
b000: 20 30 78 46 36 2c 20 30 78 38 39 2c 20 30 78 46   0xF6, 0x89, 0xF
b010: 30 5d 7d 3b 0d 0a 65 78 74 65 72 6e 28 43 29 20  0]};..extern(C) 
b020: 63 6f 6e 73 74 20 47 55 49 44 20 49 49 44 5f 49  const GUID IID_I
b030: 44 33 44 31 30 54 65 78 74 75 72 65 31 44 09 09  D3D10Texture1D..
b040: 09 3d 20 7b 30 78 39 42 37 45 34 43 30 33 2c 20  .= {0x9B7E4C03, 
b050: 30 78 33 34 32 43 2c 20 30 78 34 31 30 36 2c 20  0x342C, 0x4106, 
b060: 5b 30 78 41 31 2c 20 30 78 39 46 2c 20 30 78 34  [0xA1, 0x9F, 0x4
b070: 46 2c 20 30 78 32 37 2c 20 30 78 30 34 2c 20 30  F, 0x27, 0x04, 0
b080: 78 46 36 2c 20 30 78 38 39 2c 20 30 78 46 30 5d  xF6, 0x89, 0xF0]
b090: 7d 3b 0d 0a 65 78 74 65 72 6e 28 43 29 20 63 6f  };..extern(C) co
b0a0: 6e 73 74 20 47 55 49 44 20 49 49 44 5f 49 44 33  nst GUID IID_ID3
b0b0: 44 31 30 54 65 78 74 75 72 65 32 44 09 09 09 3d  D10Texture2D...=
b0c0: 20 7b 30 78 39 42 37 45 34 43 30 34 2c 20 30 78   {0x9B7E4C04, 0x
b0d0: 33 34 32 43 2c 20 30 78 34 31 30 36 2c 20 5b 30  342C, 0x4106, [0
b0e0: 78 41 31 2c 20 30 78 39 46 2c 20 30 78 34 46 2c  xA1, 0x9F, 0x4F,
b0f0: 20 30 78 32 37 2c 20 30 78 30 34 2c 20 30 78 46   0x27, 0x04, 0xF
b100: 36 2c 20 30 78 38 39 2c 20 30 78 46 30 5d 7d 3b  6, 0x89, 0xF0]};
b110: 0d 0a 65 78 74 65 72 6e 28 43 29 20 63 6f 6e 73  ..extern(C) cons
b120: 74 20 47 55 49 44 20 49 49 44 5f 49 44 33 44 31  t GUID IID_ID3D1
b130: 30 54 65 78 74 75 72 65 33 44 09 09 09 3d 20 7b  0Texture3D...= {
b140: 30 78 39 42 37 45 34 43 30 35 2c 20 30 78 33 34  0x9B7E4C05, 0x34
b150: 32 43 2c 20 30 78 34 31 30 36 2c 20 5b 30 78 41  2C, 0x4106, [0xA
b160: 31 2c 20 30 78 39 46 2c 20 30 78 34 46 2c 20 30  1, 0x9F, 0x4F, 0
b170: 78 32 37 2c 20 30 78 30 34 2c 20 30 78 46 36 2c  x27, 0x04, 0xF6,
b180: 20 30 78 38 39 2c 20 30 78 46 30 5d 7d 3b 0d 0a   0x89, 0xF0]};..
b190: 65 78 74 65 72 6e 28 43 29 20 63 6f 6e 73 74 20  extern(C) const 
b1a0: 47 55 49 44 20 49 49 44 5f 49 44 33 44 31 30 56  GUID IID_ID3D10V
b1b0: 69 65 77 09 09 09 09 09 3d 20 7b 30 78 43 39 30  iew.....= {0xC90
b1c0: 32 42 30 33 46 2c 20 30 78 36 30 41 37 2c 20 30  2B03F, 0x60A7, 0
b1d0: 78 34 39 42 41 2c 20 5b 30 78 39 39 2c 20 30 78  x49BA, [0x99, 0x
b1e0: 33 36 2c 20 30 78 32 41 2c 20 30 78 33 41 2c 20  36, 0x2A, 0x3A, 
b1f0: 30 78 42 33 2c 20 30 78 37 41 2c 20 30 78 37 45  0xB3, 0x7A, 0x7E
b200: 2c 20 30 78 33 33 5d 7d 3b 0d 0a 65 78 74 65 72  , 0x33]};..exter
b210: 6e 28 43 29 20 63 6f 6e 73 74 20 47 55 49 44 20  n(C) const GUID 
b220: 49 49 44 5f 49 44 33 44 31 30 53 68 61 64 65 72  IID_ID3D10Shader
b230: 52 65 73 6f 75 72 63 65 56 69 65 77 09 3d 20 7b  ResourceView.= {
b240: 30 78 39 42 37 45 34 43 30 37 2c 20 30 78 33 34  0x9B7E4C07, 0x34
b250: 32 43 2c 20 30 78 34 31 30 36 2c 20 5b 30 78 41  2C, 0x4106, [0xA
b260: 31 2c 20 30 78 39 46 2c 20 30 78 34 46 2c 20 30  1, 0x9F, 0x4F, 0
b270: 78 32 37 2c 20 30 78 30 34 2c 20 30 78 46 36 2c  x27, 0x04, 0xF6,
b280: 20 30 78 38 39 2c 20 30 78 46 30 5d 7d 3b 0d 0a   0x89, 0xF0]};..
b290: 65 78 74 65 72 6e 28 43 29 20 63 6f 6e 73 74 20  extern(C) const 
b2a0: 47 55 49 44 20 49 49 44 5f 49 44 33 44 31 30 52  GUID IID_ID3D10R
b2b0: 65 6e 64 65 72 54 61 72 67 65 74 56 69 65 77 09  enderTargetView.
b2c0: 09 3d 20 7b 30 78 39 42 37 45 34 43 30 38 2c 20  .= {0x9B7E4C08, 
b2d0: 30 78 33 34 32 43 2c 20 30 78 34 31 30 36 2c 20  0x342C, 0x4106, 
b2e0: 5b 30 78 41 31 2c 20 30 78 39 46 2c 20 30 78 34  [0xA1, 0x9F, 0x4
b2f0: 46 2c 20 30 78 32 37 2c 20 30 78 30 34 2c 20 30  F, 0x27, 0x04, 0
b300: 78 46 36 2c 20 30 78 38 39 2c 20 30 78 46 30 5d  xF6, 0x89, 0xF0]
b310: 7d 3b 0d 0a 65 78 74 65 72 6e 28 43 29 20 63 6f  };..extern(C) co
b320: 6e 73 74 20 47 55 49 44 20 49 49 44 5f 49 44 33  nst GUID IID_ID3
b330: 44 31 30 44 65 70 74 68 53 74 65 6e 63 69 6c 56  D10DepthStencilV
b340: 69 65 77 09 09 3d 20 7b 30 78 39 42 37 45 34 43  iew..= {0x9B7E4C
b350: 30 39 2c 20 30 78 33 34 32 43 2c 20 30 78 34 31  09, 0x342C, 0x41
b360: 30 36 2c 20 5b 30 78 41 31 2c 20 30 78 39 46 2c  06, [0xA1, 0x9F,
b370: 20 30 78 34 46 2c 20 30 78 32 37 2c 20 30 78 30   0x4F, 0x27, 0x0
b380: 34 2c 20 30 78 46 36 2c 20 30 78 38 39 2c 20 30  4, 0xF6, 0x89, 0
b390: 78 46 30 5d 7d 3b 0d 0a 65 78 74 65 72 6e 28 43  xF0]};..extern(C
b3a0: 29 20 63 6f 6e 73 74 20 47 55 49 44 20 49 49 44  ) const GUID IID
b3b0: 5f 49 44 33 44 31 30 56 65 72 74 65 78 53 68 61  _ID3D10VertexSha
b3c0: 64 65 72 09 09 09 3d 20 7b 30 78 39 42 37 45 34  der...= {0x9B7E4
b3d0: 43 30 41 2c 20 30 78 33 34 32 43 2c 20 30 78 34  C0A, 0x342C, 0x4
b3e0: 31 30 36 2c 20 5b 30 78 41 31 2c 20 30 78 39 46  106, [0xA1, 0x9F
b3f0: 2c 20 30 78 34 46 2c 20 30 78 32 37 2c 20 30 78  , 0x4F, 0x27, 0x
b400: 30 34 2c 20 30 78 46 36 2c 20 30 78 38 39 2c 20  04, 0xF6, 0x89, 
b410: 30 78 46 30 5d 7d 3b 0d 0a 65 78 74 65 72 6e 28  0xF0]};..extern(
b420: 43 29 20 63 6f 6e 73 74 20 47 55 49 44 20 49 49  C) const GUID II
b430: 44 5f 49 44 33 44 31 30 47 65 6f 6d 65 74 72 79  D_ID3D10Geometry
b440: 53 68 61 64 65 72 09 09 3d 20 7b 30 78 36 33 31  Shader..= {0x631
b450: 36 42 45 38 38 2c 20 30 78 35 34 43 44 2c 20 30  6BE88, 0x54CD, 0
b460: 78 34 30 34 30 2c 20 5b 30 78 41 42 2c 20 30 78  x4040, [0xAB, 0x
b470: 34 34 2c 20 30 78 32 30 2c 20 30 78 34 36 2c 20  44, 0x20, 0x46, 
b480: 30 78 31 42 2c 20 30 78 43 38 2c 20 30 78 31 46  0x1B, 0xC8, 0x1F
b490: 2c 20 30 78 36 38 5d 7d 3b 0d 0a 65 78 74 65 72  , 0x68]};..exter
b4a0: 6e 28 43 29 20 63 6f 6e 73 74 20 47 55 49 44 20  n(C) const GUID 
b4b0: 49 49 44 5f 49 44 33 44 31 30 50 69 78 65 6c 53  IID_ID3D10PixelS
b4c0: 68 61 64 65 72 09 09 09 3d 20 7b 30 78 34 39 36  hader...= {0x496
b4d0: 38 42 36 30 31 2c 20 30 78 39 44 30 30 2c 20 30  8B601, 0x9D00, 0
b4e0: 78 34 63 64 65 2c 20 5b 30 78 38 33 2c 20 30 78  x4cde, [0x83, 0x
b4f0: 34 36 2c 20 30 78 38 45 2c 20 30 78 37 46 2c 20  46, 0x8E, 0x7F, 
b500: 30 78 36 37 2c 20 30 78 35 38 2c 20 30 78 31 39  0x67, 0x58, 0x19
b510: 2c 20 30 78 42 36 5d 7d 3b 0d 0a 65 78 74 65 72  , 0xB6]};..exter
b520: 6e 28 43 29 20 63 6f 6e 73 74 20 47 55 49 44 20  n(C) const GUID 
b530: 49 49 44 5f 49 44 33 44 31 30 49 6e 70 75 74 4c  IID_ID3D10InputL
b540: 61 79 6f 75 74 09 09 09 3d 20 7b 30 78 39 42 37  ayout...= {0x9B7
b550: 45 34 43 30 42 2c 20 30 78 33 34 32 43 2c 20 30  E4C0B, 0x342C, 0
b560: 78 34 31 30 36 2c 20 5b 30 78 41 31 2c 20 30 78  x4106, [0xA1, 0x
b570: 39 46 2c 20 30 78 34 46 2c 20 30 78 32 37 2c 20  9F, 0x4F, 0x27, 
b580: 30 78 30 34 2c 20 30 78 46 36 2c 20 30 78 38 39  0x04, 0xF6, 0x89
b590: 2c 20 30 78 46 30 5d 7d 3b 0d 0a 65 78 74 65 72  , 0xF0]};..exter
b5a0: 6e 28 43 29 20 63 6f 6e 73 74 20 47 55 49 44 20  n(C) const GUID 
b5b0: 49 49 44 5f 49 44 33 44 31 30 53 61 6d 70 6c 65  IID_ID3D10Sample
b5c0: 72 53 74 61 74 65 09 09 09 3d 20 7b 30 78 39 42  rState...= {0x9B
b5d0: 37 45 34 43 30 43 2c 20 30 78 33 34 32 43 2c 20  7E4C0C, 0x342C, 
b5e0: 30 78 34 31 30 36 2c 20 5b 30 78 41 31 2c 20 30  0x4106, [0xA1, 0
b5f0: 78 39 46 2c 20 30 78 34 46 2c 20 30 78 32 37 2c  x9F, 0x4F, 0x27,
b600: 20 30 78 30 34 2c 20 30 78 46 36 2c 20 30 78 38   0x04, 0xF6, 0x8
b610: 39 2c 20 30 78 46 30 5d 7d 3b 0d 0a 65 78 74 65  9, 0xF0]};..exte
b620: 72 6e 28 43 29 20 63 6f 6e 73 74 20 47 55 49 44  rn(C) const GUID
b630: 20 49 49 44 5f 49 44 33 44 31 30 41 73 79 6e 63   IID_ID3D10Async
b640: 68 72 6f 6e 6f 75 73 09 09 09 3d 20 7b 30 78 39  hronous...= {0x9
b650: 42 37 45 34 43 30 44 2c 20 30 78 33 34 32 43 2c  B7E4C0D, 0x342C,
b660: 20 30 78 34 31 30 36 2c 20 5b 30 78 41 31 2c 20   0x4106, [0xA1, 
b670: 30 78 39 46 2c 20 30 78 34 46 2c 20 30 78 32 37  0x9F, 0x4F, 0x27
b680: 2c 20 30 78 30 34 2c 20 30 78 46 36 2c 20 30 78  , 0x04, 0xF6, 0x
b690: 38 39 2c 20 30 78 46 30 5d 7d 3b 0d 0a 65 78 74  89, 0xF0]};..ext
b6a0: 65 72 6e 28 43 29 20 63 6f 6e 73 74 20 47 55 49  ern(C) const GUI
b6b0: 44 20 49 49 44 5f 49 44 33 44 31 30 51 75 65 72  D IID_ID3D10Quer
b6c0: 79 09 09 09 09 3d 20 7b 30 78 39 42 37 45 34 43  y....= {0x9B7E4C
b6d0: 30 45 2c 20 30 78 33 34 32 43 2c 20 30 78 34 31  0E, 0x342C, 0x41
b6e0: 30 36 2c 20 5b 30 78 41 31 2c 20 30 78 39 46 2c  06, [0xA1, 0x9F,
b6f0: 20 30 78 34 46 2c 20 30 78 32 37 2c 20 30 78 30   0x4F, 0x27, 0x0
b700: 34 2c 20 30 78 46 36 2c 20 30 78 38 39 2c 20 30  4, 0xF6, 0x89, 0
b710: 78 46 30 5d 7d 3b 0d 0a 65 78 74 65 72 6e 28 43  xF0]};..extern(C
b720: 29 20 63 6f 6e 73 74 20 47 55 49 44 20 49 49 44  ) const GUID IID
b730: 5f 49 44 33 44 31 30 50 72 65 64 69 63 61 74 65  _ID3D10Predicate
b740: 09 09 09 3d 20 7b 30 78 39 42 37 45 34 43 31 30  ...= {0x9B7E4C10
b750: 2c 20 30 78 33 34 32 43 2c 20 30 78 34 31 30 36  , 0x342C, 0x4106
b760: 2c 20 5b 30 78 41 31 2c 20 30 78 39 46 2c 20 30  , [0xA1, 0x9F, 0
b770: 78 34 46 2c 20 30 78 32 37 2c 20 30 78 30 34 2c  x4F, 0x27, 0x04,
b780: 20 30 78 46 36 2c 20 30 78 38 39 2c 20 30 78 46   0xF6, 0x89, 0xF
b790: 30 5d 7d 3b 0d 0a 65 78 74 65 72 6e 28 43 29 20  0]};..extern(C) 
b7a0: 63 6f 6e 73 74 20 47 55 49 44 20 49 49 44 5f 49  const GUID IID_I
b7b0: 44 33 44 31 30 43 6f 75 6e 74 65 72 09 09 09 09  D3D10Counter....
b7c0: 3d 20 7b 30 78 39 42 37 45 34 43 31 31 2c 20 30  = {0x9B7E4C11, 0
b7d0: 78 33 34 32 43 2c 20 30 78 34 31 30 36 2c 20 5b  x342C, 0x4106, [
b7e0: 30 78 41 31 2c 20 30 78 39 46 2c 20 30 78 34 46  0xA1, 0x9F, 0x4F
b7f0: 2c 20 30 78 32 37 2c 20 30 78 30 34 2c 20 30 78  , 0x27, 0x04, 0x
b800: 46 36 2c 20 30 78 38 39 2c 20 30 78 46 30 5d 7d  F6, 0x89, 0xF0]}
b810: 3b 0d 0a 65 78 74 65 72 6e 28 43 29 20 63 6f 6e  ;..extern(C) con
b820: 73 74 20 47 55 49 44 20 49 49 44 5f 49 44 33 44  st GUID IID_ID3D
b830: 31 30 44 65 76 69 63 65 09 09 09 09 3d 20 7b 30  10Device....= {0
b840: 78 39 42 37 45 34 43 30 46 2c 20 30 78 33 34 32  x9B7E4C0F, 0x342
b850: 43 2c 20 30 78 34 31 30 36 2c 20 5b 30 78 41 31  C, 0x4106, [0xA1
b860: 2c 20 30 78 39 46 2c 20 30 78 34 46 2c 20 30 78  , 0x9F, 0x4F, 0x
b870: 32 37 2c 20 30 78 30 34 2c 20 30 78 46 36 2c 20  27, 0x04, 0xF6, 
b880: 30 78 38 39 2c 20 30 78 46 30 5d 7d 3b 0d 0a 65  0x89, 0xF0]};..e
b890: 78 74 65 72 6e 28 43 29 20 63 6f 6e 73 74 20 47  xtern(C) const G
b8a0: 55 49 44 20 49 49 44 5f 49 44 33 44 31 30 4d 75  UID IID_ID3D10Mu
b8b0: 6c 74 69 74 68 72 65 61 64 09 09 09 3d 20 7b 30  ltithread...= {0
b8c0: 78 39 42 37 45 34 45 30 30 2c 20 30 78 33 34 32  x9B7E4E00, 0x342
b8d0: 43 2c 20 30 78 34 31 30 36 2c 20 5b 30 78 41 31  C, 0x4106, [0xA1
b8e0: 2c 20 30 78 39 46 2c 20 30 78 34 46 2c 20 30 78  , 0x9F, 0x4F, 0x
b8f0: 32 37 2c 20 30 78 30 34 2c 20 30 78 46 36 2c 20  27, 0x04, 0xF6, 
b900: 30 78 38 39 2c 20 30 78 46 30 5d 7d 3b 0d 0a 0d  0x89, 0xF0]};...
b910: 0a 70 75 62 6c 69 63 20 69 6d 70 6f 72 74 20 77  .public import w
b920: 69 6e 33 32 2e 64 69 72 65 63 74 78 2e 64 33 64  in32.directx.d3d
b930: 31 30 73 68 61 64 65 72 3b 0d 0a 70 75 62 6c 69  10shader;..publi
b940: 63 20 69 6d 70 6f 72 74 20 77 69 6e 33 32 2e 64  c import win32.d
b950: 69 72 65 63 74 78 2e 64 33 64 31 30 65 66 66 65  irectx.d3d10effe
b960: 63 74 3b 0d 0a                                   ct;..