Somebody tell me how to use Effect system in DX11 pls..

Started by
0 comments, last by e3d_ALiVE 13 years, 7 months ago
I know the Effect11 is in a folder in the SDK..

But how to use it exactly??

Include one of the header in it or something else??
Advertisement
*convert shader file from 9/10 to 11[mostly replacing 10 with 11]
*compile effect11 as dll or static library and link it
*call D3DX11CompileFromFileW(FileName,NULL,NULL,"","fx_5_0",CurFlags,NULL,NULL,&fx_compiled,&Errors,NULL);
*validate for errors
*call D3DX11CreateEffectFromMemory(fx_compiled->GetBufferPointer(), fx_compiled->GetBufferSize(),0, dev11, &fx)
*also check for errors
*get from that shader needed techniques
*then just GetTech(id)->GetPass(pid)->Apply()

very similar to d3d10 effects
Crazy dude smoking D3D11, AngelScript, PhysX, 3D Sound, Network, DB, FBX, and some other weird things, doing that on Visual Studio 2010 + Visual Assist X on Overclocked CPU

This topic is closed to new replies.

Advertisement