transpose - HLSL
Microsoft DirectX 9.0 SDK Update (October 2004)

transpose - HLSL


Returns the transpose of the input matrix x. If the dimensions of the source matrix is p-rows x q-columns, the resulting matrix is q-columns x p-rows.

Syntax

ret transpose(x)

Where:

NameIn/OutTemplate TypeComponent TypeSize
xinmatrixfloat, int, boolany
retoutmatrixfloat, int, boolrows = same number of columns as input x, columns = same number of rows as input x

Minimum Shader Version

This intrinsic function is supported in the following (or above) shader versions:

Vertex ShaderPixel Shader
vs_1_1ps_1_1


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.