mirror of https://github.com/PCSX2/pcsx2.git
GS: Remove GSVertexList
It doesn't appear to be used anywhere.
This commit is contained in:
parent
ef9f0cf635
commit
d1f62ca9bf
|
@ -566,7 +566,6 @@ set(pcsx2GSHeaders
|
||||||
GS/Renderers/Common/GSRenderer.h
|
GS/Renderers/Common/GSRenderer.h
|
||||||
GS/Renderers/Common/GSTexture.h
|
GS/Renderers/Common/GSTexture.h
|
||||||
GS/Renderers/Common/GSVertex.h
|
GS/Renderers/Common/GSVertex.h
|
||||||
GS/Renderers/Common/GSVertexList.h
|
|
||||||
GS/Renderers/Common/GSVertexTrace.h
|
GS/Renderers/Common/GSVertexTrace.h
|
||||||
GS/Renderers/Null/GSRendererNull.h
|
GS/Renderers/Null/GSRendererNull.h
|
||||||
GS/Renderers/HW/GSHwHack.h
|
GS/Renderers/HW/GSHwHack.h
|
||||||
|
|
|
@ -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"
|
|
|
@ -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;
|
|
||||||
}
|
|
||||||
};
|
|
|
@ -311,7 +311,6 @@
|
||||||
<ClCompile Include="GS\Renderers\SW\GSTextureSW.cpp" />
|
<ClCompile Include="GS\Renderers\SW\GSTextureSW.cpp" />
|
||||||
<ClCompile Include="GS\GSUtil.cpp" />
|
<ClCompile Include="GS\GSUtil.cpp" />
|
||||||
<ClCompile Include="GS\GSVector.cpp" />
|
<ClCompile Include="GS\GSVector.cpp" />
|
||||||
<ClCompile Include="GS\Renderers\Common\GSVertexList.cpp" />
|
|
||||||
<ClCompile Include="GS\Renderers\SW\GSVertexSW.cpp" />
|
<ClCompile Include="GS\Renderers\SW\GSVertexSW.cpp" />
|
||||||
<ClCompile Include="GS\Renderers\Common\GSVertexTrace.cpp" />
|
<ClCompile Include="GS\Renderers\Common\GSVertexTrace.cpp" />
|
||||||
<ClCompile Include="GS\Renderers\Common\GSVertexTraceFMM.cpp" />
|
<ClCompile Include="GS\Renderers\Common\GSVertexTraceFMM.cpp" />
|
||||||
|
@ -646,7 +645,6 @@
|
||||||
<ClInclude Include="GS\GSVector8.h" />
|
<ClInclude Include="GS\GSVector8.h" />
|
||||||
<ClInclude Include="GS\Renderers\Common\GSVertex.h" />
|
<ClInclude Include="GS\Renderers\Common\GSVertex.h" />
|
||||||
<ClInclude Include="GS\Renderers\HW\GSVertexHW.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\SW\GSVertexSW.h" />
|
||||||
<ClInclude Include="GS\Renderers\Common\GSVertexTrace.h" />
|
<ClInclude Include="GS\Renderers\Common\GSVertexTrace.h" />
|
||||||
<ClInclude Include="GS\GSXXH.h" />
|
<ClInclude Include="GS\GSXXH.h" />
|
||||||
|
|
|
@ -1133,9 +1133,6 @@
|
||||||
<ClCompile Include="GS\Renderers\Common\GSVertexTraceFMM.cpp">
|
<ClCompile Include="GS\Renderers\Common\GSVertexTraceFMM.cpp">
|
||||||
<Filter>System\Ps2\GS\Renderers\Common</Filter>
|
<Filter>System\Ps2\GS\Renderers\Common</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="GS\Renderers\Common\GSVertexList.cpp">
|
|
||||||
<Filter>System\Ps2\GS\Renderers\Common</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="GS\Renderers\Common\GSFunctionMap.cpp">
|
<ClCompile Include="GS\Renderers\Common\GSFunctionMap.cpp">
|
||||||
<Filter>System\Ps2\GS\Renderers\Common</Filter>
|
<Filter>System\Ps2\GS\Renderers\Common</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
@ -2020,9 +2017,6 @@
|
||||||
<ClInclude Include="GS\Renderers\Common\GSVertexTrace.h">
|
<ClInclude Include="GS\Renderers\Common\GSVertexTrace.h">
|
||||||
<Filter>System\Ps2\GS\Renderers\Common</Filter>
|
<Filter>System\Ps2\GS\Renderers\Common</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="GS\Renderers\Common\GSVertexList.h">
|
|
||||||
<Filter>System\Ps2\GS\Renderers\Common</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="GS\Renderers\Common\GSVertex.h">
|
<ClInclude Include="GS\Renderers\Common\GSVertex.h">
|
||||||
<Filter>System\Ps2\GS\Renderers\Common</Filter>
|
<Filter>System\Ps2\GS\Renderers\Common</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
|
Loading…
Reference in New Issue