From 2573bc7393afd79a720793aa26edbd64be01377b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= Date: Mon, 23 Sep 2024 17:45:33 +0100 Subject: [PATCH] Fix matrix cast in AVX --- include/hlsl++/dependent.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/hlsl++/dependent.h b/include/hlsl++/dependent.h index de18de4..34c2702 100644 --- a/include/hlsl++/dependent.h +++ b/include/hlsl++/dependent.h @@ -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;