So say I have a 'struct' such as this:
struct Vertex
{
float posX, posY, posZ;
}
Where I have declared 3 float (4-byte approx) values. So all-in-all this 'struct' is about 12 bytes.
But if I write it like this:
struct Vertex
{
float pos[3];
}
Do I still get the same effect as above? 12 bytes? What is the difference?
sizeof).