mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
more info in the vertex loader debug display
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2128 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
60b25def18
commit
1d0e8ddf84
@ -700,17 +700,35 @@ void VertexLoader::SetVAT(u32 _group0, u32 _group1, u32 _group2)
|
||||
m_VtxAttr.texCoord[7].Frac = vat.g2.Tex7Frac;
|
||||
};
|
||||
|
||||
void VertexLoader::AppendToString(std::string *dest) {
|
||||
void VertexLoader::AppendToString(std::string *dest)
|
||||
{
|
||||
dest->reserve(150);
|
||||
static const char *posMode[4] = {
|
||||
"Invalid",
|
||||
"Direct",
|
||||
"Idx8",
|
||||
"Idx16",
|
||||
"Inv",
|
||||
"Dir",
|
||||
"I8 ",
|
||||
"I16",
|
||||
};
|
||||
static const char *posFormats[5] = {
|
||||
"u8", "s8", "u16", "s16", "flt",
|
||||
"u8 ", "s8 ", "u16", "s16", "flt",
|
||||
};
|
||||
dest->append(StringFromFormat("sz: %i skin: %i Pos: %i %s %s Nrm: %i %s %s - %i vtx\n",
|
||||
m_VertexSize, m_VtxDesc.PosMatIdx, m_VtxAttr.PosElements ? 3 : 2, posMode[m_VtxDesc.Position], posFormats[m_VtxAttr.PosFormat],
|
||||
m_VtxAttr.NormalElements, posMode[m_VtxDesc.Normal], posFormats[m_VtxAttr.NormalFormat], m_numLoadedVertices));
|
||||
dest->append(StringFromFormat("%ib skin: %i P: %i %s %s ",
|
||||
m_VertexSize, m_VtxDesc.PosMatIdx,
|
||||
m_VtxAttr.PosElements ? 3 : 2, posMode[m_VtxDesc.Position], posFormats[m_VtxAttr.PosFormat]));
|
||||
dest->append(StringFromFormat("Nrm: %i %s %s ",
|
||||
m_VtxAttr.NormalElements, posMode[m_VtxDesc.Normal], posFormats[m_VtxAttr.NormalFormat]));
|
||||
|
||||
int tex_mode[8] = {
|
||||
m_VtxDesc.Tex0Coord, m_VtxDesc.Tex1Coord, m_VtxDesc.Tex2Coord, m_VtxDesc.Tex3Coord,
|
||||
m_VtxDesc.Tex4Coord, m_VtxDesc.Tex5Coord, m_VtxDesc.Tex6Coord, m_VtxDesc.Tex7Coord
|
||||
};
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
if (tex_mode[i])
|
||||
{
|
||||
dest->append(StringFromFormat("T%i: %i %s %s ",
|
||||
i, m_VtxAttr.texCoord[i].Elements, posMode[tex_mode[i]], posFormats[m_VtxAttr.texCoord[i].Format]));
|
||||
}
|
||||
}
|
||||
dest->append(StringFromFormat(" - %i v\n", m_numLoadedVertices));
|
||||
}
|
||||
|
@ -97,9 +97,8 @@ private:
|
||||
|
||||
void WriteCall(TPipelineFunction);
|
||||
|
||||
void WriteGetVariable(int bits, Gen::OpArg, void*);
|
||||
|
||||
void WriteSetVariable(int bits, void*, Gen::OpArg);
|
||||
void WriteGetVariable(int bits, Gen::OpArg dest, void *address);
|
||||
void WriteSetVariable(int bits, void *address, Gen::OpArg dest);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user