thx :D
I have one more question:
when creating constant buffers i saw that there are vs, ps and gs interface functions in the ID3D10Device to set constant buffers. So i must sort them by ps,vs and gs in addition to frequency of use? And would it be very wrong to set a value in a vs cbuffer that is going to be used in ps (will it crash the app or cause any major problems-Im just curious about this last thing :P)?