When passing vertex data to your shaders, is it wise to apply padding to your vertex structure to achieve allignment (16byte) or is that something that the hardware is performing anyway?
For example are these two vertex structures equally effective?
struct Vertex44 // <<----- NO PADDING
{
XMFLOAT3 position;
XMFLOAT3 normal;
XMFLOAT2 texCoord;
XMFLOAT3 tangent;
};
struct Vertex48 // <<----- WITH PADDING
{
XMFLOAT3 position;
XMFLOAT3 normal;
XMFLOAT2 texCoord;
XMFLOAT3 tangent;
float padding;
};
Thank you!