mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-07 03:21:38 +12:00
Refactored Vertex Pipeline to always use Pica Formatted Vertex
This commit is contained in:
parent
7f48334ffa
commit
ca89909c00
6 changed files with 72 additions and 82 deletions
|
@ -8,6 +8,7 @@
|
|||
#include "PICA/shader_unit.hpp"
|
||||
#include "PICA/dynapica/shader_rec.hpp"
|
||||
#include "renderer_gl/renderer_gl.hpp"
|
||||
#include "PICA/pica_vertex.hpp"
|
||||
|
||||
class GPU {
|
||||
static constexpr u32 regNum = 0x300;
|
||||
|
@ -27,7 +28,7 @@ class GPU {
|
|||
std::array<vec4f, 16> currentAttributes; // Vertex attributes before being passed to the shader
|
||||
|
||||
std::array<vec4f, 16> immediateModeAttributes; // Vertex attributes uploaded via immediate mode submission
|
||||
std::array<Vertex, 3> immediateModeVertices;
|
||||
std::array<PicaVertex, 3> immediateModeVertices;
|
||||
uint immediateModeVertIndex;
|
||||
uint immediateModeAttrIndex; // Index of the immediate mode attribute we're uploading
|
||||
|
||||
|
@ -67,7 +68,7 @@ class GPU {
|
|||
u32* cmdBuffCurr = nullptr;
|
||||
|
||||
Renderer renderer;
|
||||
Vertex getImmediateModeVertex();
|
||||
PicaVertex getImmediateModeVertex();
|
||||
public:
|
||||
GPU(Memory& mem);
|
||||
void initGraphicsContext() { renderer.initGraphicsContext(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue