Microsoft DirectX 8.1 (Visual Basic) |
Filters mipmap levels of a volume texture.
object.FilterVolumeTexture( _ VolumeTexture As Direct3DVolume8, _ Palette As Any, _ SrcLevel As Long, _ MipFilter As Long)
If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.
For information on trapping errors, see the Microsoft Visual Basic® Error Handling topic.
Writing to a non-level-zero surface of the texture does not cause the dirty rectangle to be updated. If D3DX8.FilterVolumeTexture is called and the surface was not already dirty—this is unlikely under normal use scenarios—the application must explicitly call Direct3DTexture8.AddDirtyRect on the texture.
Box-filter is recursively applied to each texture level to generate the next texture level.