d3dx9: Generate effect instances from materials for mesh loading.