I want to allow using up to 4GB of memory when using DirectX9. Currently, when memory usage goes too high, I get this message:
access violation at 0x000E8AE5 in C:\WINDOWS\SYSTEM32\d3dx9_43.dll,
attempting to read from 0xE47DE9C0
I'm running my DLL via AVSMeter.exe which has the /LARGEADDRESSAWARE compilation flag.
Then in my code
https://github.com/mysteryx93/AviSynthShader/blob/master/Src/D3D9RenderImpl.cpp#L313
I replace
HR(D3DXGetShaderConstantTable((DWORD*)ShaderBuf, &Shader->ConstantTable));
with
HR(D3DXGetShaderConstantTableEx((DWORD*)ShaderBuf, D3DXCONSTTABLE_LARGEADDRESSAWARE, &Shader->ConstantTable));
I still get the same error message. What else do I need to change to make it work?