Skip to content

Commit

Permalink
Fix matrix cast in AVX
Browse files Browse the repository at this point in the history
  • Loading branch information
redorav committed Sep 23, 2024
1 parent b3af868 commit 2573bc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/hlsl++/dependent.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ namespace hlslpp
hlslpp_inline float3x3::float3x3(const float4x4& m) hlslpp_noexcept
{
#if defined(HLSLPP_SIMD_REGISTER_256)
vec0 = _hlslpp256_high_ps(m.vec0);
vec1 = _hlslpp256_low_ps(m.vec0);
vec2 = _hlslpp256_high_ps(m.vec1);
vec0 = _hlslpp256_low_ps(m.vec0);
vec1 = _hlslpp256_high_ps(m.vec0);
vec2 = _hlslpp256_low_ps(m.vec1);
#else
vec0 = m.vec0;
vec1 = m.vec1;
Expand Down

0 comments on commit 2573bc7

Please sign in to comment.