Microsoft DirectX 8.1 (Visual Basic) |
Retrieves the device associated with a resource.
object.GetDevice( _ Riid As GUID) As Direct3DDevice8
An Unknown object to fill with the device object, if the query succeeds.
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.