summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader_Normal.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-12-13 10:57:46 +0100
committerdegasus <wickmarkus@web.de>2014-12-21 14:13:04 +0100
commit7c486a8c243c3bb223b1d31aab34bf039c6a02a1 (patch)
tree741f00ba732722c97c0f51ecda9bb447648c1492 /Source/Core/VideoCommon/VertexLoader_Normal.cpp
parent7edf6ec4e4506be5bf575eee5f33287be19ae372 (diff)
VertexLoader: Add a VertexLoader pointer to each function call
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Normal.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader_Normal.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_Normal.cpp b/Source/Core/VideoCommon/VertexLoader_Normal.cpp
index 1e428b66a2..70081ead11 100644
--- a/Source/Core/VideoCommon/VertexLoader_Normal.cpp
+++ b/Source/Core/VideoCommon/VertexLoader_Normal.cpp
@@ -57,7 +57,7 @@ __forceinline void ReadIndirect(const T* data)
template <typename T, int N>
struct Normal_Direct
{
- static void LOADERDECL function()
+ static void LOADERDECL function(VertexLoader* loader)
{
auto const source = reinterpret_cast<const T*>(DataGetPosition());
ReadIndirect<T, N * 3>(source);
@@ -81,7 +81,7 @@ __forceinline void Normal_Index_Offset()
template <typename I, typename T, int N>
struct Normal_Index
{
- static void LOADERDECL function()
+ static void LOADERDECL function(VertexLoader* loader)
{
Normal_Index_Offset<I, T, N, 0>();
}
@@ -92,7 +92,7 @@ struct Normal_Index
template <typename I, typename T>
struct Normal_Index_Indices3
{
- static void LOADERDECL function()
+ static void LOADERDECL function(VertexLoader* loader)
{
Normal_Index_Offset<I, T, 1, 0>();
Normal_Index_Offset<I, T, 1, 1>();
@@ -106,7 +106,7 @@ struct Normal_Index_Indices3
template <typename T, int N>
struct Normal_Direct_SSSE3
{
- static void LOADERDECL function()
+ static void LOADERDECL function(VertexLoader* loader)
{
const T* pData = reinterpret_cast<const T*>(DataGetPosition());
const float frac = 1. / float(1u << (sizeof(T) * 8 - std::is_signed<T>::value - 1));
@@ -136,7 +136,7 @@ __forceinline void Normal_Index_Offset_SSSE3()
template <typename I, typename T, int N>
struct Normal_Index_SSSE3
{
- static void LOADERDECL function()
+ static void LOADERDECL function(VertexLoader* loader)
{
Normal_Index_Offset_SSSE3<I, T, N, 0>();
}
@@ -147,7 +147,7 @@ struct Normal_Index_SSSE3
template <typename I, typename T>
struct Normal_Index_Indices3_SSSE3
{
- static void LOADERDECL function()
+ static void LOADERDECL function(VertexLoader* loader)
{
Normal_Index_Offset_SSSE3<I, T, 1, 0>();
Normal_Index_Offset_SSSE3<I, T, 1, 1>();