   Are there any difference between two different methods for set texture in D3D9
  Hi,Are there any difference between two different methods for setting texture in D3D9?LPDIRECT3DBASETEXTURE9 Tex;case 1,LPDIRECT3DDEVICE9 g_Device;g_Device->SetTexture(0, Tex);case 2,M2Effect *xxxxEffect;//obtain effect from xxxxEffectLPD3DXEFFECT effect;Param_Tex = effect->GetParameterByName(NULL, "g_Tex");effect->SetTexture(Param_Tex , Tex);   
  assume the shader sampler is in register(s0).   ;  The effect framework internally calls the SetTexture method of the device. This level of abstraction is done to allow data driven development instead of code driven. If you later change the slot in the effect you don’t need to change the code if you use the effect framework method.   