mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 15:48:51 +00:00
VertexLoader: inline destionation buffer
This commit is contained in:
parent
c613868f57
commit
0b97b33ceb
4 changed files with 29 additions and 7 deletions
|
@ -132,11 +132,17 @@ __forceinline u8* DataGetPosition()
|
|||
return g_pVideoData;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
__forceinline void DataWrite(u8* &dst, T data)
|
||||
{
|
||||
*(T*)dst = data;
|
||||
dst += sizeof(T);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
__forceinline void DataWrite(T data)
|
||||
{
|
||||
*(T*)VertexManager::s_pCurBufferPointer = data;
|
||||
VertexManager::s_pCurBufferPointer += sizeof(T);
|
||||
DataWrite(VertexManager::s_pCurBufferPointer, data);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue