1bf215546Sopenharmony_ci/* 2bf215546Sopenharmony_ci * Copyright 2011 Joakim Sindholt <opensource@zhasha.com> 3bf215546Sopenharmony_ci * 4bf215546Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 5bf215546Sopenharmony_ci * copy of this software and associated documentation files (the "Software"), 6bf215546Sopenharmony_ci * to deal in the Software without restriction, including without limitation 7bf215546Sopenharmony_ci * on the rights to use, copy, modify, merge, publish, distribute, sub 8bf215546Sopenharmony_ci * license, and/or sell copies of the Software, and to permit persons to whom 9bf215546Sopenharmony_ci * the Software is furnished to do so, subject to the following conditions: 10bf215546Sopenharmony_ci * 11bf215546Sopenharmony_ci * The above copyright notice and this permission notice (including the next 12bf215546Sopenharmony_ci * paragraph) shall be included in all copies or substantial portions of the 13bf215546Sopenharmony_ci * Software. 14bf215546Sopenharmony_ci * 15bf215546Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16bf215546Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17bf215546Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 18bf215546Sopenharmony_ci * THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, 19bf215546Sopenharmony_ci * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 20bf215546Sopenharmony_ci * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 21bf215546Sopenharmony_ci * USE OR OTHER DEALINGS IN THE SOFTWARE. */ 22bf215546Sopenharmony_ci 23bf215546Sopenharmony_ci#ifndef _D3D9CAPS_H_ 24bf215546Sopenharmony_ci#define _D3D9CAPS_H_ 25bf215546Sopenharmony_ci 26bf215546Sopenharmony_ci#include "d3d9types.h" 27bf215546Sopenharmony_ci 28bf215546Sopenharmony_ci/* Caps flags */ 29bf215546Sopenharmony_ci#define D3DCAPS_OVERLAY 0x00000800 30bf215546Sopenharmony_ci#define D3DCAPS_READ_SCANLINE 0x00020000 31bf215546Sopenharmony_ci 32bf215546Sopenharmony_ci#define D3DCAPS2_FULLSCREENGAMMA 0x00020000 33bf215546Sopenharmony_ci#define D3DCAPS2_CANCALIBRATEGAMMA 0x00100000 34bf215546Sopenharmony_ci#define D3DCAPS2_RESERVED 0x02000000 35bf215546Sopenharmony_ci#define D3DCAPS2_CANMANAGERESOURCE 0x10000000 36bf215546Sopenharmony_ci#define D3DCAPS2_DYNAMICTEXTURES 0x20000000 37bf215546Sopenharmony_ci#define D3DCAPS2_CANAUTOGENMIPMAP 0x40000000 38bf215546Sopenharmony_ci#define D3DCAPS2_CANSHARERESOURCE 0x80000000 39bf215546Sopenharmony_ci 40bf215546Sopenharmony_ci#define D3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD 0x00000020 41bf215546Sopenharmony_ci#define D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION 0x00000080 42bf215546Sopenharmony_ci#define D3DCAPS3_COPY_TO_VIDMEM 0x00000100 43bf215546Sopenharmony_ci#define D3DCAPS3_COPY_TO_SYSTEMMEM 0x00000200 44bf215546Sopenharmony_ci#define D3DCAPS3_DXVAHD 0x00000400 45bf215546Sopenharmony_ci#define D3DCAPS3_RESERVED 0x8000001F 46bf215546Sopenharmony_ci 47bf215546Sopenharmony_ci#define D3DPRESENT_INTERVAL_DEFAULT 0x00000000 48bf215546Sopenharmony_ci#define D3DPRESENT_INTERVAL_ONE 0x00000001 49bf215546Sopenharmony_ci#define D3DPRESENT_INTERVAL_TWO 0x00000002 50bf215546Sopenharmony_ci#define D3DPRESENT_INTERVAL_THREE 0x00000004 51bf215546Sopenharmony_ci#define D3DPRESENT_INTERVAL_FOUR 0x00000008 52bf215546Sopenharmony_ci#define D3DPRESENT_INTERVAL_IMMEDIATE 0x80000000 53bf215546Sopenharmony_ci 54bf215546Sopenharmony_ci#define D3DCURSORCAPS_COLOR 0x00000001 55bf215546Sopenharmony_ci#define D3DCURSORCAPS_LOWRES 0x00000002 56bf215546Sopenharmony_ci 57bf215546Sopenharmony_ci#define D3DDEVCAPS_EXECUTESYSTEMMEMORY 0x00000010 58bf215546Sopenharmony_ci#define D3DDEVCAPS_EXECUTEVIDEOMEMORY 0x00000020 59bf215546Sopenharmony_ci#define D3DDEVCAPS_TLVERTEXSYSTEMMEMORY 0x00000040 60bf215546Sopenharmony_ci#define D3DDEVCAPS_TLVERTEXVIDEOMEMORY 0x00000080 61bf215546Sopenharmony_ci#define D3DDEVCAPS_TEXTURESYSTEMMEMORY 0x00000100 62bf215546Sopenharmony_ci#define D3DDEVCAPS_TEXTUREVIDEOMEMORY 0x00000200 63bf215546Sopenharmony_ci#define D3DDEVCAPS_DRAWPRIMTLVERTEX 0x00000400 64bf215546Sopenharmony_ci#define D3DDEVCAPS_CANRENDERAFTERFLIP 0x00000800 65bf215546Sopenharmony_ci#define D3DDEVCAPS_TEXTURENONLOCALVIDMEM 0x00001000 66bf215546Sopenharmony_ci#define D3DDEVCAPS_DRAWPRIMITIVES2 0x00002000 67bf215546Sopenharmony_ci#define D3DDEVCAPS_SEPARATETEXTUREMEMORIES 0x00004000 68bf215546Sopenharmony_ci#define D3DDEVCAPS_DRAWPRIMITIVES2EX 0x00008000 69bf215546Sopenharmony_ci#define D3DDEVCAPS_HWTRANSFORMANDLIGHT 0x00010000 70bf215546Sopenharmony_ci#define D3DDEVCAPS_CANBLTSYSTONONLOCAL 0x00020000 71bf215546Sopenharmony_ci#define D3DDEVCAPS_HWRASTERIZATION 0x00080000 72bf215546Sopenharmony_ci#define D3DDEVCAPS_PUREDEVICE 0x00100000 73bf215546Sopenharmony_ci#define D3DDEVCAPS_QUINTICRTPATCHES 0x00200000 74bf215546Sopenharmony_ci#define D3DDEVCAPS_RTPATCHES 0x00400000 75bf215546Sopenharmony_ci#define D3DDEVCAPS_RTPATCHHANDLEZERO 0x00800000 76bf215546Sopenharmony_ci#define D3DDEVCAPS_NPATCHES 0x01000000 77bf215546Sopenharmony_ci 78bf215546Sopenharmony_ci#define D3DPMISCCAPS_MASKZ 0x00000002 79bf215546Sopenharmony_ci#define D3DPMISCCAPS_CULLNONE 0x00000010 80bf215546Sopenharmony_ci#define D3DPMISCCAPS_CULLCW 0x00000020 81bf215546Sopenharmony_ci#define D3DPMISCCAPS_CULLCCW 0x00000040 82bf215546Sopenharmony_ci#define D3DPMISCCAPS_COLORWRITEENABLE 0x00000080 83bf215546Sopenharmony_ci#define D3DPMISCCAPS_CLIPPLANESCALEDPOINTS 0x00000100 84bf215546Sopenharmony_ci#define D3DPMISCCAPS_CLIPTLVERTS 0x00000200 85bf215546Sopenharmony_ci#define D3DPMISCCAPS_TSSARGTEMP 0x00000400 86bf215546Sopenharmony_ci#define D3DPMISCCAPS_BLENDOP 0x00000800 87bf215546Sopenharmony_ci#define D3DPMISCCAPS_NULLREFERENCE 0x00001000 88bf215546Sopenharmony_ci#define D3DPMISCCAPS_INDEPENDENTWRITEMASKS 0x00004000 89bf215546Sopenharmony_ci#define D3DPMISCCAPS_PERSTAGECONSTANT 0x00008000 90bf215546Sopenharmony_ci#define D3DPMISCCAPS_FOGANDSPECULARALPHA 0x00010000 91bf215546Sopenharmony_ci#define D3DPMISCCAPS_SEPARATEALPHABLEND 0x00020000 92bf215546Sopenharmony_ci#define D3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS 0x00040000 93bf215546Sopenharmony_ci#define D3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING 0x00080000 94bf215546Sopenharmony_ci#define D3DPMISCCAPS_FOGVERTEXCLAMPED 0x00100000 95bf215546Sopenharmony_ci#define D3DPMISCCAPS_POSTBLENDSRGBCONVERT 0x00200000 96bf215546Sopenharmony_ci 97bf215546Sopenharmony_ci#define D3DPRASTERCAPS_DITHER 0x00000001 98bf215546Sopenharmony_ci#define D3DPRASTERCAPS_ZTEST 0x00000010 99bf215546Sopenharmony_ci#define D3DPRASTERCAPS_FOGVERTEX 0x00000080 100bf215546Sopenharmony_ci#define D3DPRASTERCAPS_FOGTABLE 0x00000100 101bf215546Sopenharmony_ci#define D3DPRASTERCAPS_MIPMAPLODBIAS 0x00002000 102bf215546Sopenharmony_ci#define D3DPRASTERCAPS_ZBUFFERLESSHSR 0x00008000 103bf215546Sopenharmony_ci#define D3DPRASTERCAPS_FOGRANGE 0x00010000 104bf215546Sopenharmony_ci#define D3DPRASTERCAPS_ANISOTROPY 0x00020000 105bf215546Sopenharmony_ci#define D3DPRASTERCAPS_WBUFFER 0x00040000 106bf215546Sopenharmony_ci#define D3DPRASTERCAPS_WFOG 0x00100000 107bf215546Sopenharmony_ci#define D3DPRASTERCAPS_ZFOG 0x00200000 108bf215546Sopenharmony_ci#define D3DPRASTERCAPS_COLORPERSPECTIVE 0x00400000 109bf215546Sopenharmony_ci#define D3DPRASTERCAPS_SCISSORTEST 0x01000000 110bf215546Sopenharmony_ci#define D3DPRASTERCAPS_SLOPESCALEDEPTHBIAS 0x02000000 111bf215546Sopenharmony_ci#define D3DPRASTERCAPS_DEPTHBIAS 0x04000000 112bf215546Sopenharmony_ci#define D3DPRASTERCAPS_MULTISAMPLE_TOGGLE 0x08000000 113bf215546Sopenharmony_ci 114bf215546Sopenharmony_ci#define D3DPCMPCAPS_NEVER 0x00000001 115bf215546Sopenharmony_ci#define D3DPCMPCAPS_LESS 0x00000002 116bf215546Sopenharmony_ci#define D3DPCMPCAPS_EQUAL 0x00000004 117bf215546Sopenharmony_ci#define D3DPCMPCAPS_LESSEQUAL 0x00000008 118bf215546Sopenharmony_ci#define D3DPCMPCAPS_GREATER 0x00000010 119bf215546Sopenharmony_ci#define D3DPCMPCAPS_NOTEQUAL 0x00000020 120bf215546Sopenharmony_ci#define D3DPCMPCAPS_GREATEREQUAL 0x00000040 121bf215546Sopenharmony_ci#define D3DPCMPCAPS_ALWAYS 0x00000080 122bf215546Sopenharmony_ci 123bf215546Sopenharmony_ci#define D3DPBLENDCAPS_ZERO 0x00000001 124bf215546Sopenharmony_ci#define D3DPBLENDCAPS_ONE 0x00000002 125bf215546Sopenharmony_ci#define D3DPBLENDCAPS_SRCCOLOR 0x00000004 126bf215546Sopenharmony_ci#define D3DPBLENDCAPS_INVSRCCOLOR 0x00000008 127bf215546Sopenharmony_ci#define D3DPBLENDCAPS_SRCALPHA 0x00000010 128bf215546Sopenharmony_ci#define D3DPBLENDCAPS_INVSRCALPHA 0x00000020 129bf215546Sopenharmony_ci#define D3DPBLENDCAPS_DESTALPHA 0x00000040 130bf215546Sopenharmony_ci#define D3DPBLENDCAPS_INVDESTALPHA 0x00000080 131bf215546Sopenharmony_ci#define D3DPBLENDCAPS_DESTCOLOR 0x00000100 132bf215546Sopenharmony_ci#define D3DPBLENDCAPS_INVDESTCOLOR 0x00000200 133bf215546Sopenharmony_ci#define D3DPBLENDCAPS_SRCALPHASAT 0x00000400 134bf215546Sopenharmony_ci#define D3DPBLENDCAPS_BOTHSRCALPHA 0x00000800 135bf215546Sopenharmony_ci#define D3DPBLENDCAPS_BOTHINVSRCALPHA 0x00001000 136bf215546Sopenharmony_ci#define D3DPBLENDCAPS_BLENDFACTOR 0x00002000 137bf215546Sopenharmony_ci#ifndef D3D_DISABLE_9EX 138bf215546Sopenharmony_ci# define D3DPBLENDCAPS_SRCCOLOR2 0x00004000 139bf215546Sopenharmony_ci# define D3DPBLENDCAPS_INVSRCCOLOR2 0x00008000 140bf215546Sopenharmony_ci#endif 141bf215546Sopenharmony_ci 142bf215546Sopenharmony_ci#define D3DPSHADECAPS_COLORGOURAUDRGB 0x00000008 143bf215546Sopenharmony_ci#define D3DPSHADECAPS_SPECULARGOURAUDRGB 0x00000200 144bf215546Sopenharmony_ci#define D3DPSHADECAPS_ALPHAGOURAUDBLEND 0x00004000 145bf215546Sopenharmony_ci#define D3DPSHADECAPS_FOGGOURAUD 0x00080000 146bf215546Sopenharmony_ci 147bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_PERSPECTIVE 0x00000001 148bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_POW2 0x00000002 149bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_ALPHA 0x00000004 150bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_SQUAREONLY 0x00000020 151bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE 0x00000040 152bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_ALPHAPALETTE 0x00000080 153bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_NONPOW2CONDITIONAL 0x00000100 154bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_PROJECTED 0x00000400 155bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_CUBEMAP 0x00000800 156bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_VOLUMEMAP 0x00002000 157bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_MIPMAP 0x00004000 158bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_MIPVOLUMEMAP 0x00008000 159bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_MIPCUBEMAP 0x00010000 160bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_CUBEMAP_POW2 0x00020000 161bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_VOLUMEMAP_POW2 0x00040000 162bf215546Sopenharmony_ci#define D3DPTEXTURECAPS_NOPROJECTEDBUMPENV 0x00200000 163bf215546Sopenharmony_ci 164bf215546Sopenharmony_ci#define D3DPTFILTERCAPS_MINFPOINT 0x00000100 165bf215546Sopenharmony_ci#define D3DPTFILTERCAPS_MINFLINEAR 0x00000200 166bf215546Sopenharmony_ci#define D3DPTFILTERCAPS_MINFANISOTROPIC 0x00000400 167bf215546Sopenharmony_ci#define D3DPTFILTERCAPS_MINFPYRAMIDALQUAD 0x00000800 168bf215546Sopenharmony_ci#define D3DPTFILTERCAPS_MINFGAUSSIANQUAD 0x00001000 169bf215546Sopenharmony_ci#define D3DPTFILTERCAPS_MIPFPOINT 0x00010000 170bf215546Sopenharmony_ci#define D3DPTFILTERCAPS_MIPFLINEAR 0x00020000 171bf215546Sopenharmony_ci#define D3DPTFILTERCAPS_MAGFPOINT 0x01000000 172bf215546Sopenharmony_ci#define D3DPTFILTERCAPS_MAGFLINEAR 0x02000000 173bf215546Sopenharmony_ci#define D3DPTFILTERCAPS_MAGFANISOTROPIC 0x04000000 174bf215546Sopenharmony_ci#define D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD 0x08000000 175bf215546Sopenharmony_ci#define D3DPTFILTERCAPS_MAGFGAUSSIANQUAD 0x10000000 176bf215546Sopenharmony_ci 177bf215546Sopenharmony_ci#define D3DPTADDRESSCAPS_WRAP 0x00000001 178bf215546Sopenharmony_ci#define D3DPTADDRESSCAPS_MIRROR 0x00000002 179bf215546Sopenharmony_ci#define D3DPTADDRESSCAPS_CLAMP 0x00000004 180bf215546Sopenharmony_ci#define D3DPTADDRESSCAPS_BORDER 0x00000008 181bf215546Sopenharmony_ci#define D3DPTADDRESSCAPS_INDEPENDENTUV 0x00000010 182bf215546Sopenharmony_ci#define D3DPTADDRESSCAPS_MIRRORONCE 0x00000020 183bf215546Sopenharmony_ci 184bf215546Sopenharmony_ci#define D3DLINECAPS_TEXTURE 0x00000001 185bf215546Sopenharmony_ci#define D3DLINECAPS_ZTEST 0x00000002 186bf215546Sopenharmony_ci#define D3DLINECAPS_BLEND 0x00000004 187bf215546Sopenharmony_ci#define D3DLINECAPS_ALPHACMP 0x00000008 188bf215546Sopenharmony_ci#define D3DLINECAPS_FOG 0x00000010 189bf215546Sopenharmony_ci#define D3DLINECAPS_ANTIALIAS 0x00000020 190bf215546Sopenharmony_ci 191bf215546Sopenharmony_ci#define D3DSTENCILCAPS_KEEP 0x00000001 192bf215546Sopenharmony_ci#define D3DSTENCILCAPS_ZERO 0x00000002 193bf215546Sopenharmony_ci#define D3DSTENCILCAPS_REPLACE 0x00000004 194bf215546Sopenharmony_ci#define D3DSTENCILCAPS_INCRSAT 0x00000008 195bf215546Sopenharmony_ci#define D3DSTENCILCAPS_DECRSAT 0x00000010 196bf215546Sopenharmony_ci#define D3DSTENCILCAPS_INVERT 0x00000020 197bf215546Sopenharmony_ci#define D3DSTENCILCAPS_INCR 0x00000040 198bf215546Sopenharmony_ci#define D3DSTENCILCAPS_DECR 0x00000080 199bf215546Sopenharmony_ci#define D3DSTENCILCAPS_TWOSIDED 0x00000100 200bf215546Sopenharmony_ci 201bf215546Sopenharmony_ci#define D3DFVFCAPS_TEXCOORDCOUNTMASK 0x0000FFFF 202bf215546Sopenharmony_ci#define D3DFVFCAPS_DONOTSTRIPELEMENTS 0x00080000 203bf215546Sopenharmony_ci#define D3DFVFCAPS_PSIZE 0x00100000 204bf215546Sopenharmony_ci 205bf215546Sopenharmony_ci#define D3DTEXOPCAPS_DISABLE 0x00000001 206bf215546Sopenharmony_ci#define D3DTEXOPCAPS_SELECTARG1 0x00000002 207bf215546Sopenharmony_ci#define D3DTEXOPCAPS_SELECTARG2 0x00000004 208bf215546Sopenharmony_ci#define D3DTEXOPCAPS_MODULATE 0x00000008 209bf215546Sopenharmony_ci#define D3DTEXOPCAPS_MODULATE2X 0x00000010 210bf215546Sopenharmony_ci#define D3DTEXOPCAPS_MODULATE4X 0x00000020 211bf215546Sopenharmony_ci#define D3DTEXOPCAPS_ADD 0x00000040 212bf215546Sopenharmony_ci#define D3DTEXOPCAPS_ADDSIGNED 0x00000080 213bf215546Sopenharmony_ci#define D3DTEXOPCAPS_ADDSIGNED2X 0x00000100 214bf215546Sopenharmony_ci#define D3DTEXOPCAPS_SUBTRACT 0x00000200 215bf215546Sopenharmony_ci#define D3DTEXOPCAPS_ADDSMOOTH 0x00000400 216bf215546Sopenharmony_ci#define D3DTEXOPCAPS_BLENDDIFFUSEALPHA 0x00000800 217bf215546Sopenharmony_ci#define D3DTEXOPCAPS_BLENDTEXTUREALPHA 0x00001000 218bf215546Sopenharmony_ci#define D3DTEXOPCAPS_BLENDFACTORALPHA 0x00002000 219bf215546Sopenharmony_ci#define D3DTEXOPCAPS_BLENDTEXTUREALPHAPM 0x00004000 220bf215546Sopenharmony_ci#define D3DTEXOPCAPS_BLENDCURRENTALPHA 0x00008000 221bf215546Sopenharmony_ci#define D3DTEXOPCAPS_PREMODULATE 0x00010000 222bf215546Sopenharmony_ci#define D3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR 0x00020000 223bf215546Sopenharmony_ci#define D3DTEXOPCAPS_MODULATECOLOR_ADDALPHA 0x00040000 224bf215546Sopenharmony_ci#define D3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR 0x00080000 225bf215546Sopenharmony_ci#define D3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA 0x00100000 226bf215546Sopenharmony_ci#define D3DTEXOPCAPS_BUMPENVMAP 0x00200000 227bf215546Sopenharmony_ci#define D3DTEXOPCAPS_BUMPENVMAPLUMINANCE 0x00400000 228bf215546Sopenharmony_ci#define D3DTEXOPCAPS_DOTPRODUCT3 0x00800000 229bf215546Sopenharmony_ci#define D3DTEXOPCAPS_MULTIPLYADD 0x01000000 230bf215546Sopenharmony_ci#define D3DTEXOPCAPS_LERP 0x02000000 231bf215546Sopenharmony_ci 232bf215546Sopenharmony_ci#define D3DVTXPCAPS_TEXGEN 0x00000001 233bf215546Sopenharmony_ci#define D3DVTXPCAPS_MATERIALSOURCE7 0x00000002 234bf215546Sopenharmony_ci#define D3DVTXPCAPS_DIRECTIONALLIGHTS 0x00000008 235bf215546Sopenharmony_ci#define D3DVTXPCAPS_POSITIONALLIGHTS 0x00000010 236bf215546Sopenharmony_ci#define D3DVTXPCAPS_LOCALVIEWER 0x00000020 237bf215546Sopenharmony_ci#define D3DVTXPCAPS_TWEENING 0x00000040 238bf215546Sopenharmony_ci#define D3DVTXPCAPS_TEXGEN_SPHEREMAP 0x00000100 239bf215546Sopenharmony_ci#define D3DVTXPCAPS_NO_TEXGEN_NONLOCALVIEWER 0x00000200 240bf215546Sopenharmony_ci 241bf215546Sopenharmony_ci#define D3DDEVCAPS2_STREAMOFFSET 0x00000001 242bf215546Sopenharmony_ci#define D3DDEVCAPS2_DMAPNPATCH 0x00000002 243bf215546Sopenharmony_ci#define D3DDEVCAPS2_ADAPTIVETESSRTPATCH 0x00000004 244bf215546Sopenharmony_ci#define D3DDEVCAPS2_ADAPTIVETESSNPATCH 0x00000008 245bf215546Sopenharmony_ci#define D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES 0x00000010 246bf215546Sopenharmony_ci#define D3DDEVCAPS2_PRESAMPLEDDMAPNPATCH 0x00000020 247bf215546Sopenharmony_ci#define D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET 0x00000040 248bf215546Sopenharmony_ci 249bf215546Sopenharmony_ci#define D3DDTCAPS_UBYTE4 0x00000001 250bf215546Sopenharmony_ci#define D3DDTCAPS_UBYTE4N 0x00000002 251bf215546Sopenharmony_ci#define D3DDTCAPS_SHORT2N 0x00000004 252bf215546Sopenharmony_ci#define D3DDTCAPS_SHORT4N 0x00000008 253bf215546Sopenharmony_ci#define D3DDTCAPS_USHORT2N 0x00000010 254bf215546Sopenharmony_ci#define D3DDTCAPS_USHORT4N 0x00000020 255bf215546Sopenharmony_ci#define D3DDTCAPS_UDEC3 0x00000040 256bf215546Sopenharmony_ci#define D3DDTCAPS_DEC3N 0x00000080 257bf215546Sopenharmony_ci#define D3DDTCAPS_FLOAT16_2 0x00000100 258bf215546Sopenharmony_ci#define D3DDTCAPS_FLOAT16_4 0x00000200 259bf215546Sopenharmony_ci 260bf215546Sopenharmony_ci 261bf215546Sopenharmony_ci#define D3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH 24 262bf215546Sopenharmony_ci#define D3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH 0 263bf215546Sopenharmony_ci#define D3DVS20_MAX_NUMTEMPS 32 264bf215546Sopenharmony_ci#define D3DVS20_MIN_NUMTEMPS 12 265bf215546Sopenharmony_ci#define D3DVS20_MAX_STATICFLOWCONTROLDEPTH 4 266bf215546Sopenharmony_ci#define D3DVS20_MIN_STATICFLOWCONTROLDEPTH 1 267bf215546Sopenharmony_ci 268bf215546Sopenharmony_ci#define D3DVS20CAPS_PREDICATION (1 << 0) 269bf215546Sopenharmony_ci 270bf215546Sopenharmony_ci#define D3DPS20CAPS_ARBITRARYSWIZZLE (1 << 0) 271bf215546Sopenharmony_ci#define D3DPS20CAPS_GRADIENTINSTRUCTIONS (1 << 1) 272bf215546Sopenharmony_ci#define D3DPS20CAPS_PREDICATION (1 << 2) 273bf215546Sopenharmony_ci#define D3DPS20CAPS_NODEPENDENTREADLIMIT (1 << 3) 274bf215546Sopenharmony_ci#define D3DPS20CAPS_NOTEXINSTRUCTIONLIMIT (1 << 4) 275bf215546Sopenharmony_ci 276bf215546Sopenharmony_ci#define D3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH 24 277bf215546Sopenharmony_ci#define D3DPS20_MIN_DYNAMICFLOWCONTROLDEPTH 0 278bf215546Sopenharmony_ci#define D3DPS20_MAX_NUMTEMPS 32 279bf215546Sopenharmony_ci#define D3DPS20_MIN_NUMTEMPS 12 280bf215546Sopenharmony_ci#define D3DPS20_MAX_STATICFLOWCONTROLDEPTH 4 281bf215546Sopenharmony_ci#define D3DPS20_MIN_STATICFLOWCONTROLDEPTH 0 282bf215546Sopenharmony_ci#define D3DPS20_MAX_NUMINSTRUCTIONSLOTS 512 283bf215546Sopenharmony_ci#define D3DPS20_MIN_NUMINSTRUCTIONSLOTS 96 284bf215546Sopenharmony_ci 285bf215546Sopenharmony_ci#define D3DMIN30SHADERINSTRUCTIONS 512 286bf215546Sopenharmony_ci#define D3DMAX30SHADERINSTRUCTIONS 32768 287bf215546Sopenharmony_ci 288bf215546Sopenharmony_ci/* Structs */ 289bf215546Sopenharmony_citypedef struct _D3DVSHADERCAPS2_0 { 290bf215546Sopenharmony_ci DWORD Caps; 291bf215546Sopenharmony_ci INT DynamicFlowControlDepth; 292bf215546Sopenharmony_ci INT NumTemps; 293bf215546Sopenharmony_ci INT StaticFlowControlDepth; 294bf215546Sopenharmony_ci} D3DVSHADERCAPS2_0, *PD3DVSHADERCAPS2_0, *LPD3DVSHADERCAPS2_0; 295bf215546Sopenharmony_ci 296bf215546Sopenharmony_citypedef struct _D3DPSHADERCAPS2_0 { 297bf215546Sopenharmony_ci DWORD Caps; 298bf215546Sopenharmony_ci INT DynamicFlowControlDepth; 299bf215546Sopenharmony_ci INT NumTemps; 300bf215546Sopenharmony_ci INT StaticFlowControlDepth; 301bf215546Sopenharmony_ci INT NumInstructionSlots; 302bf215546Sopenharmony_ci} D3DPSHADERCAPS2_0, *PD3DPSHADERCAPS2_0, *LPD3DPSHADERCAPS2_0; 303bf215546Sopenharmony_ci 304bf215546Sopenharmony_citypedef struct _D3DCAPS9 { 305bf215546Sopenharmony_ci D3DDEVTYPE DeviceType; 306bf215546Sopenharmony_ci UINT AdapterOrdinal; 307bf215546Sopenharmony_ci DWORD Caps; 308bf215546Sopenharmony_ci DWORD Caps2; 309bf215546Sopenharmony_ci DWORD Caps3; 310bf215546Sopenharmony_ci DWORD PresentationIntervals; 311bf215546Sopenharmony_ci DWORD CursorCaps; 312bf215546Sopenharmony_ci DWORD DevCaps; 313bf215546Sopenharmony_ci DWORD PrimitiveMiscCaps; 314bf215546Sopenharmony_ci DWORD RasterCaps; 315bf215546Sopenharmony_ci DWORD ZCmpCaps; 316bf215546Sopenharmony_ci DWORD SrcBlendCaps; 317bf215546Sopenharmony_ci DWORD DestBlendCaps; 318bf215546Sopenharmony_ci DWORD AlphaCmpCaps; 319bf215546Sopenharmony_ci DWORD ShadeCaps; 320bf215546Sopenharmony_ci DWORD TextureCaps; 321bf215546Sopenharmony_ci DWORD TextureFilterCaps; 322bf215546Sopenharmony_ci DWORD CubeTextureFilterCaps; 323bf215546Sopenharmony_ci DWORD VolumeTextureFilterCaps; 324bf215546Sopenharmony_ci DWORD TextureAddressCaps; 325bf215546Sopenharmony_ci DWORD VolumeTextureAddressCaps; 326bf215546Sopenharmony_ci DWORD LineCaps; 327bf215546Sopenharmony_ci DWORD MaxTextureWidth; 328bf215546Sopenharmony_ci DWORD MaxTextureHeight; 329bf215546Sopenharmony_ci DWORD MaxVolumeExtent; 330bf215546Sopenharmony_ci DWORD MaxTextureRepeat; 331bf215546Sopenharmony_ci DWORD MaxTextureAspectRatio; 332bf215546Sopenharmony_ci DWORD MaxAnisotropy; 333bf215546Sopenharmony_ci float MaxVertexW; 334bf215546Sopenharmony_ci float GuardBandLeft; 335bf215546Sopenharmony_ci float GuardBandTop; 336bf215546Sopenharmony_ci float GuardBandRight; 337bf215546Sopenharmony_ci float GuardBandBottom; 338bf215546Sopenharmony_ci float ExtentsAdjust; 339bf215546Sopenharmony_ci DWORD StencilCaps; 340bf215546Sopenharmony_ci DWORD FVFCaps; 341bf215546Sopenharmony_ci DWORD TextureOpCaps; 342bf215546Sopenharmony_ci DWORD MaxTextureBlendStages; 343bf215546Sopenharmony_ci DWORD MaxSimultaneousTextures; 344bf215546Sopenharmony_ci DWORD VertexProcessingCaps; 345bf215546Sopenharmony_ci DWORD MaxActiveLights; 346bf215546Sopenharmony_ci DWORD MaxUserClipPlanes; 347bf215546Sopenharmony_ci DWORD MaxVertexBlendMatrices; 348bf215546Sopenharmony_ci DWORD MaxVertexBlendMatrixIndex; 349bf215546Sopenharmony_ci float MaxPointSize; 350bf215546Sopenharmony_ci DWORD MaxPrimitiveCount; 351bf215546Sopenharmony_ci DWORD MaxVertexIndex; 352bf215546Sopenharmony_ci DWORD MaxStreams; 353bf215546Sopenharmony_ci DWORD MaxStreamStride; 354bf215546Sopenharmony_ci DWORD VertexShaderVersion; 355bf215546Sopenharmony_ci DWORD MaxVertexShaderConst; 356bf215546Sopenharmony_ci DWORD PixelShaderVersion; 357bf215546Sopenharmony_ci float PixelShader1xMaxValue; 358bf215546Sopenharmony_ci DWORD DevCaps2; 359bf215546Sopenharmony_ci float MaxNpatchTessellationLevel; 360bf215546Sopenharmony_ci DWORD Reserved5; 361bf215546Sopenharmony_ci UINT MasterAdapterOrdinal; 362bf215546Sopenharmony_ci UINT AdapterOrdinalInGroup; 363bf215546Sopenharmony_ci UINT NumberOfAdaptersInGroup; 364bf215546Sopenharmony_ci DWORD DeclTypes; 365bf215546Sopenharmony_ci DWORD NumSimultaneousRTs; 366bf215546Sopenharmony_ci DWORD StretchRectFilterCaps; 367bf215546Sopenharmony_ci D3DVSHADERCAPS2_0 VS20Caps; 368bf215546Sopenharmony_ci D3DPSHADERCAPS2_0 PS20Caps; 369bf215546Sopenharmony_ci DWORD VertexTextureFilterCaps; 370bf215546Sopenharmony_ci DWORD MaxVShaderInstructionsExecuted; 371bf215546Sopenharmony_ci DWORD MaxPShaderInstructionsExecuted; 372bf215546Sopenharmony_ci DWORD MaxVertexShader30InstructionSlots; 373bf215546Sopenharmony_ci DWORD MaxPixelShader30InstructionSlots; 374bf215546Sopenharmony_ci} D3DCAPS9, *PD3DCAPS9, *LPD3DCAPS9; 375bf215546Sopenharmony_ci 376bf215546Sopenharmony_citypedef struct _D3DCONTENTPROTECTIONCAPS { 377bf215546Sopenharmony_ci DWORD Caps; 378bf215546Sopenharmony_ci GUID KeyExchangeType; 379bf215546Sopenharmony_ci UINT BufferAlignmentStart; 380bf215546Sopenharmony_ci UINT BlockAlignmentSize; 381bf215546Sopenharmony_ci ULONGLONG ProtectedMemorySize; 382bf215546Sopenharmony_ci} D3DCONTENTPROTECTIONCAPS, *PD3DCONTENTPROTECTIONCAPS, *LPD3DCONTENTPROTECTIONCAPS; 383bf215546Sopenharmony_ci 384bf215546Sopenharmony_citypedef struct _D3DOVERLAYCAPS { 385bf215546Sopenharmony_ci UINT Caps; 386bf215546Sopenharmony_ci UINT MaxOverlayDisplayWidth; 387bf215546Sopenharmony_ci UINT MaxOverlayDisplayHeight; 388bf215546Sopenharmony_ci} D3DOVERLAYCAPS, *PD3DOVERLAYCAPS, *LPD3DOVERLAYCAPS; 389bf215546Sopenharmony_ci 390bf215546Sopenharmony_ci#endif /* _D3D9CAPS_H_ */ 391