   uploading a struct into HLSL file
  HiI have the following struct and variable in my HLSL filestruct OmniLightStruc{float3 Position;float3 Color;float Intensity;};OmniLightStruc LightPixelOmni[3] : LightPixelOmni;I have a problem with uploading the data to the HLSLin my c# code here is what i do but does not workfloat[] omni_light_data = new float[omni_lights.Length * 7]; for (int i = 0; i < omni_lights.Length; ++i) {Array array = omni_lights.GetDataInFloatArray();array.CopyTo(omni_light_data, i*7); }  m_Effect.SetValue("LightPixelOmni", omni_light_data);Does anyone know what am i doing wrong or how else i could do this?thanks!!
  I am not terribly experienced with the .net Array class, but it looks like your loop would work.  So just verify that first (just watch omni_light_data).The next thing to check would be if your SetValue() call is failing.  If so, check out the Debug Output and see what it has to say.   