some refactors regarding d3d9 shader parameters binding