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 in memory.
HRESULT WINAPI D3DX11CreateEffectFromMemory( LPCVOID pData, SIZE_T DataLength, UINT FXFlags, ID3D11Device *pDevice, ID3DX11Effect **ppEffect, LPCSTR srcName = nullptr );
#include <d3dcompiler.h> #include "d3dx11effect.h"
pData, DataLength: Pointer to memory buffer containing the compiled shader blob (should have been compiled using the fx_5_0 profile).
fx_5_0
FXFlags: Same as D3DCompile Flags2. See D3DCOMPILE_EFFECT constants.
pDevice: Direct3D device for creating rendering resources and modifying state
ppEffect: Pointer to the newly created effect instance.
srcName: Optional source name used for 'debug object naming'
This is signature compatible with the original D3DX11CreateEffectFromMemory.
DirectX Tool Kit
DirectXMesh
DirectXTex
DXCapsViewer
UVAtlas
DXUT11
DirectX SDK Samples