Microsoft DirectX 8.1 (Visual Basic) |
object.PreLoad()
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.
This method applies to the following classes, which implement methods from Direct3DResource8.
Calling this method indicates that the application will need this managed resource shortly. This method has no effect on nonmanaged resources.
PreLoad detects "thrashing" conditions where more resources are being used in each frame than can fit in video memory simultaneously. Under such circumstances Preload silently does nothing.