thanks rbraz
I will see the warnings and make the correct casting.
nice to see you starting learnning Shader Language , it will open a new programming world for you , so good luck.
BTW ,I am foucus in Pixel Shader because almost all my work is 2D effects.