GS: Remove GSVertexList

It doesn't appear to be used anywhere.
This commit is contained in:
Stenzek 2023-04-16 14:53:59 +10:00 committed by refractionpcsx2
parent ef9f0cf635
commit d1f62ca9bf
5 changed files with 0 additions and 108 deletions

View File

@ -566,7 +566,6 @@ set(pcsx2GSHeaders
GS/Renderers/Common/GSRenderer.h
GS/Renderers/Common/GSTexture.h
GS/Renderers/Common/GSVertex.h
GS/Renderers/Common/GSVertexList.h
GS/Renderers/Common/GSVertexTrace.h
GS/Renderers/Null/GSRendererNull.h
GS/Renderers/HW/GSHwHack.h

View File

@ -1,17 +0,0 @@
/* PCSX2 - PS2 Emulator for PCs
* Copyright (C) 2002-2021 PCSX2 Dev Team
*
* PCSX2 is free software: you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with PCSX2.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "PrecompiledHeader.h"
#include "GSVertexList.h"

View File

@ -1,82 +0,0 @@
/* PCSX2 - PS2 Emulator for PCs
* Copyright (C) 2002-2021 PCSX2 Dev Team
*
* PCSX2 is free software: you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with PCSX2.
* If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
template <class Vertex>
class GSVertexList
{
void* m_base;
Vertex* m_v[3];
int m_count;
public:
GSVertexList()
: m_count(0)
{
m_base = _aligned_malloc(sizeof(Vertex) * std::size(m_v), 32);
for (size_t i = 0; i < std::size(m_v); i++)
{
m_v[i] = &((Vertex*)m_base)[i];
}
}
virtual ~GSVertexList()
{
_aligned_free(m_base);
}
void RemoveAll()
{
m_count = 0;
}
__forceinline Vertex& AddTail()
{
ASSERT(m_count < 3);
return *m_v[m_count++];
}
__forceinline void RemoveAt(int pos, int keep)
{
if (keep == 1)
{
Vertex* tmp = m_v[pos + 0];
m_v[pos + 0] = m_v[pos + 1];
m_v[pos + 1] = tmp;
}
else if (keep == 2)
{
Vertex* tmp = m_v[pos + 0];
m_v[pos + 0] = m_v[pos + 1];
m_v[pos + 1] = m_v[pos + 2];
m_v[pos + 2] = tmp;
}
m_count = pos + keep;
}
__forceinline void GetAt(int i, Vertex& v)
{
v = *m_v[i];
}
int GetCount()
{
return m_count;
}
};

View File

@ -311,7 +311,6 @@
<ClCompile Include="GS\Renderers\SW\GSTextureSW.cpp" />
<ClCompile Include="GS\GSUtil.cpp" />
<ClCompile Include="GS\GSVector.cpp" />
<ClCompile Include="GS\Renderers\Common\GSVertexList.cpp" />
<ClCompile Include="GS\Renderers\SW\GSVertexSW.cpp" />
<ClCompile Include="GS\Renderers\Common\GSVertexTrace.cpp" />
<ClCompile Include="GS\Renderers\Common\GSVertexTraceFMM.cpp" />
@ -646,7 +645,6 @@
<ClInclude Include="GS\GSVector8.h" />
<ClInclude Include="GS\Renderers\Common\GSVertex.h" />
<ClInclude Include="GS\Renderers\HW\GSVertexHW.h" />
<ClInclude Include="GS\Renderers\Common\GSVertexList.h" />
<ClInclude Include="GS\Renderers\SW\GSVertexSW.h" />
<ClInclude Include="GS\Renderers\Common\GSVertexTrace.h" />
<ClInclude Include="GS\GSXXH.h" />

View File

@ -1133,9 +1133,6 @@
<ClCompile Include="GS\Renderers\Common\GSVertexTraceFMM.cpp">
<Filter>System\Ps2\GS\Renderers\Common</Filter>
</ClCompile>
<ClCompile Include="GS\Renderers\Common\GSVertexList.cpp">
<Filter>System\Ps2\GS\Renderers\Common</Filter>
</ClCompile>
<ClCompile Include="GS\Renderers\Common\GSFunctionMap.cpp">
<Filter>System\Ps2\GS\Renderers\Common</Filter>
</ClCompile>
@ -2020,9 +2017,6 @@
<ClInclude Include="GS\Renderers\Common\GSVertexTrace.h">
<Filter>System\Ps2\GS\Renderers\Common</Filter>
</ClInclude>
<ClInclude Include="GS\Renderers\Common\GSVertexList.h">
<Filter>System\Ps2\GS\Renderers\Common</Filter>
</ClInclude>
<ClInclude Include="GS\Renderers\Common\GSVertex.h">
<Filter>System\Ps2\GS\Renderers\Common</Filter>
</ClInclude>