d3dx9: Pass objects to functions instead of using the base effect in the parameter.