-
Notifications
You must be signed in to change notification settings - Fork 139
D3DX11CreateEffectFromFile
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).
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
All content and source code for this package are subject to the terms of the MIT License.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
- Windows desktop apps
- Windows 11
- Windows 10
- Windows 8.1
- Windows 7 Service Pack 1
- Visual Studio 2022
- Visual Studio 2019
- clang/LLVM v12 - v15
- CMake 3.20