I found some code which lets you hook the directx device functions
What is happening here?
float* pMyData = (float*)pConstantData;
coords[0] = *(pMyData + 0); //4th element is the X
coords[1] = *(pMyData + 1); //8th element is the Y
coords[2] = *(pMyData + 2); //12th element is the Z
coords[3] = *(pMyData + 3); //4th element is the X
coords[4] = *(pMyData + 4); //8th element is the Y
coords[5] = *(pMyData + 5); //12th element is the Z
coords[6] = *(pMyData + 6); //4th element is the X
coords[7] = *(pMyData + 7); //8th element is the Y
coords[8] = *(pMyData + 8); //12th element is the Z
coords[9] = *(pMyData + 9); //8th element is the Y
coords[10] = *(pMyData + 10); //12th element is the Z
coords[11] = *(pMyData + 11); //4th element is the X
coords[12] = *(pMyData + 12); //8th element is the Y
coords[13] = *(pMyData + 13); //12th element is the Z
coords[14] = *(pMyData + 14); //4th element is the X
coords[15] = *(pMyData + 15); //8th element is the Y