mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-08 07:05:40 +12:00
38 lines
No EOL
680 B
C++
38 lines
No EOL
680 B
C++
#pragma once
|
|
|
|
#include <array>
|
|
|
|
#include "helpers.hpp"
|
|
|
|
namespace PICA {
|
|
struct DrawAcceleration {
|
|
static constexpr u32 maxAttribCount = 12;
|
|
|
|
struct AttributeInfo {
|
|
u8* data;
|
|
u32 offset;
|
|
u32 size;
|
|
u32 stride;
|
|
|
|
u8 type;
|
|
u8 componentCount;
|
|
bool fixed;
|
|
bool isPadding;
|
|
|
|
std::array<float, 4> fixedValue; // For fixed attributes
|
|
};
|
|
|
|
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;
|
|
bool useShortIndices;
|
|
};
|
|
} // namespace PICA
|