[1] | 1 | 'd3d9caps.sbp
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | #ifndef _INC_D3D9CAPS
|
---|
| 5 | #define _INC_D3D9CAPS
|
---|
| 6 |
|
---|
| 7 |
|
---|
| 8 | Type D3DVSHADERCAPS2_0
|
---|
| 9 | Caps As DWord
|
---|
| 10 | DynamicFlowControlDepth As Long
|
---|
| 11 | NumTemps As Long
|
---|
| 12 | StaticFlowControlDepth As Long
|
---|
| 13 | End Type
|
---|
| 14 |
|
---|
| 15 | Const D3DVS20CAPS_PREDICATION = 1<<0
|
---|
| 16 |
|
---|
| 17 | Const D3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH = 24
|
---|
| 18 | Const D3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH = 0
|
---|
| 19 | Const D3DVS20_MAX_NUMTEMPS = 32
|
---|
| 20 | Const D3DVS20_MIN_NUMTEMPS = 12
|
---|
| 21 | Const D3DVS20_MAX_STATICFLOWCONTROLDEPTH = 4
|
---|
| 22 | Const D3DVS20_MIN_STATICFLOWCONTROLDEPTH = 1
|
---|
| 23 |
|
---|
| 24 | Type D3DPSHADERCAPS2_0
|
---|
| 25 | Caps As DWord
|
---|
| 26 | DynamicFlowControlDepth As Long
|
---|
| 27 | NumTemps As Long
|
---|
| 28 | StaticFlowControlDepth As Long
|
---|
| 29 | NumInstructionSlots As Long
|
---|
| 30 | End Type
|
---|
| 31 |
|
---|
| 32 | Const D3DPS20CAPS_ARBITRARYSWIZZLE = 1<<0
|
---|
| 33 | Const D3DPS20CAPS_GRADIENTINSTRUCTIONS = 1<<1
|
---|
| 34 | Const D3DPS20CAPS_PREDICATION = 1<<2
|
---|
| 35 | Const D3DPS20CAPS_NODEPENDENTREADLIMIT = 1<<3
|
---|
| 36 | Const D3DPS20CAPS_NOTEXINSTRUCTIONLIMIT = 1<<4
|
---|
| 37 |
|
---|
| 38 | Const D3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH = 24
|
---|
| 39 | Const D3DPS20_MIN_DYNAMICFLOWCONTROLDEPTH = 0
|
---|
| 40 | Const D3DPS20_MAX_NUMTEMPS = 32
|
---|
| 41 | Const D3DPS20_MIN_NUMTEMPS = 12
|
---|
| 42 | Const D3DPS20_MAX_STATICFLOWCONTROLDEPTH = 4
|
---|
| 43 | Const D3DPS20_MIN_STATICFLOWCONTROLDEPTH = 0
|
---|
| 44 | Const D3DPS20_MAX_NUMINSTRUCTIONSLOTS = 512
|
---|
| 45 | Const D3DPS20_MIN_NUMINSTRUCTIONSLOTS = 96
|
---|
| 46 |
|
---|
| 47 | Const D3DMIN30SHADERINSTRUCTIONS = 512
|
---|
| 48 | Const D3DMAX30SHADERINSTRUCTIONS = 32768
|
---|
| 49 |
|
---|
| 50 | Type D3DCAPS9
|
---|
| 51 | 'Device Info
|
---|
| 52 | DeviceType As DWord
|
---|
| 53 | AdapterOrdinal As DWord
|
---|
| 54 |
|
---|
| 55 | 'Caps from DX7 Draw
|
---|
| 56 | Caps As DWord
|
---|
| 57 | Caps2 As DWord
|
---|
| 58 | Caps3 As DWord
|
---|
| 59 | PresentationIntervals As DWord
|
---|
| 60 |
|
---|
| 61 | 'Cursor Caps
|
---|
| 62 | CursorCaps As DWord
|
---|
| 63 |
|
---|
| 64 | '3D Device Caps
|
---|
| 65 | DevCaps As DWord
|
---|
| 66 |
|
---|
| 67 | PrimitiveMiscCaps As DWord
|
---|
| 68 | RasterCaps As DWord
|
---|
| 69 | ZCmpCaps As DWord
|
---|
| 70 | SrcBlendCaps As DWord
|
---|
| 71 | DestBlendCaps As DWord
|
---|
| 72 | AlphaCmpCaps As DWord
|
---|
| 73 | ShadeCaps As DWord
|
---|
| 74 | TextureCaps As DWord
|
---|
| 75 | TextureFilterCaps As DWord
|
---|
| 76 | CubeTextureFilterCaps As DWord
|
---|
| 77 | VolumeTextureFilterCaps As DWord
|
---|
| 78 | TextureAddressCaps As DWord
|
---|
| 79 | VolumeTextureAddressCaps As DWord
|
---|
| 80 |
|
---|
| 81 | LineCaps As DWord
|
---|
| 82 |
|
---|
| 83 | MaxTextureWidth As DWord
|
---|
| 84 | MaxTextureHeight As DWord
|
---|
| 85 | MaxVolumeExtent As DWord
|
---|
| 86 |
|
---|
| 87 | MaxTextureRepeat As DWord
|
---|
| 88 | MaxTextureAspectRatio As DWord
|
---|
| 89 | MaxAnisotropy As DWord
|
---|
| 90 | MaxVertexW As Single
|
---|
| 91 |
|
---|
| 92 | GuardBandLeft As Single
|
---|
| 93 | GuardBandTop As Single
|
---|
| 94 | GuardBandRight As Single
|
---|
| 95 | GuardBandBottom As Single
|
---|
| 96 |
|
---|
| 97 | ExtentsAdjust As Single
|
---|
| 98 | StencilCaps As DWord
|
---|
| 99 |
|
---|
| 100 | FVFCaps As DWord
|
---|
| 101 | TextureOpCaps As DWord
|
---|
| 102 | MaxTextureBlendStages As DWord
|
---|
| 103 | MaxSimultaneousTextures As DWord
|
---|
| 104 |
|
---|
| 105 | VertexProcessingCaps As DWord
|
---|
| 106 | MaxActiveLights As DWord
|
---|
| 107 | MaxUserClipPlanes As DWord
|
---|
| 108 | MaxVertexBlendMatrices As DWord
|
---|
| 109 | MaxVertexBlendMatrixIndex As DWord
|
---|
| 110 |
|
---|
| 111 | MaxPointSize As Single
|
---|
| 112 |
|
---|
| 113 | MaxPrimitiveCount As DWord
|
---|
| 114 | MaxVertexIndex As DWord
|
---|
| 115 | MaxStreams As DWord
|
---|
| 116 | MaxStreamStride As DWord
|
---|
| 117 |
|
---|
| 118 | VertexShaderVersion As DWord
|
---|
| 119 | MaxVertexShaderConst As DWord
|
---|
| 120 |
|
---|
| 121 | PixelShaderVersion As DWord
|
---|
| 122 | PixelShader1xMaxValue As Single
|
---|
| 123 |
|
---|
| 124 | 'Here are the DX9 specific ones
|
---|
| 125 | DevCaps2 As DWord
|
---|
| 126 |
|
---|
| 127 | MaxNpatchTessellationLevel As Single
|
---|
| 128 | Reserved5 As DWord
|
---|
| 129 |
|
---|
| 130 | MasterAdapterOrdinal As DWord
|
---|
| 131 | AdapterOrdinalInGroup As DWord
|
---|
| 132 | NumberOfAdaptersInGroup As DWord
|
---|
| 133 | DeclTypes As DWord
|
---|
| 134 | NumSimultaneousRTs As DWord
|
---|
| 135 | StretchRectFilterCaps As DWord
|
---|
| 136 | VS20Caps As D3DVSHADERCAPS2_0
|
---|
| 137 | PS20Caps As D3DPSHADERCAPS2_0
|
---|
| 138 | VertexTextureFilterCaps As DWord
|
---|
| 139 | MaxVShaderInstructionsExecuted As DWord
|
---|
| 140 | MaxPShaderInstructionsExecuted As DWord
|
---|
| 141 | MaxVertexShader30InstructionSlots As DWord
|
---|
| 142 | MaxPixelShader30InstructionSlots As DWord
|
---|
| 143 | End Type
|
---|
| 144 |
|
---|
| 145 |
|
---|
| 146 | ' Caps
|
---|
| 147 | Const D3DCAPS_READ_SCANLINE = &H00020000
|
---|
| 148 |
|
---|
| 149 | ' Caps2
|
---|
| 150 | Const D3DCAPS2_FULLSCREENGAMMA = &H00020000
|
---|
| 151 | Const D3DCAPS2_CANCALIBRATEGAMMA = &H00100000
|
---|
| 152 | Const D3DCAPS2_RESERVED = &H02000000
|
---|
| 153 | Const D3DCAPS2_CANMANAGERESOURCE = &H10000000
|
---|
| 154 | Const D3DCAPS2_DYNAMICTEXTURES = &H20000000
|
---|
| 155 | Const D3DCAPS2_CANAUTOGENMIPMAP = &H40000000
|
---|
| 156 |
|
---|
| 157 | ' Caps3
|
---|
| 158 | Const D3DCAPS3_RESERVED = &H8000001F
|
---|
| 159 |
|
---|
| 160 | ' Indicates that the device can respect the ALPHABLENDENABLE render state
|
---|
| 161 | ' when fullscreen while using the FLIP or DISCARD swap effect.
|
---|
| 162 | ' COPY and COPYVSYNC swap effects work whether or not this flag is set.
|
---|
| 163 | Const D3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD = &H00000020
|
---|
| 164 |
|
---|
| 165 | ' Indicates that the device can perform a gamma correction from
|
---|
| 166 | ' a windowed back buffer containing linear content to the sRGB desktop.
|
---|
| 167 | Const D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION = &H00000080
|
---|
| 168 |
|
---|
| 169 | Const D3DCAPS3_COPY_TO_VIDMEM = &H00000100 'Device can acclerate copies from sysmem to local vidmem
|
---|
| 170 | Const D3DCAPS3_COPY_TO_SYSTEMMEM = &H00000200 'Device can acclerate copies from local vidmem to sysmem
|
---|
| 171 |
|
---|
| 172 | ' PresentationIntervals
|
---|
| 173 | Const D3DPRESENT_INTERVAL_DEFAULT = &H00000000
|
---|
| 174 | Const D3DPRESENT_INTERVAL_ONE = &H00000001
|
---|
| 175 | Const D3DPRESENT_INTERVAL_TWO = &H00000002
|
---|
| 176 | Const D3DPRESENT_INTERVAL_THREE = &H00000004
|
---|
| 177 | Const D3DPRESENT_INTERVAL_FOUR = &H00000008
|
---|
| 178 | Const D3DPRESENT_INTERVAL_IMMEDIATE = &H80000000
|
---|
| 179 |
|
---|
| 180 | ' CursorCaps
|
---|
| 181 | Const D3DCURSORCAPS_COLOR = &H00000001 'Driver supports HW color cursor in at least hi-res modes(height >=400)
|
---|
| 182 | Const D3DCURSORCAPS_LOWRES = &H00000002 'Driver supports HW cursor also in low-res modes(height < 400)
|
---|
| 183 |
|
---|
| 184 | ' DevCaps
|
---|
| 185 | Const D3DDEVCAPS_EXECUTESYSTEMMEMORY = &H00000010 'Device can use execute buffers from system memory
|
---|
| 186 | Const D3DDEVCAPS_EXECUTEVIDEOMEMORY = &H00000020 'Device can use execute buffers from video memory
|
---|
| 187 | Const D3DDEVCAPS_TLVERTEXSYSTEMMEMORY = &H00000040 'Device can use TL buffers from system memory
|
---|
| 188 | Const D3DDEVCAPS_TLVERTEXVIDEOMEMORY = &H00000080 'Device can use TL buffers from video memory
|
---|
| 189 | Const D3DDEVCAPS_TEXTURESYSTEMMEMORY = &H00000100 'Device can texture from system memory
|
---|
| 190 | Const D3DDEVCAPS_TEXTUREVIDEOMEMORY = &H00000200 'Device can texture from device memory
|
---|
| 191 | Const D3DDEVCAPS_DRAWPRIMTLVERTEX = &H00000400 'Device can draw TLVERTEX primitives
|
---|
| 192 | Const D3DDEVCAPS_CANRENDERAFTERFLIP = &H00000800 'Device can render without waiting for flip to complete
|
---|
| 193 | Const D3DDEVCAPS_TEXTURENONLOCALVIDMEM = &H00001000 'Device can texture from nonlocal video memory
|
---|
| 194 | Const D3DDEVCAPS_DRAWPRIMITIVES2 = &H00002000 'Device can support DrawPrimitives2
|
---|
| 195 | Const D3DDEVCAPS_SEPARATETEXTUREMEMORIES = &H00004000 'Device is texturing from separate memory pools
|
---|
| 196 | Const D3DDEVCAPS_DRAWPRIMITIVES2EX = &H00008000 'Device can support Extended DrawPrimitives2 i.e. DX7 compliant driver
|
---|
| 197 | Const D3DDEVCAPS_HWTRANSFORMANDLIGHT = &H00010000 'Device can support transformation and lighting in hardware and DRAWPRIMITIVES2EX must be also
|
---|
| 198 | Const D3DDEVCAPS_CANBLTSYSTONONLOCAL = &H00020000 'Device supports a Tex Blt from system memory to non-local vidmem
|
---|
| 199 | Const D3DDEVCAPS_HWRASTERIZATION = &H00080000 'Device has HW acceleration for rasterization
|
---|
| 200 | Const D3DDEVCAPS_PUREDEVICE = &H00100000 'Device supports D3DCREATE_PUREDEVICE
|
---|
| 201 | Const D3DDEVCAPS_QUINTICRTPATCHES = &H00200000 'Device supports quintic Beziers and BSplines
|
---|
| 202 | Const D3DDEVCAPS_RTPATCHES = &H00400000 'Device supports Rect and Tri patches
|
---|
| 203 | Const D3DDEVCAPS_RTPATCHHANDLEZERO = &H00800000 'Indicates that RT Patches may be drawn efficiently using handle 0
|
---|
| 204 | Const D3DDEVCAPS_NPATCHES = &H01000000 'Device supports N-Patches
|
---|
| 205 |
|
---|
| 206 | ' PrimitiveMiscCaps
|
---|
| 207 | Const D3DPMISCCAPS_MASKZ = &H00000002
|
---|
| 208 | Const D3DPMISCCAPS_CULLNONE = &H00000010
|
---|
| 209 | Const D3DPMISCCAPS_CULLCW = &H00000020
|
---|
| 210 | Const D3DPMISCCAPS_CULLCCW = &H00000040
|
---|
| 211 | Const D3DPMISCCAPS_COLORWRITEENABLE = &H00000080
|
---|
| 212 | Const D3DPMISCCAPS_CLIPPLANESCALEDPOINTS = &H00000100 'Device correctly clips scaled points to clip planes
|
---|
| 213 | Const D3DPMISCCAPS_CLIPTLVERTS = &H00000200 'device will clip post-transformed vertex primitives
|
---|
| 214 | Const D3DPMISCCAPS_TSSARGTEMP = &H00000400 'device supports D3DTA_TEMP for temporary register
|
---|
| 215 | Const D3DPMISCCAPS_BLENDOP = &H00000800 'device supports D3DRS_BLENDOP
|
---|
| 216 | Const D3DPMISCCAPS_NULLREFERENCE = &H00001000 'Reference Device that doesnt render
|
---|
| 217 | Const D3DPMISCCAPS_INDEPENDENTWRITEMASKS = &H00004000 'Device supports independent write masks for MET or MRT
|
---|
| 218 | Const D3DPMISCCAPS_PERSTAGECONSTANT = &H00008000 'Device supports per-stage constants
|
---|
| 219 | Const D3DPMISCCAPS_FOGANDSPECULARALPHA = &H00010000 'Device supports separate fog and specular alpha (many devices use the specular alpha channel to store fog factor)
|
---|
| 220 | Const D3DPMISCCAPS_SEPARATEALPHABLEND = &H00020000 'Device supports separate blend settings for the alpha channel
|
---|
| 221 | Const D3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS = &H00040000 'Device supports different bit depths for MRT
|
---|
| 222 | Const D3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING = &H00080000 'Device supports post-pixel shader operations for MRT
|
---|
| 223 | Const D3DPMISCCAPS_FOGVERTEXCLAMPED = &H00100000 'Device clamps fog blend factor per vertex
|
---|
| 224 |
|
---|
| 225 | ' LineCaps
|
---|
| 226 | Const D3DLINECAPS_TEXTURE = &H00000001
|
---|
| 227 | Const D3DLINECAPS_ZTEST = &H00000002
|
---|
| 228 | Const D3DLINECAPS_BLEND = &H00000004
|
---|
| 229 | Const D3DLINECAPS_ALPHACMP = &H00000008
|
---|
| 230 | Const D3DLINECAPS_FOG = &H00000010
|
---|
| 231 | Const D3DLINECAPS_ANTIALIAS = &H00000020
|
---|
| 232 |
|
---|
| 233 | ' RasterCaps
|
---|
| 234 | Const D3DPRASTERCAPS_DITHER = &H00000001
|
---|
| 235 | Const D3DPRASTERCAPS_ZTEST = &H00000010
|
---|
| 236 | Const D3DPRASTERCAPS_FOGVERTEX = &H00000080
|
---|
| 237 | Const D3DPRASTERCAPS_FOGTABLE = &H00000100
|
---|
| 238 | Const D3DPRASTERCAPS_MIPMAPLODBIAS = &H00002000
|
---|
| 239 | Const D3DPRASTERCAPS_ZBUFFERLESSHSR = &H00008000
|
---|
| 240 | Const D3DPRASTERCAPS_FOGRANGE = &H00010000
|
---|
| 241 | Const D3DPRASTERCAPS_ANISOTROPY = &H00020000
|
---|
| 242 | Const D3DPRASTERCAPS_WBUFFER = &H00040000
|
---|
| 243 | Const D3DPRASTERCAPS_WFOG = &H00100000
|
---|
| 244 | Const D3DPRASTERCAPS_ZFOG = &H00200000
|
---|
| 245 | Const D3DPRASTERCAPS_COLORPERSPECTIVE = &H00400000 'Device iterates colors perspective correct
|
---|
| 246 | Const D3DPRASTERCAPS_SCISSORTEST = &H01000000
|
---|
| 247 | Const D3DPRASTERCAPS_SLOPESCALEDEPTHBIAS = &H02000000
|
---|
| 248 | Const D3DPRASTERCAPS_DEPTHBIAS = &H04000000
|
---|
| 249 | Const D3DPRASTERCAPS_MULTISAMPLE_TOGGLE = &H08000000
|
---|
| 250 |
|
---|
| 251 | ' ZCmpCaps, AlphaCmpCaps
|
---|
| 252 | Const D3DPCMPCAPS_NEVER = &H00000001
|
---|
| 253 | Const D3DPCMPCAPS_LESS = &H00000002
|
---|
| 254 | Const D3DPCMPCAPS_EQUAL = &H00000004
|
---|
| 255 | Const D3DPCMPCAPS_LESSEQUAL = &H00000008
|
---|
| 256 | Const D3DPCMPCAPS_GREATER = &H00000010
|
---|
| 257 | Const D3DPCMPCAPS_NOTEQUAL = &H00000020
|
---|
| 258 | Const D3DPCMPCAPS_GREATEREQUAL = &H00000040
|
---|
| 259 | Const D3DPCMPCAPS_ALWAYS = &H00000080
|
---|
| 260 |
|
---|
| 261 | ' SourceBlendCaps, DestBlendCaps
|
---|
| 262 | Const D3DPBLENDCAPS_ZERO = &H00000001
|
---|
| 263 | Const D3DPBLENDCAPS_ONE = &H00000002
|
---|
| 264 | Const D3DPBLENDCAPS_SRCCOLOR = &H00000004
|
---|
| 265 | Const D3DPBLENDCAPS_INVSRCCOLOR = &H00000008
|
---|
| 266 | Const D3DPBLENDCAPS_SRCALPHA = &H00000010
|
---|
| 267 | Const D3DPBLENDCAPS_INVSRCALPHA = &H00000020
|
---|
| 268 | Const D3DPBLENDCAPS_DESTALPHA = &H00000040
|
---|
| 269 | Const D3DPBLENDCAPS_INVDESTALPHA = &H00000080
|
---|
| 270 | Const D3DPBLENDCAPS_DESTCOLOR = &H00000100
|
---|
| 271 | Const D3DPBLENDCAPS_INVDESTCOLOR = &H00000200
|
---|
| 272 | Const D3DPBLENDCAPS_SRCALPHASAT = &H00000400
|
---|
| 273 | Const D3DPBLENDCAPS_BOTHSRCALPHA = &H00000800
|
---|
| 274 | Const D3DPBLENDCAPS_BOTHINVSRCALPHA = &H00001000
|
---|
| 275 | Const D3DPBLENDCAPS_BLENDFACTOR = &H00002000 'Supports both D3DBLEND_BLENDFACTOR and D3DBLEND_INVBLENDFACTOR
|
---|
| 276 |
|
---|
| 277 | ' ShadeCaps
|
---|
| 278 | Const D3DPSHADECAPS_COLORGOURAUDRGB = &H00000008
|
---|
| 279 | Const D3DPSHADECAPS_SPECULARGOURAUDRGB = &H00000200
|
---|
| 280 | Const D3DPSHADECAPS_ALPHAGOURAUDBLEND = &H00004000
|
---|
| 281 | Const D3DPSHADECAPS_FOGGOURAUD = &H00080000
|
---|
| 282 |
|
---|
| 283 | ' TextureCaps
|
---|
| 284 | Const D3DPTEXTURECAPS_PERSPECTIVE = &H00000001 'Perspective-correct texturing is supported
|
---|
| 285 | Const D3DPTEXTURECAPS_POW2 = &H00000002 'Power-of-2 texture dimensions are required - applies to non-Cube/Volume textures only.
|
---|
| 286 | Const D3DPTEXTURECAPS_ALPHA = &H00000004 'Alpha in texture pixels is supported
|
---|
| 287 | Const D3DPTEXTURECAPS_SQUAREONLY = &H00000020 'Only square textures are supported
|
---|
| 288 | Const D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE = &H00000040 'Texture indices are not scaled by the texture size prior to interpolation
|
---|
| 289 | Const D3DPTEXTURECAPS_ALPHAPALETTE = &H00000080 'Device can draw alpha from texture palettes
|
---|
| 290 | Const D3DPTEXTURECAPS_NONPOW2CONDITIONAL = &H00000100
|
---|
| 291 | Const D3DPTEXTURECAPS_PROJECTED = &H00000400 'Device can do D3DTTFF_PROJECTED
|
---|
| 292 | Const D3DPTEXTURECAPS_CUBEMAP = &H00000800 'Device can do cubemap textures
|
---|
| 293 | Const D3DPTEXTURECAPS_VOLUMEMAP = &H00002000 'Device can do volume textures
|
---|
| 294 | Const D3DPTEXTURECAPS_MIPMAP = &H00004000 'Device can do mipmapped textures
|
---|
| 295 | Const D3DPTEXTURECAPS_MIPVOLUMEMAP = &H00008000 'Device can do mipmapped volume textures
|
---|
| 296 | Const D3DPTEXTURECAPS_MIPCUBEMAP = &H00010000 'Device can do mipmapped cube maps
|
---|
| 297 | Const D3DPTEXTURECAPS_CUBEMAP_POW2 = &H00020000 'Device requires that cubemaps be power-of-2 dimension
|
---|
| 298 | Const D3DPTEXTURECAPS_VOLUMEMAP_POW2 = &H00040000 'Device requires that volume maps be power-of-2 dimension
|
---|
| 299 | Const D3DPTEXTURECAPS_NOPROJECTEDBUMPENV = &H00200000 'Device does not support projected bump env lookup operation in programmable and fixed function pixel shaders
|
---|
| 300 |
|
---|
| 301 | ' TextureFilterCaps, StretchRectFilterCaps
|
---|
| 302 | Const D3DPTFILTERCAPS_MINFPOINT = &H00000100 'Min Filter
|
---|
| 303 | Const D3DPTFILTERCAPS_MINFLINEAR = &H00000200
|
---|
| 304 | Const D3DPTFILTERCAPS_MINFANISOTROPIC = &H00000400
|
---|
| 305 | Const D3DPTFILTERCAPS_MINFPYRAMIDALQUAD = &H00000800
|
---|
| 306 | Const D3DPTFILTERCAPS_MINFGAUSSIANQUAD = &H00001000
|
---|
| 307 | Const D3DPTFILTERCAPS_MIPFPOINT = &H00010000 'Mip Filter
|
---|
| 308 | Const D3DPTFILTERCAPS_MIPFLINEAR = &H00020000
|
---|
| 309 | Const D3DPTFILTERCAPS_MAGFPOINT = &H01000000 'Mag Filter
|
---|
| 310 | Const D3DPTFILTERCAPS_MAGFLINEAR = &H02000000
|
---|
| 311 | Const D3DPTFILTERCAPS_MAGFANISOTROPIC = &H04000000
|
---|
| 312 | Const D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD = &H08000000
|
---|
| 313 | Const D3DPTFILTERCAPS_MAGFGAUSSIANQUAD = &H10000000
|
---|
| 314 |
|
---|
| 315 | ' TextureAddressCaps
|
---|
| 316 | Const D3DPTADDRESSCAPS_WRAP = &H00000001
|
---|
| 317 | Const D3DPTADDRESSCAPS_MIRROR = &H00000002
|
---|
| 318 | Const D3DPTADDRESSCAPS_CLAMP = &H00000004
|
---|
| 319 | Const D3DPTADDRESSCAPS_BORDER = &H00000008
|
---|
| 320 | Const D3DPTADDRESSCAPS_INDEPENDENTUV = &H00000010
|
---|
| 321 | Const D3DPTADDRESSCAPS_MIRRORONCE = &H00000020
|
---|
| 322 |
|
---|
| 323 | ' StencilCaps
|
---|
| 324 | Const D3DSTENCILCAPS_KEEP = &H00000001
|
---|
| 325 | Const D3DSTENCILCAPS_ZERO = &H00000002
|
---|
| 326 | Const D3DSTENCILCAPS_REPLACE = &H00000004
|
---|
| 327 | Const D3DSTENCILCAPS_INCRSAT = &H00000008
|
---|
| 328 | Const D3DSTENCILCAPS_DECRSAT = &H00000010
|
---|
| 329 | Const D3DSTENCILCAPS_INVERT = &H00000020
|
---|
| 330 | Const D3DSTENCILCAPS_INCR = &H00000040
|
---|
| 331 | Const D3DSTENCILCAPS_DECR = &H00000080
|
---|
| 332 | Const D3DSTENCILCAPS_TWOSIDED = &H00000100
|
---|
| 333 |
|
---|
| 334 | ' TextureOpCaps
|
---|
| 335 | Const D3DTEXOPCAPS_DISABLE = &H00000001
|
---|
| 336 | Const D3DTEXOPCAPS_SELECTARG1 = &H00000002
|
---|
| 337 | Const D3DTEXOPCAPS_SELECTARG2 = &H00000004
|
---|
| 338 | Const D3DTEXOPCAPS_MODULATE = &H00000008
|
---|
| 339 | Const D3DTEXOPCAPS_MODULATE2X = &H00000010
|
---|
| 340 | Const D3DTEXOPCAPS_MODULATE4X = &H00000020
|
---|
| 341 | Const D3DTEXOPCAPS_ADD = &H00000040
|
---|
| 342 | Const D3DTEXOPCAPS_ADDSIGNED = &H00000080
|
---|
| 343 | Const D3DTEXOPCAPS_ADDSIGNED2X = &H00000100
|
---|
| 344 | Const D3DTEXOPCAPS_SUBTRACT = &H00000200
|
---|
| 345 | Const D3DTEXOPCAPS_ADDSMOOTH = &H00000400
|
---|
| 346 | Const D3DTEXOPCAPS_BLENDDIFFUSEALPHA = &H00000800
|
---|
| 347 | Const D3DTEXOPCAPS_BLENDTEXTUREALPHA = &H00001000
|
---|
| 348 | Const D3DTEXOPCAPS_BLENDFACTORALPHA = &H00002000
|
---|
| 349 | Const D3DTEXOPCAPS_BLENDTEXTUREALPHAPM = &H00004000
|
---|
| 350 | Const D3DTEXOPCAPS_BLENDCURRENTALPHA = &H00008000
|
---|
| 351 | Const D3DTEXOPCAPS_PREMODULATE = &H00010000
|
---|
| 352 | Const D3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR = &H00020000
|
---|
| 353 | Const D3DTEXOPCAPS_MODULATECOLOR_ADDALPHA = &H00040000
|
---|
| 354 | Const D3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR = &H00080000
|
---|
| 355 | Const D3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA = &H00100000
|
---|
| 356 | Const D3DTEXOPCAPS_BUMPENVMAP = &H00200000
|
---|
| 357 | Const D3DTEXOPCAPS_BUMPENVMAPLUMINANCE = &H00400000
|
---|
| 358 | Const D3DTEXOPCAPS_DOTPRODUCT3 = &H00800000
|
---|
| 359 | Const D3DTEXOPCAPS_MULTIPLYADD = &H01000000
|
---|
| 360 | Const D3DTEXOPCAPS_LERP = &H02000000
|
---|
| 361 |
|
---|
| 362 | ' FVFCaps
|
---|
| 363 | Const D3DFVFCAPS_TEXCOORDCOUNTMASK = &H0000ffff 'mask for texture coordinate count field
|
---|
| 364 | Const D3DFVFCAPS_DONOTSTRIPELEMENTS = &H00080000 'Device prefers that vertex elements not be stripped
|
---|
| 365 | Const D3DFVFCAPS_PSIZE = &H00100000 'Device can receive point size
|
---|
| 366 |
|
---|
| 367 | ' VertexProcessingCaps
|
---|
| 368 | Const D3DVTXPCAPS_TEXGEN = &H00000001 'device can do texgen
|
---|
| 369 | Const D3DVTXPCAPS_MATERIALSOURCE7 = &H00000002 'device can do DX7-level colormaterialsource ops
|
---|
| 370 | Const D3DVTXPCAPS_DIRECTIONALLIGHTS = &H00000008 'device can do directional lights
|
---|
| 371 | Const D3DVTXPCAPS_POSITIONALLIGHTS = &H00000010 'device can do positional lights (includes point and spot)
|
---|
| 372 | Const D3DVTXPCAPS_LOCALVIEWER = &H00000020 'device can do local viewer
|
---|
| 373 | Const D3DVTXPCAPS_TWEENING = &H00000040 'device can do vertex tweening
|
---|
| 374 | Const D3DVTXPCAPS_TEXGEN_SPHEREMAP = &H00000100 'device supports D3DTSS_TCI_SPHEREMAP
|
---|
| 375 | Const D3DVTXPCAPS_NO_TEXGEN_NONLOCALVIEWER = &H00000200 'device does not support TexGen in non-local viewer mode
|
---|
| 376 |
|
---|
| 377 | ' DevCaps2
|
---|
| 378 | Const D3DDEVCAPS2_STREAMOFFSET = &H00000001 'Device supports offsets in streams. Must be set by DX9 drivers
|
---|
| 379 | Const D3DDEVCAPS2_DMAPNPATCH = &H00000002 'Device supports displacement maps for N-Patches
|
---|
| 380 | Const D3DDEVCAPS2_ADAPTIVETESSRTPATCH = &H00000004 'Device supports adaptive tesselation of RT-patches
|
---|
| 381 | Const D3DDEVCAPS2_ADAPTIVETESSNPATCH = &H00000008 'Device supports adaptive tesselation of N-patches
|
---|
| 382 | Const D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES = &H00000010 'Device supports StretchRect calls with a texture as the source
|
---|
| 383 | Const D3DDEVCAPS2_PRESAMPLEDDMAPNPATCH = &H00000020 'Device supports presampled displacement maps for N-Patches
|
---|
| 384 | Const D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET = &H00000040 'Vertex elements in a vertex declaration can share the same stream offset
|
---|
| 385 |
|
---|
| 386 | ' DeclTypes
|
---|
| 387 | Const D3DDTCAPS_UBYTE4 = &H00000001
|
---|
| 388 | Const D3DDTCAPS_UBYTE4N = &H00000002
|
---|
| 389 | Const D3DDTCAPS_SHORT2N = &H00000004
|
---|
| 390 | Const D3DDTCAPS_SHORT4N = &H00000008
|
---|
| 391 | Const D3DDTCAPS_USHORT2N = &H00000010
|
---|
| 392 | Const D3DDTCAPS_USHORT4N = &H00000020
|
---|
| 393 | Const D3DDTCAPS_UDEC3 = &H00000040
|
---|
| 394 | Const D3DDTCAPS_DEC3N = &H00000080
|
---|
| 395 | Const D3DDTCAPS_FLOAT16_2 = &H00000100
|
---|
| 396 | Const D3DDTCAPS_FLOAT16_4 = &H00000200
|
---|
| 397 |
|
---|
| 398 |
|
---|
| 399 | #endif '_INC_D3D9CAPS
|
---|