Basic texture sampling for dx9 shaders.
Check for empty constant buffer.

No longer generate invalid GlobalsVS[0] declaration when compiling
vs2\mov test.