Microsoft DirectX 8.1 (Visual Basic)

Determining Hardware Support

Microsoft® Direct3D® provides the following functions to determine hardware support.

Direct3D8.CheckDeviceFormat
Used to verify whether a surface format can be used as a texture, whether a surface format can be used as a texture and a render target, or whether a surface format can be used as a depth-stencil buffer. In addition, this method is used to verify depth-buffer format support and depth-stencil buffer format support.
Direct3D8.CheckDeviceType
Used to verify a device's ability to perform hardware acceleration, a device's ability to build a swap chain for presentation, or a device's ability to render to the current display format.
Direct3D8.CheckDepthStencilMatch
Used to verify whether a depth-stencil buffer format is compatible with a render-target format. Note that before calling this method, the application should call CheckDeviceFormat on both the depth-stencil and render-target formats.