mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-11 01:28:41 +12:00
GL: Actually upload data to stream buffers
This commit is contained in:
parent
e34bdb6841
commit
f96b609123
5 changed files with 46 additions and 27 deletions
|
@ -11,15 +11,16 @@ namespace PICA {
|
|||
struct AttributeInfo {
|
||||
u8* data;
|
||||
u32 offset;
|
||||
u32 size;
|
||||
|
||||
u8 type;
|
||||
u8 componentCount;
|
||||
bool fixed;
|
||||
bool isPadding;
|
||||
|
||||
std::array<float, 4> fixedValue; // For fixed attributes
|
||||
};
|
||||
|
||||
u8* vertexBuffer;
|
||||
u8* indexBuffer;
|
||||
|
||||
// Minimum and maximum index in the index buffer for a draw call
|
||||
|
@ -31,5 +32,6 @@ namespace PICA {
|
|||
|
||||
bool canBeAccelerated;
|
||||
bool indexed;
|
||||
bool useShortIndices;
|
||||
};
|
||||
} // namespace PICA
|
Loading…
Add table
Add a link
Reference in a new issue