Microsoft DirectX 8.1 (Visual Basic)

Direct3DSurface8.GetContainer

Provides access to the parent cube texture or texture (mipmap) object, if this surface is a child level of a cube texture or a mipmap.

object.GetContainer( _ 
    Riid  As GUID) As Unknown

Parts

object
Object expression that resolves to a Direct3DSurface8 object.
Riid
Reference identifier of the container being requested.

Return Values

An Unknown object to fill with the container object, if the query succeeds. See Remarks.

Error Codes

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.

Remarks

If the surface is created using Direct3DDevice8.CreateImageSurface, Direct3DDevice8.CreateRenderTarget, or Direct3DDevice8.CreateDepthStencilSurface, the surface is considered stand alone. In this case, GetContainer will return the Direct3D device used to create the surface.