Transposes the specified input matrix.

ret transpose(x)


Item Description
[in] The specified matrix.

Return Value

The transposed value of the x parameter.


If the dimensions of the source matrix are rows columns, the resulting matrix is columns rows.

Type Description

Name Template Type Component Type Size
x matrix float, int, bool any
ret matrix float, int, bool rows = same number of columns as input x, columns = same number of rows as input x

Minimum Shader Model

This function is supported in the following shader models.

Shader Model Supported
Shader Model 1 (DirectX HLSL) and higher shader models yes

See also

Intrinsic Functions (DirectX HLSL)