101e04c3fSmrg/*
201e04c3fSmrg * Copyright 2011 Joakim Sindholt <opensource@zhasha.com>
301e04c3fSmrg *
401e04c3fSmrg * Permission is hereby granted, free of charge, to any person obtaining a
501e04c3fSmrg * copy of this software and associated documentation files (the "Software"),
601e04c3fSmrg * to deal in the Software without restriction, including without limitation
701e04c3fSmrg * on the rights to use, copy, modify, merge, publish, distribute, sub
801e04c3fSmrg * license, and/or sell copies of the Software, and to permit persons to whom
901e04c3fSmrg * the Software is furnished to do so, subject to the following conditions:
1001e04c3fSmrg *
1101e04c3fSmrg * The above copyright notice and this permission notice (including the next
1201e04c3fSmrg * paragraph) shall be included in all copies or substantial portions of the
1301e04c3fSmrg * Software.
1401e04c3fSmrg *
1501e04c3fSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1601e04c3fSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1701e04c3fSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
1801e04c3fSmrg * THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
1901e04c3fSmrg * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
2001e04c3fSmrg * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
2101e04c3fSmrg * USE OR OTHER DEALINGS IN THE SOFTWARE. */
2201e04c3fSmrg
2301e04c3fSmrg#ifndef _D3D9CAPS_H_
2401e04c3fSmrg#define _D3D9CAPS_H_
2501e04c3fSmrg
2601e04c3fSmrg#include "d3d9types.h"
2701e04c3fSmrg
2801e04c3fSmrg/* Caps flags */
2953c12917Smaya#define D3DCAPS_OVERLAY       0x00000800
3053c12917Smaya#define D3DCAPS_READ_SCANLINE 0x00020000
3153c12917Smaya
3201e04c3fSmrg#define D3DCAPS2_FULLSCREENGAMMA   0x00020000
3301e04c3fSmrg#define D3DCAPS2_CANCALIBRATEGAMMA 0x00100000
3401e04c3fSmrg#define D3DCAPS2_RESERVED          0x02000000
3501e04c3fSmrg#define D3DCAPS2_CANMANAGERESOURCE 0x10000000
3601e04c3fSmrg#define D3DCAPS2_DYNAMICTEXTURES   0x20000000
3701e04c3fSmrg#define D3DCAPS2_CANAUTOGENMIPMAP  0x40000000
3801e04c3fSmrg#define D3DCAPS2_CANSHARERESOURCE  0x80000000
3901e04c3fSmrg
4001e04c3fSmrg#define D3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD 0x00000020
4101e04c3fSmrg#define D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION      0x00000080
4201e04c3fSmrg#define D3DCAPS3_COPY_TO_VIDMEM                   0x00000100
4301e04c3fSmrg#define D3DCAPS3_COPY_TO_SYSTEMMEM                0x00000200
4401e04c3fSmrg#define D3DCAPS3_DXVAHD                           0x00000400
4501e04c3fSmrg#define D3DCAPS3_RESERVED                         0x8000001F
4601e04c3fSmrg
4701e04c3fSmrg#define D3DPRESENT_INTERVAL_DEFAULT   0x00000000
4801e04c3fSmrg#define D3DPRESENT_INTERVAL_ONE       0x00000001
4901e04c3fSmrg#define D3DPRESENT_INTERVAL_TWO       0x00000002
5001e04c3fSmrg#define D3DPRESENT_INTERVAL_THREE     0x00000004
5101e04c3fSmrg#define D3DPRESENT_INTERVAL_FOUR      0x00000008
5201e04c3fSmrg#define D3DPRESENT_INTERVAL_IMMEDIATE 0x80000000
5301e04c3fSmrg
5401e04c3fSmrg#define D3DCURSORCAPS_COLOR  0x00000001
5501e04c3fSmrg#define D3DCURSORCAPS_LOWRES 0x00000002
5601e04c3fSmrg
5701e04c3fSmrg#define D3DDEVCAPS_EXECUTESYSTEMMEMORY     0x00000010
5801e04c3fSmrg#define D3DDEVCAPS_EXECUTEVIDEOMEMORY      0x00000020
5901e04c3fSmrg#define D3DDEVCAPS_TLVERTEXSYSTEMMEMORY    0x00000040
6001e04c3fSmrg#define D3DDEVCAPS_TLVERTEXVIDEOMEMORY     0x00000080
6101e04c3fSmrg#define D3DDEVCAPS_TEXTURESYSTEMMEMORY     0x00000100
6201e04c3fSmrg#define D3DDEVCAPS_TEXTUREVIDEOMEMORY      0x00000200
6301e04c3fSmrg#define D3DDEVCAPS_DRAWPRIMTLVERTEX        0x00000400
6401e04c3fSmrg#define D3DDEVCAPS_CANRENDERAFTERFLIP      0x00000800
6501e04c3fSmrg#define D3DDEVCAPS_TEXTURENONLOCALVIDMEM   0x00001000
6601e04c3fSmrg#define D3DDEVCAPS_DRAWPRIMITIVES2         0x00002000
6701e04c3fSmrg#define D3DDEVCAPS_SEPARATETEXTUREMEMORIES 0x00004000
6801e04c3fSmrg#define D3DDEVCAPS_DRAWPRIMITIVES2EX       0x00008000
6901e04c3fSmrg#define D3DDEVCAPS_HWTRANSFORMANDLIGHT     0x00010000
7001e04c3fSmrg#define D3DDEVCAPS_CANBLTSYSTONONLOCAL     0x00020000
7101e04c3fSmrg#define D3DDEVCAPS_HWRASTERIZATION         0x00080000
7201e04c3fSmrg#define D3DDEVCAPS_PUREDEVICE              0x00100000
7301e04c3fSmrg#define D3DDEVCAPS_QUINTICRTPATCHES        0x00200000
7401e04c3fSmrg#define D3DDEVCAPS_RTPATCHES               0x00400000
7501e04c3fSmrg#define D3DDEVCAPS_RTPATCHHANDLEZERO       0x00800000
7601e04c3fSmrg#define D3DDEVCAPS_NPATCHES                0x01000000
7701e04c3fSmrg
7801e04c3fSmrg#define D3DPMISCCAPS_MASKZ                      0x00000002
7901e04c3fSmrg#define D3DPMISCCAPS_CULLNONE                   0x00000010
8001e04c3fSmrg#define D3DPMISCCAPS_CULLCW                     0x00000020
8101e04c3fSmrg#define D3DPMISCCAPS_CULLCCW                    0x00000040
8201e04c3fSmrg#define D3DPMISCCAPS_COLORWRITEENABLE           0x00000080
8301e04c3fSmrg#define D3DPMISCCAPS_CLIPPLANESCALEDPOINTS      0x00000100
8401e04c3fSmrg#define D3DPMISCCAPS_CLIPTLVERTS                0x00000200
8501e04c3fSmrg#define D3DPMISCCAPS_TSSARGTEMP                 0x00000400
8601e04c3fSmrg#define D3DPMISCCAPS_BLENDOP                    0x00000800
8701e04c3fSmrg#define D3DPMISCCAPS_NULLREFERENCE              0x00001000
8801e04c3fSmrg#define D3DPMISCCAPS_INDEPENDENTWRITEMASKS      0x00004000
8901e04c3fSmrg#define D3DPMISCCAPS_PERSTAGECONSTANT           0x00008000
9001e04c3fSmrg#define D3DPMISCCAPS_FOGANDSPECULARALPHA        0x00010000
9101e04c3fSmrg#define D3DPMISCCAPS_SEPARATEALPHABLEND         0x00020000
9201e04c3fSmrg#define D3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS    0x00040000
9301e04c3fSmrg#define D3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING 0x00080000
9401e04c3fSmrg#define D3DPMISCCAPS_FOGVERTEXCLAMPED           0x00100000
9501e04c3fSmrg#define D3DPMISCCAPS_POSTBLENDSRGBCONVERT       0x00200000
9601e04c3fSmrg
9701e04c3fSmrg#define D3DPRASTERCAPS_DITHER              0x00000001
9801e04c3fSmrg#define D3DPRASTERCAPS_ZTEST               0x00000010
9901e04c3fSmrg#define D3DPRASTERCAPS_FOGVERTEX           0x00000080
10001e04c3fSmrg#define D3DPRASTERCAPS_FOGTABLE            0x00000100
10101e04c3fSmrg#define D3DPRASTERCAPS_MIPMAPLODBIAS       0x00002000
10201e04c3fSmrg#define D3DPRASTERCAPS_ZBUFFERLESSHSR      0x00008000
10301e04c3fSmrg#define D3DPRASTERCAPS_FOGRANGE            0x00010000
10401e04c3fSmrg#define D3DPRASTERCAPS_ANISOTROPY          0x00020000
10501e04c3fSmrg#define D3DPRASTERCAPS_WBUFFER             0x00040000
10601e04c3fSmrg#define D3DPRASTERCAPS_WFOG                0x00100000
10701e04c3fSmrg#define D3DPRASTERCAPS_ZFOG                0x00200000
10801e04c3fSmrg#define D3DPRASTERCAPS_COLORPERSPECTIVE    0x00400000
10901e04c3fSmrg#define D3DPRASTERCAPS_SCISSORTEST         0x01000000
11001e04c3fSmrg#define D3DPRASTERCAPS_SLOPESCALEDEPTHBIAS 0x02000000
11101e04c3fSmrg#define D3DPRASTERCAPS_DEPTHBIAS           0x04000000
11201e04c3fSmrg#define D3DPRASTERCAPS_MULTISAMPLE_TOGGLE  0x08000000
11301e04c3fSmrg
11401e04c3fSmrg#define D3DPCMPCAPS_NEVER        0x00000001
11501e04c3fSmrg#define D3DPCMPCAPS_LESS         0x00000002
11601e04c3fSmrg#define D3DPCMPCAPS_EQUAL        0x00000004
11701e04c3fSmrg#define D3DPCMPCAPS_LESSEQUAL    0x00000008
11801e04c3fSmrg#define D3DPCMPCAPS_GREATER      0x00000010
11901e04c3fSmrg#define D3DPCMPCAPS_NOTEQUAL     0x00000020
12001e04c3fSmrg#define D3DPCMPCAPS_GREATEREQUAL 0x00000040
12101e04c3fSmrg#define D3DPCMPCAPS_ALWAYS       0x00000080
12201e04c3fSmrg
12301e04c3fSmrg#define D3DPBLENDCAPS_ZERO            0x00000001
12401e04c3fSmrg#define D3DPBLENDCAPS_ONE             0x00000002
12501e04c3fSmrg#define D3DPBLENDCAPS_SRCCOLOR        0x00000004
12601e04c3fSmrg#define D3DPBLENDCAPS_INVSRCCOLOR     0x00000008
12701e04c3fSmrg#define D3DPBLENDCAPS_SRCALPHA        0x00000010
12801e04c3fSmrg#define D3DPBLENDCAPS_INVSRCALPHA     0x00000020
12901e04c3fSmrg#define D3DPBLENDCAPS_DESTALPHA       0x00000040
13001e04c3fSmrg#define D3DPBLENDCAPS_INVDESTALPHA    0x00000080
13101e04c3fSmrg#define D3DPBLENDCAPS_DESTCOLOR       0x00000100
13201e04c3fSmrg#define D3DPBLENDCAPS_INVDESTCOLOR    0x00000200
13301e04c3fSmrg#define D3DPBLENDCAPS_SRCALPHASAT     0x00000400
13401e04c3fSmrg#define D3DPBLENDCAPS_BOTHSRCALPHA    0x00000800
13501e04c3fSmrg#define D3DPBLENDCAPS_BOTHINVSRCALPHA 0x00001000
13601e04c3fSmrg#define D3DPBLENDCAPS_BLENDFACTOR     0x00002000
13701e04c3fSmrg#ifndef D3D_DISABLE_9EX
13801e04c3fSmrg# define D3DPBLENDCAPS_SRCCOLOR2      0x00004000
13901e04c3fSmrg# define D3DPBLENDCAPS_INVSRCCOLOR2   0x00008000
14001e04c3fSmrg#endif
14101e04c3fSmrg
14201e04c3fSmrg#define D3DPSHADECAPS_COLORGOURAUDRGB    0x00000008
14301e04c3fSmrg#define D3DPSHADECAPS_SPECULARGOURAUDRGB 0x00000200
14401e04c3fSmrg#define D3DPSHADECAPS_ALPHAGOURAUDBLEND  0x00004000
14501e04c3fSmrg#define D3DPSHADECAPS_FOGGOURAUD         0x00080000
14601e04c3fSmrg
14701e04c3fSmrg#define D3DPTEXTURECAPS_PERSPECTIVE              0x00000001
14801e04c3fSmrg#define D3DPTEXTURECAPS_POW2                     0x00000002
14901e04c3fSmrg#define D3DPTEXTURECAPS_ALPHA                    0x00000004
15001e04c3fSmrg#define D3DPTEXTURECAPS_SQUAREONLY               0x00000020
15101e04c3fSmrg#define D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE 0x00000040
15201e04c3fSmrg#define D3DPTEXTURECAPS_ALPHAPALETTE             0x00000080
15301e04c3fSmrg#define D3DPTEXTURECAPS_NONPOW2CONDITIONAL       0x00000100
15401e04c3fSmrg#define D3DPTEXTURECAPS_PROJECTED                0x00000400
15501e04c3fSmrg#define D3DPTEXTURECAPS_CUBEMAP                  0x00000800
15601e04c3fSmrg#define D3DPTEXTURECAPS_VOLUMEMAP                0x00002000
15701e04c3fSmrg#define D3DPTEXTURECAPS_MIPMAP                   0x00004000
15801e04c3fSmrg#define D3DPTEXTURECAPS_MIPVOLUMEMAP             0x00008000
15901e04c3fSmrg#define D3DPTEXTURECAPS_MIPCUBEMAP               0x00010000
16001e04c3fSmrg#define D3DPTEXTURECAPS_CUBEMAP_POW2             0x00020000
16101e04c3fSmrg#define D3DPTEXTURECAPS_VOLUMEMAP_POW2           0x00040000
16201e04c3fSmrg#define D3DPTEXTURECAPS_NOPROJECTEDBUMPENV       0x00200000
16301e04c3fSmrg
16401e04c3fSmrg#define D3DPTFILTERCAPS_MINFPOINT         0x00000100
16501e04c3fSmrg#define D3DPTFILTERCAPS_MINFLINEAR        0x00000200
16601e04c3fSmrg#define D3DPTFILTERCAPS_MINFANISOTROPIC   0x00000400
16701e04c3fSmrg#define D3DPTFILTERCAPS_MINFPYRAMIDALQUAD 0x00000800
16801e04c3fSmrg#define D3DPTFILTERCAPS_MINFGAUSSIANQUAD  0x00001000
16901e04c3fSmrg#define D3DPTFILTERCAPS_MIPFPOINT         0x00010000
17001e04c3fSmrg#define D3DPTFILTERCAPS_MIPFLINEAR        0x00020000
17101e04c3fSmrg#define D3DPTFILTERCAPS_MAGFPOINT         0x01000000
17201e04c3fSmrg#define D3DPTFILTERCAPS_MAGFLINEAR        0x02000000
17301e04c3fSmrg#define D3DPTFILTERCAPS_MAGFANISOTROPIC   0x04000000
17401e04c3fSmrg#define D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD 0x08000000
17501e04c3fSmrg#define D3DPTFILTERCAPS_MAGFGAUSSIANQUAD  0x10000000
17601e04c3fSmrg
17701e04c3fSmrg#define D3DPTADDRESSCAPS_WRAP          0x00000001
17801e04c3fSmrg#define D3DPTADDRESSCAPS_MIRROR        0x00000002
17901e04c3fSmrg#define D3DPTADDRESSCAPS_CLAMP         0x00000004
18001e04c3fSmrg#define D3DPTADDRESSCAPS_BORDER        0x00000008
18101e04c3fSmrg#define D3DPTADDRESSCAPS_INDEPENDENTUV 0x00000010
18201e04c3fSmrg#define D3DPTADDRESSCAPS_MIRRORONCE    0x00000020
18301e04c3fSmrg
18401e04c3fSmrg#define D3DLINECAPS_TEXTURE   0x00000001
18501e04c3fSmrg#define D3DLINECAPS_ZTEST     0x00000002
18601e04c3fSmrg#define D3DLINECAPS_BLEND     0x00000004
18701e04c3fSmrg#define D3DLINECAPS_ALPHACMP  0x00000008
18801e04c3fSmrg#define D3DLINECAPS_FOG       0x00000010
18901e04c3fSmrg#define D3DLINECAPS_ANTIALIAS 0x00000020
19001e04c3fSmrg
19101e04c3fSmrg#define D3DSTENCILCAPS_KEEP     0x00000001
19201e04c3fSmrg#define D3DSTENCILCAPS_ZERO     0x00000002
19301e04c3fSmrg#define D3DSTENCILCAPS_REPLACE  0x00000004
19401e04c3fSmrg#define D3DSTENCILCAPS_INCRSAT  0x00000008
19501e04c3fSmrg#define D3DSTENCILCAPS_DECRSAT  0x00000010
19601e04c3fSmrg#define D3DSTENCILCAPS_INVERT   0x00000020
19701e04c3fSmrg#define D3DSTENCILCAPS_INCR     0x00000040
19801e04c3fSmrg#define D3DSTENCILCAPS_DECR     0x00000080
19901e04c3fSmrg#define D3DSTENCILCAPS_TWOSIDED 0x00000100
20001e04c3fSmrg
20101e04c3fSmrg#define D3DFVFCAPS_TEXCOORDCOUNTMASK  0x0000FFFF
20201e04c3fSmrg#define D3DFVFCAPS_DONOTSTRIPELEMENTS 0x00080000
20301e04c3fSmrg#define D3DFVFCAPS_PSIZE              0x00100000
20401e04c3fSmrg
20501e04c3fSmrg#define D3DTEXOPCAPS_DISABLE                   0x00000001
20601e04c3fSmrg#define D3DTEXOPCAPS_SELECTARG1                0x00000002
20701e04c3fSmrg#define D3DTEXOPCAPS_SELECTARG2                0x00000004
20801e04c3fSmrg#define D3DTEXOPCAPS_MODULATE                  0x00000008
20901e04c3fSmrg#define D3DTEXOPCAPS_MODULATE2X                0x00000010
21001e04c3fSmrg#define D3DTEXOPCAPS_MODULATE4X                0x00000020
21101e04c3fSmrg#define D3DTEXOPCAPS_ADD                       0x00000040
21201e04c3fSmrg#define D3DTEXOPCAPS_ADDSIGNED                 0x00000080
21301e04c3fSmrg#define D3DTEXOPCAPS_ADDSIGNED2X               0x00000100
21401e04c3fSmrg#define D3DTEXOPCAPS_SUBTRACT                  0x00000200
21501e04c3fSmrg#define D3DTEXOPCAPS_ADDSMOOTH                 0x00000400
21601e04c3fSmrg#define D3DTEXOPCAPS_BLENDDIFFUSEALPHA         0x00000800
21701e04c3fSmrg#define D3DTEXOPCAPS_BLENDTEXTUREALPHA         0x00001000
21801e04c3fSmrg#define D3DTEXOPCAPS_BLENDFACTORALPHA          0x00002000
21901e04c3fSmrg#define D3DTEXOPCAPS_BLENDTEXTUREALPHAPM       0x00004000
22001e04c3fSmrg#define D3DTEXOPCAPS_BLENDCURRENTALPHA         0x00008000
22101e04c3fSmrg#define D3DTEXOPCAPS_PREMODULATE               0x00010000
22201e04c3fSmrg#define D3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR    0x00020000
22301e04c3fSmrg#define D3DTEXOPCAPS_MODULATECOLOR_ADDALPHA    0x00040000
22401e04c3fSmrg#define D3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR 0x00080000
22501e04c3fSmrg#define D3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA 0x00100000
22601e04c3fSmrg#define D3DTEXOPCAPS_BUMPENVMAP                0x00200000
22701e04c3fSmrg#define D3DTEXOPCAPS_BUMPENVMAPLUMINANCE       0x00400000
22801e04c3fSmrg#define D3DTEXOPCAPS_DOTPRODUCT3               0x00800000
22901e04c3fSmrg#define D3DTEXOPCAPS_MULTIPLYADD               0x01000000
23001e04c3fSmrg#define D3DTEXOPCAPS_LERP                      0x02000000
23101e04c3fSmrg
23201e04c3fSmrg#define D3DVTXPCAPS_TEXGEN                   0x00000001
23301e04c3fSmrg#define D3DVTXPCAPS_MATERIALSOURCE7          0x00000002
23401e04c3fSmrg#define D3DVTXPCAPS_DIRECTIONALLIGHTS        0x00000008
23501e04c3fSmrg#define D3DVTXPCAPS_POSITIONALLIGHTS         0x00000010
23601e04c3fSmrg#define D3DVTXPCAPS_LOCALVIEWER              0x00000020
23701e04c3fSmrg#define D3DVTXPCAPS_TWEENING                 0x00000040
23801e04c3fSmrg#define D3DVTXPCAPS_TEXGEN_SPHEREMAP         0x00000100
23901e04c3fSmrg#define D3DVTXPCAPS_NO_TEXGEN_NONLOCALVIEWER 0x00000200
24001e04c3fSmrg
24101e04c3fSmrg#define D3DDEVCAPS2_STREAMOFFSET                       0x00000001
24201e04c3fSmrg#define D3DDEVCAPS2_DMAPNPATCH                         0x00000002
24301e04c3fSmrg#define D3DDEVCAPS2_ADAPTIVETESSRTPATCH                0x00000004
24401e04c3fSmrg#define D3DDEVCAPS2_ADAPTIVETESSNPATCH                 0x00000008
24501e04c3fSmrg#define D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES      0x00000010
24601e04c3fSmrg#define D3DDEVCAPS2_PRESAMPLEDDMAPNPATCH               0x00000020
24701e04c3fSmrg#define D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET 0x00000040
24801e04c3fSmrg
24901e04c3fSmrg#define D3DDTCAPS_UBYTE4    0x00000001
25001e04c3fSmrg#define D3DDTCAPS_UBYTE4N   0x00000002
25101e04c3fSmrg#define D3DDTCAPS_SHORT2N   0x00000004
25201e04c3fSmrg#define D3DDTCAPS_SHORT4N   0x00000008
25301e04c3fSmrg#define D3DDTCAPS_USHORT2N  0x00000010
25401e04c3fSmrg#define D3DDTCAPS_USHORT4N  0x00000020
25501e04c3fSmrg#define D3DDTCAPS_UDEC3     0x00000040
25601e04c3fSmrg#define D3DDTCAPS_DEC3N     0x00000080
25701e04c3fSmrg#define D3DDTCAPS_FLOAT16_2 0x00000100
25801e04c3fSmrg#define D3DDTCAPS_FLOAT16_4 0x00000200
25901e04c3fSmrg
26001e04c3fSmrg
26101e04c3fSmrg#define D3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH  24
26201e04c3fSmrg#define D3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH  0
26301e04c3fSmrg#define D3DVS20_MAX_NUMTEMPS                 32
26401e04c3fSmrg#define D3DVS20_MIN_NUMTEMPS                 12
26501e04c3fSmrg#define D3DVS20_MAX_STATICFLOWCONTROLDEPTH   4
26601e04c3fSmrg#define D3DVS20_MIN_STATICFLOWCONTROLDEPTH   1
26701e04c3fSmrg
26801e04c3fSmrg#define D3DVS20CAPS_PREDICATION              (1 << 0)
26901e04c3fSmrg
27001e04c3fSmrg#define D3DPS20CAPS_ARBITRARYSWIZZLE         (1 << 0)
27101e04c3fSmrg#define D3DPS20CAPS_GRADIENTINSTRUCTIONS     (1 << 1)
27201e04c3fSmrg#define D3DPS20CAPS_PREDICATION              (1 << 2)
27301e04c3fSmrg#define D3DPS20CAPS_NODEPENDENTREADLIMIT     (1 << 3)
27401e04c3fSmrg#define D3DPS20CAPS_NOTEXINSTRUCTIONLIMIT    (1 << 4)
27501e04c3fSmrg
27601e04c3fSmrg#define D3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH  24
27701e04c3fSmrg#define D3DPS20_MIN_DYNAMICFLOWCONTROLDEPTH  0
27801e04c3fSmrg#define D3DPS20_MAX_NUMTEMPS                 32
27901e04c3fSmrg#define D3DPS20_MIN_NUMTEMPS                 12
28001e04c3fSmrg#define D3DPS20_MAX_STATICFLOWCONTROLDEPTH   4
28101e04c3fSmrg#define D3DPS20_MIN_STATICFLOWCONTROLDEPTH   0
28201e04c3fSmrg#define D3DPS20_MAX_NUMINSTRUCTIONSLOTS      512
28301e04c3fSmrg#define D3DPS20_MIN_NUMINSTRUCTIONSLOTS      96
28401e04c3fSmrg
28501e04c3fSmrg#define D3DMIN30SHADERINSTRUCTIONS          512
28601e04c3fSmrg#define D3DMAX30SHADERINSTRUCTIONS          32768
28701e04c3fSmrg
28801e04c3fSmrg/* Structs */
28901e04c3fSmrgtypedef struct _D3DVSHADERCAPS2_0 {
29001e04c3fSmrg	DWORD Caps;
29101e04c3fSmrg	INT DynamicFlowControlDepth;
29201e04c3fSmrg	INT NumTemps;
29301e04c3fSmrg	INT StaticFlowControlDepth;
29401e04c3fSmrg} D3DVSHADERCAPS2_0, *PD3DVSHADERCAPS2_0, *LPD3DVSHADERCAPS2_0;
29501e04c3fSmrg
29601e04c3fSmrgtypedef struct _D3DPSHADERCAPS2_0 {
29701e04c3fSmrg	DWORD Caps;
29801e04c3fSmrg	INT DynamicFlowControlDepth;
29901e04c3fSmrg	INT NumTemps;
30001e04c3fSmrg	INT StaticFlowControlDepth;
30101e04c3fSmrg	INT NumInstructionSlots;
30201e04c3fSmrg} D3DPSHADERCAPS2_0, *PD3DPSHADERCAPS2_0, *LPD3DPSHADERCAPS2_0;
30301e04c3fSmrg
30401e04c3fSmrgtypedef struct _D3DCAPS9 {
30501e04c3fSmrg	D3DDEVTYPE DeviceType;
30601e04c3fSmrg	UINT AdapterOrdinal;
30701e04c3fSmrg	DWORD Caps;
30801e04c3fSmrg	DWORD Caps2;
30901e04c3fSmrg	DWORD Caps3;
31001e04c3fSmrg	DWORD PresentationIntervals;
31101e04c3fSmrg	DWORD CursorCaps;
31201e04c3fSmrg	DWORD DevCaps;
31301e04c3fSmrg	DWORD PrimitiveMiscCaps;
31401e04c3fSmrg	DWORD RasterCaps;
31501e04c3fSmrg	DWORD ZCmpCaps;
31601e04c3fSmrg	DWORD SrcBlendCaps;
31701e04c3fSmrg	DWORD DestBlendCaps;
31801e04c3fSmrg	DWORD AlphaCmpCaps;
31901e04c3fSmrg	DWORD ShadeCaps;
32001e04c3fSmrg	DWORD TextureCaps;
32101e04c3fSmrg	DWORD TextureFilterCaps;
32201e04c3fSmrg	DWORD CubeTextureFilterCaps;
32301e04c3fSmrg	DWORD VolumeTextureFilterCaps;
32401e04c3fSmrg	DWORD TextureAddressCaps;
32501e04c3fSmrg	DWORD VolumeTextureAddressCaps;
32601e04c3fSmrg	DWORD LineCaps;
32701e04c3fSmrg	DWORD MaxTextureWidth;
32801e04c3fSmrg	DWORD MaxTextureHeight;
32901e04c3fSmrg	DWORD MaxVolumeExtent;
33001e04c3fSmrg	DWORD MaxTextureRepeat;
33101e04c3fSmrg	DWORD MaxTextureAspectRatio;
33201e04c3fSmrg	DWORD MaxAnisotropy;
33301e04c3fSmrg	float MaxVertexW;
33401e04c3fSmrg	float GuardBandLeft;
33501e04c3fSmrg	float GuardBandTop;
33601e04c3fSmrg	float GuardBandRight;
33701e04c3fSmrg	float GuardBandBottom;
33801e04c3fSmrg	float ExtentsAdjust;
33901e04c3fSmrg	DWORD StencilCaps;
34001e04c3fSmrg	DWORD FVFCaps;
34101e04c3fSmrg	DWORD TextureOpCaps;
34201e04c3fSmrg	DWORD MaxTextureBlendStages;
34301e04c3fSmrg	DWORD MaxSimultaneousTextures;
34401e04c3fSmrg	DWORD VertexProcessingCaps;
34501e04c3fSmrg	DWORD MaxActiveLights;
34601e04c3fSmrg	DWORD MaxUserClipPlanes;
34701e04c3fSmrg	DWORD MaxVertexBlendMatrices;
34801e04c3fSmrg	DWORD MaxVertexBlendMatrixIndex;
34901e04c3fSmrg	float MaxPointSize;
35001e04c3fSmrg	DWORD MaxPrimitiveCount;
35101e04c3fSmrg	DWORD MaxVertexIndex;
35201e04c3fSmrg	DWORD MaxStreams;
35301e04c3fSmrg	DWORD MaxStreamStride;
35401e04c3fSmrg	DWORD VertexShaderVersion;
35501e04c3fSmrg	DWORD MaxVertexShaderConst;
35601e04c3fSmrg	DWORD PixelShaderVersion;
35701e04c3fSmrg	float PixelShader1xMaxValue;
35801e04c3fSmrg	DWORD DevCaps2;
35901e04c3fSmrg	float MaxNpatchTessellationLevel;
36001e04c3fSmrg	DWORD Reserved5;
36101e04c3fSmrg	UINT MasterAdapterOrdinal;
36201e04c3fSmrg	UINT AdapterOrdinalInGroup;
36301e04c3fSmrg	UINT NumberOfAdaptersInGroup;
36401e04c3fSmrg	DWORD DeclTypes;
36501e04c3fSmrg	DWORD NumSimultaneousRTs;
36601e04c3fSmrg	DWORD StretchRectFilterCaps;
36701e04c3fSmrg	D3DVSHADERCAPS2_0 VS20Caps;
36801e04c3fSmrg	D3DPSHADERCAPS2_0 PS20Caps;
36901e04c3fSmrg	DWORD VertexTextureFilterCaps;
37001e04c3fSmrg	DWORD MaxVShaderInstructionsExecuted;
37101e04c3fSmrg	DWORD MaxPShaderInstructionsExecuted;
37201e04c3fSmrg	DWORD MaxVertexShader30InstructionSlots;
37301e04c3fSmrg	DWORD MaxPixelShader30InstructionSlots;
37401e04c3fSmrg} D3DCAPS9, *PD3DCAPS9, *LPD3DCAPS9;
37501e04c3fSmrg
37601e04c3fSmrgtypedef struct _D3DCONTENTPROTECTIONCAPS {
37701e04c3fSmrg    DWORD Caps;
37801e04c3fSmrg    GUID KeyExchangeType;
37901e04c3fSmrg    UINT BufferAlignmentStart;
38001e04c3fSmrg    UINT BlockAlignmentSize;
38101e04c3fSmrg    ULONGLONG ProtectedMemorySize;
38201e04c3fSmrg} D3DCONTENTPROTECTIONCAPS, *PD3DCONTENTPROTECTIONCAPS, *LPD3DCONTENTPROTECTIONCAPS;
38301e04c3fSmrg
38401e04c3fSmrgtypedef struct _D3DOVERLAYCAPS {
38501e04c3fSmrg    UINT Caps;
38601e04c3fSmrg    UINT MaxOverlayDisplayWidth;
38701e04c3fSmrg    UINT MaxOverlayDisplayHeight;
38801e04c3fSmrg} D3DOVERLAYCAPS, *PD3DOVERLAYCAPS, *LPD3DOVERLAYCAPS;
38901e04c3fSmrg
39001e04c3fSmrg#endif /* _D3D9CAPS_H_ */
391