DirectX SDK

D3DPRIMCAPS

The D3DPRIMCAPS type defines the capabilities for each primitive type. This type is used when creating a device and when querying the capabilities of a device. This type defines several members in the D3DDEVICEDESC7 type.

Type D3DPrimCaps
    lAlphaCmpCaps As CONST_D3DCAPSCMP
    lDestBlendCaps As CONST_D3DCAPSBLEND
    lMiscCaps As CONST_D3DCAPSMISC
    lRasterCaps As CONST_D3DCAPSRASTER
    lReserved1 As Long
    lShadeCaps As CONST_D3DCAPSSHADE
    lSrcBlendCaps As CONST_D3DCAPSBLEND
    lStippleHeight As Long
    lStippleWidth As Long
    lTextureAddressCaps As CONST_D3DCAPSTEXTUREADDRESS
    lTextureCaps As CONST_D3DCAPSTEXTURE
    lTextureFilterCaps As CONST_D3DCAPSTEXTUREFILTER
    lZCmpCaps As CONST_D3DCAPSCMP
End Type

Members

lAlphaCmpCaps
Alpha-test comparison functions that the driver can perform. If this member contains only the D3DPCMPCAPS_ALWAYS capability or only the D3DPCMPCAPS_NEVER capability, the driver does not support alpha tests. Otherwise, the flags identify the individual comparisons that are supported for alpha testing. This member can be one or of the constants of the CONST_D3DCAPSCMP enumeration.
lDestBlendCaps
Combination of values from the CONST_D3DCAPSBLEND enumeration describing the destination blending capabilities.
lMiscCaps
General capabilities for this primitive. This member can be one or more of the values from the CONST_D3DCAPSMISC enumeration.
lRasterCaps
Information on raster-drawing capabilities. This member can be one or more of the constants from the CONST_D3DCAPSRASTER enumeration.
lReserved1
Reserved. Do not use.
lShadeCaps
Shading operations that the device can perform. It is assumed, in general, that if a device supports a given command (such as D3DOP_TRIANGLE) at all, it supports the D3DSHADE_FLAT mode (as specified in the CONST_D3DSHADEMODE enumeration). This flag specifies whether the driver can also support Gouraud and Phong shading and whether alpha color components are supported for each of the three color-generation modes. When alpha components are not supported in a given mode, the alpha value of colors generated in that mode is implicitly 255. This is the maximum possible alpha (that is, the alpha component is at full intensity).

The color, specular highlights, fog, and alpha interpolants of a triangle each have capability flags that an application can use to find out how they are implemented by the device driver. These are modified by the shade mode, color model, and by whether the alpha component of a color is blended or stippled. For more information, see 3-D Primitives.

This member can be one or more of the constants of the CONST_D3DCAPSSHADE enumeration.

lSrcBlendCaps
Source blending capabilities. This member can be a combination of values from the CONST_D3DCAPSBLEND enumeration describing the destination blending capabilities.
lStippleWidth and lStippleHeight
Maximum width and height of the supported stipple (up to 32×32).
lTextureAddressCaps
Texture-addressing capabilities. This member can be one or more of the constants of the CONST_D3DCAPSTEXTUREADDRESS enumeration.
lTextureCaps
Miscellaneous texture-mapping capabilities. This member can be one or more of the constants of the CONST_D3DCAPSTEXTURE enumeration.
lTextureFilterCaps
Texture-map filtering capabilities. General texture filtering flags reflect which texture filtering modes are supported and can be set for the D3DTSS_MAGFILTER, D3DTSS_MINFILTER, or D3DTSS_MIPFILTER texture stage states. This member can any combination of the general and per-stage texture filtering constants of the CONST_D3DCAPSTEXTUREFILTER enumeration.
lZCmpCaps
Z-buffer comparison functions that the driver can perform. This member can include same constants of the CONST_D3DCAPSCMP as defined for the lAlphaCmpCaps member.