This is a method of the IDirect3dDevice Interface.
public void swapTextureHandles(Direct3dTexture tex1, Direct3dTexture tex2);