[PICA] More progress on attribute parsing

This commit is contained in:
wheremyfoodat
2022-09-22 19:17:19 +03:00
parent 434c840aeb
commit 39bfeda586
4 changed files with 45 additions and 21 deletions

View File

@@ -47,6 +47,11 @@ void GPU::writeInternalReg(u32 index, u32 value, u32 mask) {
if (value != 0) drawArrays(true);
break;
case AttribFormatHigh:
totalAttribCount = (value >> 28) + 1; // Total number of vertex attributes
fixedAttribMask = (value >> 16) & 0xfff; // Determines which vertex attributes are fixed for all vertices
break;
case VertexShaderTransferEnd:
if (value != 0) shaderUnit.vs.finalize();
break;