VertexLoader: inline destionation buffer

This commit is contained in:
degasus
2014-01-21 19:23:07 +01:00
parent c613868f57
commit 0b97b33ceb
4 changed files with 29 additions and 7 deletions

View File

@ -48,12 +48,15 @@ template <typename T, int N>
__forceinline void ReadIndirect(const T* data)
{
static_assert(3 == N || 9 == N, "N is only sane as 3 or 9!");
auto dst = VertexManager::s_pCurBufferPointer;
for (int i = 0; i != N; ++i)
{
DataWrite(FracAdjust(Common::FromBigEndian(data[i])));
DataWrite(dst, FracAdjust(Common::FromBigEndian(data[i])));
}
VertexManager::s_pCurBufferPointer = dst;
LOG_NORM();
}