mirror of https://github.com/PCSX2/pcsx2.git
GS: Improve STQ loggin in draw dumps
This commit is contained in:
parent
6816f640e2
commit
25737a1a46
|
@ -495,7 +495,11 @@ void GSState::DumpVertices(const std::string& filename)
|
||||||
file << uv_U << DEL << uv_V;
|
file << uv_U << DEL << uv_V;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
file << v.ST.S << "(" << std::bit_cast<u32>(v.ST.S) << ")" << DEL << v.ST.T << "(" << std::bit_cast<u32>(v.ST.T) << ")" << DEL << v.RGBAQ.Q << "(" << std::bit_cast<u32>(v.RGBAQ.Q) << ")";
|
{
|
||||||
|
float x = (v.ST.S / v.RGBAQ.Q) * (1 << m_context->TEX0.TW);
|
||||||
|
float y = (v.ST.T / v.RGBAQ.Q) * (1 << m_context->TEX0.TH);
|
||||||
|
file << v.ST.S << "(" << std::hex << std::bit_cast<u32>(v.ST.S) << ")" << DEL << v.ST.T << "(" << std::hex << std::bit_cast<u32>(v.ST.T) << ")" << DEL << v.RGBAQ.Q << "(" << std::hex << std::bit_cast<u32>(v.RGBAQ.Q) << ") - " << x << "," << y;
|
||||||
|
}
|
||||||
|
|
||||||
file << std::endl;
|
file << std::endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue