Skip to content

Commit 0d123f5

Browse files
author
devsh
committed
fix C++ side hlsl::tranpose
1 parent 36cd408 commit 0d123f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/nbl/builtin/hlsl/cpp_compat/impl/intrinsics_impl.hlsl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ struct transpose_helper<Matrix>
319319
static transposed_t __call(NBL_CONST_REF_ARG(Matrix) m)
320320
{
321321
using traits = matrix_traits<Matrix>;
322-
return reinterpret_cast<transposed_t&>(glm::transpose<traits::ColumnCount, traits::RowCount, traits::scalar_type, glm::qualifier::highp>(reinterpret_cast<typename Matrix::Base const&>(m)));
322+
// GLM's transpose function signature specializes in terms of the input argument
323+
return reinterpret_cast<transposed_t&>(glm::transpose<traits::RowCount,traits::ColumnCount,traits::scalar_type,glm::qualifier::highp>(reinterpret_cast<typename Matrix::Base const&>(m)));
323324
}
324325
};
325326
template<typename Vector>

0 commit comments

Comments
 (0)