mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-05 19:54:49 +12:00
PicaVertex -> PICA::Vertex
This commit is contained in:
parent
b403e9a66e
commit
a3d8f777b4
6 changed files with 43 additions and 41 deletions
|
@ -61,7 +61,7 @@ void GPU::drawArrays(bool indexed) {
|
|||
}
|
||||
}
|
||||
|
||||
static std::array<PicaVertex, Renderer::vertexBufferSize> vertices;
|
||||
static std::array<PICA::Vertex, Renderer::vertexBufferSize> vertices;
|
||||
|
||||
template <bool indexed, bool useShaderJIT>
|
||||
void GPU::drawArrays() {
|
||||
|
@ -249,7 +249,7 @@ void GPU::drawArrays() {
|
|||
shaderUnit.vs.run();
|
||||
}
|
||||
|
||||
PicaVertex& out = vertices[i];
|
||||
PICA::Vertex& out = vertices[i];
|
||||
// Map shader outputs to fixed function properties
|
||||
const u32 totalShaderOutputs = regs[PICA::InternalRegs::ShaderOutputCount] & 7;
|
||||
for (int i = 0; i < totalShaderOutputs; i++) {
|
||||
|
@ -265,8 +265,8 @@ void GPU::drawArrays() {
|
|||
renderer.drawVertices(primType, std::span(vertices).first(vertexCount));
|
||||
}
|
||||
|
||||
PicaVertex GPU::getImmediateModeVertex() {
|
||||
PicaVertex v;
|
||||
PICA::Vertex GPU::getImmediateModeVertex() {
|
||||
PICA::Vertex v;
|
||||
const int totalAttrCount = (regs[PICA::InternalRegs::VertexShaderAttrNum] & 0xf) + 1;
|
||||
|
||||
// Copy immediate mode attributes to vertex shader unit
|
||||
|
|
|
@ -188,7 +188,7 @@ void GPU::writeInternalReg(u32 index, u32 value, u32 mask) {
|
|||
|
||||
immediateModeAttributes[immediateModeAttrIndex++] = attr;
|
||||
if (immediateModeAttrIndex == totalAttrCount) {
|
||||
PicaVertex v = getImmediateModeVertex();
|
||||
PICA::Vertex v = getImmediateModeVertex();
|
||||
immediateModeAttrIndex = 0;
|
||||
immediateModeVertices[immediateModeVertIndex++] = v;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue