mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
VertexLoader: inline destionation buffer
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user