We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Creates an effect from a complied shader blob on disk.
HRESULT WINAPI D3DX11CreateEffectFromFile( LPCWSTR pFileName, UINT FXFlags, ID3D11Device *pDevice, ID3DX11Effect **ppEffect );
This function is not present in the legacy DirectX SDK version of Effects 11.
#include <d3dcompiler.h> #include "d3dx11effect.h"
pFileName: Pointer to filename of compiled shader blob (should have been compiled using the fx_5_0 profile).
fx_5_0
FXFlags: Same as D3DCompile Flags2. See D3DCOMPILE_EFFECT.
pDevice: Direct3D device for creating rendering resources and modifying state.
ppEffect: Pointer to the newly created effect instance.
This is the 'disk file' version of the original D3DX11CreateEffectFromMemory
DirectX Tool Kit
DirectXMesh
DirectXTex
DXCapsViewer
UVAtlas
DXUT11
DirectX SDK Samples