C language function:D3DXCreateEffectFromFile sample codes

Search sample code in the internet.It is the result.


TITLE : Maya API: hlslShader.cpp
if( FAILED( D3DXCreateEffectFromFile( pDevice, shaderName.asChar(), NULL, NULL, D3DXSHADER_ENABLE_BACKWARDS_COMPATIBILITY, NULL, &fD3DEffect, &errors)).......
http://download.autodesk.com/us/maya/2011help/api/hlsl_shader_8cpp-example.html


TITLE : Maya API: hlslShader.cpp
&& FAILED( D3DXCreateEffectFromFile( pDevice, shaderName.asChar(), NULL, NULL, D3DXSHADER_USE_LEGACY_D3DX9_31_DLL, NULL, &fD3DEffect, NULL)).......
http://download.autodesk.com/us/maya/2011help/api/hlsl_shader_8cpp-example.html
TITLE : shaders - What happened to .fx files in D3D11? - Game Development Stack Exchange
In D3D9, loading an entire effect file was D3DXCreateEffectFromFile( .. ), and you got a ID3DXEffect9, which had great methods like SetTechnique and BeginPass, making it easy to load and execute a shader with multiple techniques........
http://gamedev.stackexchange.com/questions/17602/what-happened-to-fx-files-in-d3d11
search Google

https://www.google.com/#q=D3DXCreateEffectFromFile