Creates an effect from a complied shader blob on disk.

HRESULT WINAPI D3DX11CreateEffectFromFile(
   _In_z_ LPCWSTR pFileName,
   _In_ UINT FXFlags,
   _In_ ID3D11Device *pDevice,
   _Outptr_ ID3DX11Effect **ppEffect );

Parameters

pFileName: Pointer to filename of compiled shader blob (should have been compiled using the fx_5_0 profile).

FXFlags: Same as D3DCompile Flags2. See D3DCOMPILE_EFFECT constants. http://msdn.microsoft.com/en-us/library/gg615084.aspx

pDevice: Direct3D device for creating rendering resources and modifying state

ppEffect: Pointer to the newly created effect instance.

Remark

This is the 'disk file' version of the original D3DX11CreateEffectFromMemory
http://msdn.microsoft.com/en-us/library/windows/desktop/ff476273.aspx

Last edited Jul 16, 2013 at 12:34 AM by walbourn, version 3