I have a vertex shader (2.0) doing some instancing - each vertex specifies an index into an array.
If I have an array like this:
float instanceData[100];
Does that helps?:
float4 packedInstanceData[25]; ... float data = packedInstanceData[index / 4][index % 4];