ID3DX11Effect::GetDevice method
Get the device that created the effect.
Syntax
HRESULT GetDevice(
ID3D11Device **ppDevice
);
Parameters
-
ppDevice
-
Type: ID3D11Device**
A pointer to an ID3D11Device.
Return value
Type: HRESULT
Returns one of the following Direct3D 11 Return Codes.
Remarks
An effect is created for a specific device, by calling a function such as D3DX11CreateEffectFromMemory.
Note
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.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|