GS: Improve STQ loggin in draw dumps

This commit is contained in:
refractionpcsx2 2024-04-23 11:07:20 +01:00
parent 6816f640e2
commit 25737a1a46
1 changed files with 5 additions and 1 deletions

View File

@ -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;
} }