Skip to content

Commit

Permalink
Fix compile error with template incantation
Browse files Browse the repository at this point in the history
  • Loading branch information
redorav committed Dec 23, 2023
1 parent 3ae1e2e commit 5bc7eb5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/hlsl++_vector_double_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,9 @@ namespace hlslpp
hlslpp_inline double3(const dswizzle3<X, Y, Z>& s)
{
#if defined(HLSLPP_SIMD_REGISTER_FLOAT8)
dswizzle3<X, Y, Z>::swizzle<X, Y, Z>(s.vec, vec);
dswizzle3<X, Y, Z>::template swizzle<X, Y, Z>(s.vec, vec);
#else
dswizzle3<X, Y, Z>::swizzle<X, Y, Z>(s.vec[0], s.vec[1], vec0, vec1);
dswizzle3<X, Y, Z>::template swizzle<X, Y, Z>(s.vec[0], s.vec[1], vec0, vec1);
#endif
}

Expand Down Expand Up @@ -530,9 +530,9 @@ namespace hlslpp
hlslpp_inline double4(const dswizzle4<X, Y, Z, W>& s)
{
#if defined(HLSLPP_SIMD_REGISTER_FLOAT8)
dswizzle4<X, Y, Z, W>::swizzle<X, Y, Z, W, 0, 1, 2, 3>(s.vec, vec);
dswizzle4<X, Y, Z, W>::template swizzle<X, Y, Z, W, 0, 1, 2, 3>(s.vec, vec);
#else
dswizzle4<X, Y, Z, W>::swizzle<X, Y, Z, W, 0, 1, 2, 3>(s.vec[0], s.vec[1], vec[0], vec[1]);
dswizzle4<X, Y, Z, W>::template swizzle<X, Y, Z, W, 0, 1, 2, 3>(s.vec[0], s.vec[1], vec[0], vec[1]);
#endif
}

Expand Down

0 comments on commit 5bc7eb5

Please sign in to comment.