transpose

Transposes the specified input matrix.

ret transpose(x)

 

Parameters

ItemDescription

x

[in] The specified matrix.

 

Return Value

The transposed value of the x parameter.

Remarks

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

Type Description

Name Template Type Component Type Size
xmatrix float, int, bool any
retmatrix 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 ModelSupported
Shader Model 1 (DirectX HLSL) and higher shader modelsyes

 

See also

Intrinsic Functions (DirectX HLSL)

 

 

Show: