GetSurface method

Retrieves a pointer to the parent DXSurface.

Syntax

HRESULT retVal = object.GetSurface(riid, ppSurface);

Parameters

  • riid [in]
    Type: REFIID

    Interface to retrieve from the read pointer, typically IID_IDXSurface.

  • ppSurface [out]
    Type: void

    Address of a pointer to the requested interface.

Remarks

This method retrieves a pointer to the parent surface associated with the specified IDXARGBReadPtr interface. It provides a link between the IDXSurface::LockSurface interface, which exposes the IDXARGBReadPtr and IDXARGBReadWritePtr interfaces, and the DXSurface object, which exposes the IDXSurface interface.