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??
Somebody tell me how to use Effect system in DX11 pls..
*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
*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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement