mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 12:39:13 +12:00
More hw VAO work
This commit is contained in:
parent
cf31f7b7e0
commit
74a341ba46
3 changed files with 66 additions and 6 deletions
|
@ -6,13 +6,28 @@
|
|||
|
||||
namespace PICA {
|
||||
struct DrawAcceleration {
|
||||
static constexpr u32 maxAttribCount = 12;
|
||||
|
||||
struct AttributeInfo {
|
||||
u32 offset;
|
||||
|
||||
u8 type;
|
||||
u8 componentCount;
|
||||
bool fixed;
|
||||
|
||||
std::array<float, 4> fixedValue; // For fixed attributes
|
||||
};
|
||||
|
||||
u8* vertexBuffer;
|
||||
u8* indexBuffer;
|
||||
|
||||
// Minimum and maximum index in the index buffer for a draw call
|
||||
u16 minimumIndex, maximumIndex;
|
||||
u32 totalAttribCount;
|
||||
u32 vertexDataSize;
|
||||
|
||||
std::array<AttributeInfo, maxAttribCount> attributeInfo;
|
||||
|
||||
bool canBeAccelerated;
|
||||
bool indexed;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue