vertex attribute (declaration) vertex stream (memory pool)
這兩部分 通過attribute
裡面對memory的描述把兩部分 vbo 和attribute bind together
slot attribute offset streamIndex stride stream
0 RGBA32F pos 0 0 16 0 memoryaddress
1 RGBA32F normal 16(slot0 RGBA32F 4X4) 0
2 RG32F uv 32 0
example2:
slot attribute offset streamIndex stride divisor(??not quite sure) stream
0 RGBA32F pos 0 0 16(slot0) 0 memoryaddress0
1 RGBA32F normal 16( slot0 RGBA32F 4X4) 1 24(slot1+slot2) 1 memoryaddress1
2 RG32F uv 32 1
16F是2個位元組 X4(RGBA四個通道)
stride offset單位都是byte
SetVertexDeclaration()設定的offset