mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-07 03:21:38 +12:00
[PICA] Why is attribute fetching so hard
This commit is contained in:
parent
39bfeda586
commit
8770e6dc41
6 changed files with 44 additions and 8 deletions
|
@ -51,6 +51,12 @@ class GPU {
|
|||
struct AttribInfo {
|
||||
u32 offset = 0; // Offset from base vertex array
|
||||
int size = 0; // Bytes per vertex
|
||||
u32 config1 = 0;
|
||||
u32 config2 = 0;
|
||||
|
||||
u64 getConfigFull() {
|
||||
return u64(config1) | (u64(config2) << 32);
|
||||
}
|
||||
};
|
||||
|
||||
std::array<AttribInfo, maxAttribCount> attributeInfo; // Info for each of the 12 attributes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue