switch invalidatePasses to use materialpassdata instead of materialdata