mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
HW shaders: Add padding attributes
This commit is contained in:
parent
09b04704f8
commit
0a2bc7c909
1 changed files with 0 additions and 1 deletions
|
@ -90,7 +90,6 @@ void GPU::getAcceleratedDrawInfo(PICA::DrawAcceleration& accel, bool indexed) {
|
||||||
// Vertex attributes used as padding
|
// Vertex attributes used as padding
|
||||||
// 12, 13, 14 and 15 are equivalent to 4, 8, 12 and 16 bytes of padding respectively
|
// 12, 13, 14 and 15 are equivalent to 4, 8, 12 and 16 bytes of padding respectively
|
||||||
if (attributeIndex >= 12) [[unlikely]] {
|
if (attributeIndex >= 12) [[unlikely]] {
|
||||||
Helpers::panic("Padding attribute");
|
|
||||||
// Align attribute address up to a 4 byte boundary
|
// Align attribute address up to a 4 byte boundary
|
||||||
attributeOffset = (attributeOffset + 3) & -4;
|
attributeOffset = (attributeOffset + 3) & -4;
|
||||||
attributeOffset += (attributeIndex - 11) << 2;
|
attributeOffset += (attributeIndex - 11) << 2;
|
||||||
|
|
Loading…
Add table
Reference in a new issue