diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-03-10 18:48:26 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2021-05-07 15:42:13 -0700 |
| commit | b6149623aae83ff278b7c3de9afd8d2e9bda94a3 (patch) | |
| tree | ded51ced8c3a1335ea5644028ea85e136dd8bed2 /Source/Core/VideoCommon/VertexLoaderBase.cpp | |
| parent | bc7da726a5b8cc8e9c229a62796993a9e1119362 (diff) | |
Remove VertexLoader::ToString
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderBase.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderBase.cpp b/Source/Core/VideoCommon/VertexLoaderBase.cpp index 483d46dd08..604ad1f04b 100644 --- a/Source/Core/VideoCommon/VertexLoaderBase.cpp +++ b/Source/Core/VideoCommon/VertexLoaderBase.cpp @@ -73,46 +73,6 @@ void VertexLoaderBase::SetVAT(const VAT& vat) m_VtxAttr.texCoord[7].Frac = vat.g2.Tex7Frac; }; -std::string VertexLoaderBase::ToString() const -{ - std::string dest; - dest.reserve(250); - - dest += GetName(); - dest += ": "; - - dest += fmt::format("{}b skin: {} P: {} {}-{} ", m_VertexSize, m_VtxDesc.low.PosMatIdx, - m_VtxAttr.PosElements, m_VtxDesc.low.Position, m_VtxAttr.PosFormat); - - if (m_VtxDesc.low.Normal != VertexComponentFormat::NotPresent) - { - dest += fmt::format("Nrm: {} {}-{} ", m_VtxAttr.NormalElements, m_VtxDesc.low.Normal, - m_VtxAttr.NormalFormat); - } - - for (size_t i = 0; i < g_main_cp_state.vtx_desc.low.Color.Size(); i++) - { - if (g_main_cp_state.vtx_desc.low.Color[i] == VertexComponentFormat::NotPresent) - continue; - - const auto& color = m_VtxAttr.color[i]; - dest += fmt::format("C{}: {} {}-{} ", i, color.Elements, g_main_cp_state.vtx_desc.low.Color[i], - color.Comp); - } - - for (size_t i = 0; i < g_main_cp_state.vtx_desc.high.TexCoord.Size(); i++) - { - if (g_main_cp_state.vtx_desc.high.TexCoord[i] == VertexComponentFormat::NotPresent) - continue; - - const auto& tex_coord = m_VtxAttr.texCoord[i]; - dest += fmt::format("T{}: {} {}-{} ", i, tex_coord.Elements, - g_main_cp_state.vtx_desc.high.TexCoord[i], tex_coord.Format); - } - dest += fmt::format(" - {} v", m_numLoadedVertices); - return dest; -} - // a hacky implementation to compare two vertex loaders class VertexLoaderTester : public VertexLoaderBase { @@ -178,7 +138,6 @@ public: m_numLoadedVertices += count; return count_a; } - std::string GetName() const override { return "CompareLoader"; } bool IsInitialized() override { return m_initialized; } private: |
