transpose
Description
Matrix transpose.
Signature
/// Requires Capability Set 1: matrix<T, M, N> transpose<T, int N, int M>(matrix<T, N, M> x) where T : __BuiltinFloatingPointType; /// Requires Capability Set 2: matrix<T, M, N> transpose<T, int N, int M>(matrix<T, N, M> x) where T : __BuiltinIntegerType; /// Requires Capability Set 2: matrix<T, M, N> transpose<T, int N, int M>(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
Capability Set 1
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.
Capability Set 2
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.
metal
Available in all stages.
wgsl
Available in all stages.
spirv
Available in all stages.