Get the device that created the effect.
HRESULT GetDevice( ID3D11Device **ppDevice );
Returns one of the following Direct3D 11 Return Codes.
An effect is created for a specific device, by calling a function such as D3DX11CreateEffectFromMemory.
The DirectX SDK does not supply any compiled binaries for effects. You must use Effects 11 source to build your effects-type application. For more information about using Effects 11 source, see Differences Between Effects 10 and Effects 11.