Const-correctness for d3d9_effect class.