As the title says, I want to add my shaders' code some "#define"s. But I want to do it at runtime, and by using my Win32 D3D App.
For example, I want to use a code like that:
//blah-blah.fx...#ifdef MY_PREDEFINITIONDoSomething();#elseDontDoAnything();#endif...
Can I pass that MY_PREDEFINITION thing from my Win32 app to the shader at runtime? I've looked at pDefines parameter of D3DXCreateEffectFromFile() (it's a D3DXMACRO type element) but couldn't understand anything.
Can anyone help me?
Thanks in advance.