summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader_Normal.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2014-12-22 03:02:02 -0600
committerRyan Houdek <Sonicadvance1@gmail.com>2014-12-22 03:02:02 -0600
commit5af426df33c744870d7c232662bed49f1de694d0 (patch)
treecea8ca1b7459079107832ec0ec771ab9ca144a85 /Source/Core/VideoCommon/VertexLoader_Normal.cpp
parenta00aa1a7703aa985274e89bde4065f4a376530f3 (diff)
parent1efd00227d3c38458d44193c4aa554f70a3b9c55 (diff)
Merge pull request #1713 from degasus/vertex-loader
virtual vertex loader
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>();