transpose
Description
Matrix transpose.
Signature
matrix<T, M, N> transpose<T, N:int, M:int>(matrix<T, N, M> x) where T : __BuiltinFloatingPointType; matrix<T, M, N> transpose<T, N:int, M:int>(matrix<T, N, M> x) where T : __BuiltinIntegerType; matrix<T, M, N> transpose<T, N:int, M:int>(matrix<T, N, M> x) where T : __BuiltinLogicalType;
Generic Parameters
T: __BuiltinFloatingPointType
N : int
M : int
T: __BuiltinIntegerType
T: __BuiltinLogicalType
Parameters
x : matrix<T, N, M>
The matrix to transpose.
Return value
The transposed matrix.
Availability and Requirements
Defined for the following targets:
hlsl
Available in all stages.
glsl
Available in all stages.
cpp
Available in all stages.
cuda
Available in all stages.
wgsl
Available in all stages.
spirv
Available in all stages.