   How to set a 2D array to HLSL?
  Hi,I have a lookup table which is a 2D float array, float table[16][16];where in my fx file,Texture2D txTable;I tried to set it as a ID3D10EffectShaderResourceVariable in my CPP, and link to my fx, but it seems that the result is not quite what I expected.May I know am I right with this option? How can we tell the shader the dimension of the 2D?Besides, I also would like to have an array of float3 item in my fx,float3index[2];May I know how do we pass the value from the cpp?I tried to create a float array,float index[] = {10, 20, 30, 1, 2, 3};and set it to a ID3D10EffectVectorVariable;SetFloatVector( ( float* )&index);but when I accessed index[0] in my shader, I got (1, 2, 3) instead of (10, 20, 30). and it has nothing in index[1].May I know how to set the array data into shader?Thank you.   