Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.GetRenderTarget

Retrieves a pointer to the Microsoft® Direct3D® surface that is being used as a render target.

object.GetRenderTarget() As Direct3DSurface8

Parts

object
Object expression that resolves to a Direct3DDevice8 object.

Return Values

A Direct3DSurface8 object, representing the returned render target surface for this device.

Error Codes

If the method fails, an error is raised and Err.Number may be set to D3DERR_INVALIDCALL if one of the parameters is invalid.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

See Also

Direct3DDevice8.SetRenderTarget