GPU/Pitfalls: Difference between revisions
m style |
m Some extra notes about alignment |
||
Line 10: | Line 10: | ||
* Vertex attributes will be aligned to their component element size. | * Vertex attributes will be aligned to their component element size. | ||
* Padding attributes (Component type > 11) will always aligned to 4 byte offets into the buffer. | * Padding attributes (Component type > 11) will always aligned to 4 byte offets into the buffer. | ||
* The stride should remain passed unaligned. | |||
=== Vertex stride in GPUREG_ATTRIBBUFFERi_CONFIG2 === | === Vertex stride in GPUREG_ATTRIBBUFFERi_CONFIG2 === | ||
Line 54: | Line 55: | ||
== Shaders == | == Shaders == | ||
=== | === Configued Output components must be written exactly once === | ||
Each configured output component has to be written exactly once or the PICA freezes. | Each configured output component has to be written exactly once or the PICA freezes. |