More hw VAO work

This commit is contained in:
wheremyfoodat 2024-08-24 02:58:05 +03:00
parent cf31f7b7e0
commit 74a341ba46
3 changed files with 66 additions and 6 deletions

View file

@ -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;
};