Microsoft DirectX 8.1 (Visual Basic)

CONST_D3DPRASTERCAPSFLAGS

Defines constants that provide information on raster-drawing capabilities.

Enum CONST_D3DPRASTERCAPSFLAGS
    D3DPRASTERCAPS_DITHER                     =       1
    D3DPRASTERCAPS_PAT                        =       8
    D3DPRASTERCAPS_ZTEST                      =      16 (&H10)
    D3DPRASTERCAPS_FOGVERTEX                  =     128 (&H80)
    D3DPRASTERCAPS_FOGTABLE                   =     256 (&H100)
    D3DPRASTERCAPS_ANTIALIASEDGES             =    4096 (&H1000)
    D3DPRASTERCAPS_MIPMAPLODBIAS              =    8192 (&H2000)
    D3DPRASTERCAPS_ZBIAS                      =   16384 (&H4000)
    D3DPRASTERCAPS_ZBUFFERLESSHSR             =   32768 (&H8000)
    D3DPRASTERCAPS_FOGRANGE                   =   65536 (&H10000)
    D3DPRASTERCAPS_ANISOTROPY                 =  131072 (&H20000)
    D3DPRASTERCAPS_WBUFFER                    =  262144 (&H40000)
    D3DPRASTERCAPS_WFOG                       = 1048576 (&H100000)
    D3DPRASTERCAPS_ZFOG                       = 2097152 (&H200000)
    D3DPRASTERCAPS_COLORPERSPECTIVE           = 4194304 (&H400000)
    D3DPRASTERCAPS_STRETCHBLTMULTISAMPLE      = 8388608 (&H800000)
End Enum

Constants

D3DPRASTERCAPS_DITHER
The device can dither to improve color resolution.
D3DPRASTERCAPS_PAT
The driver can perform patterned drawing lines or fills with D3DRS_LINEPATTERN for the primitive being queried.
D3DPRASTERCAPS_ZTEST
The device can perform z-test operations. This effectively renders a primitive and indicates whether any z pixels have been rendered.
D3DPRASTERCAPS_FOGVERTEX
The device calculates the fog value during the lighting operation, places the value into the alpha component of the specular member of the D3DTLVERTEX type and interpolates the fog value during rasterization.
D3DPRASTERCAPS_FOGTABLE
The device calculates the fog value by referring to a lookup table containing fog values that are indexed to the depth of a given pixel.
D3DPRASTERCAPS_ANTIALIASEDGES
The device can antialias lines forming the convex outline of objects. For more information, see D3DRS_EDGEANTIALIAS in the CONST_D3DRENDERSTATETYPE enumeration.
D3DPRASTERCAPS_MIPMAPLODBIAS
The device supports level-of-detail (LOD) bias adjustments. These bias adjustments enable an application to make a mipmap appear crisper or less sharp than it normally would. For more information about LOD bias in mipmaps, see D3DTSS_MIPMAPLODBIAS.
D3DPRASTERCAPS_ZBIAS
The device supports z-bias values. These are integer values assigned to polygons that enable physically coplanar polygons to appear separate. For more information, see D3DRS_ZBIAS in the CONST_D3DRENDERSTATETYPE enumeration.
D3DPRASTERCAPS_ZBUFFERLESSHSR
The device can perform hidden-surface removal (HSR) without requiring the application to sort polygons and without requiring the allocation of a depth-buffer. This leaves more video memory for textures. The method used to perform HSR is hardware-dependent and is transparent to the application.

Z-bufferless HSR is performed if no depth-buffer surface is associated with the rendering-target surface and the depth-buffer comparison test is enabled (that is, when the state value associated with the D3DRS_ZENABLE enumeration constant is set to 1).

D3DPRASTERCAPS_FOGRANGE
The device supports range-based fog. In range-based fog, the distance of an object from the viewer is used to compute fog effects, not the depth of the object (that is, the z-coordinate) in the scene. For more information, see Range-Based Fog.
D3DPRASTERCAPS_ANISOTROPY
The device supports anisotropic filtering.
D3DPRASTERCAPS_WBUFFER
The device supports depth buffering using w. For more information, see Depth Buffers.
D3DPRASTERCAPS_WFOG
The device supports w-based fog. W-based fog is used when a perspective projection matrix is specified, but affine projections still use z-based fog. The system considers a projection matrix that contains a nonzero value in the [3][4] element to be a perspective projection matrix.
D3DPRASTERCAPS_ZFOG
The device supports z-based fog.
D3DPRASTERCAPS_COLORPERSPECTIVE
The device iterates colors perspective correct.
D3DPRASTERCAPS_STRETCHBLTMULTISAMPLE
The device provides limited multisample support through a stretch-blt implementation. When this capability is set, D3DRS_MULTISAMPLEANTIALIAS cannot be turned on and off in the middle of a scene. Multisample masking cannot be performed if this flag is set.

Remarks

These flags may be combined and present in the RasterCaps member of D3DCAPS8.

See Also

D3DCAPS8