Microsoft DirectX 8.0 (C++)

ID3DXTechnique::GetDevice

Retrieves the device associated with the technique.

HRESULT GetDevice(
  IDirect3DDevice8** ppDevice
);

Parameters

ppDevice
Address of a pointer to an IDirect3DDevice8 interface, representing the device associated with the technique.

Return Values

This method always returns the value S_OK.

Note  Calling this method will increase the internal reference count on the IDirect3DDevice8 interface. Be sure to call IUnknown::Release when you are done using this IDirect3DDevice8 interface or you will have a memory leak.

Requirements

  Header: Declared in D3dx8effect.h.
  Import Library: Use D3dx8.lib.