ID3D10Effect::GetDevice method (d3d10effect.h)

Get the device that created the effect.

Syntax

HRESULT GetDevice(
  [out] ID3D10Device **ppDevice
);

Parameters

[out] ppDevice

Type: ID3D10Device**

A pointer to an ID3D10Device Interface.

Return value

Type: HRESULT

Returns one of the following Direct3D 10 Return Codes.

Remarks

An effect is created for a specific device, by calling a function such as D3DX10CreateEffectFromFile.

Requirements

Requirement Value
Target Platform Windows
Header d3d10effect.h

See also

ID3D10Effect Interface