Returns the determinant of the specified floating-point, square matrix.

ret determinant(m)


Item Description
[in] The specified value.

Return Value

The floating-point, scalar value that represents the determinant of the m parameter.

Type Description

Name Template Type Component Type Size
m matrix float any (number of rows = number of columns)
ret scalar float 1

Minimum Shader Model

This function is supported in the following shader models.

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

See also

Intrinsic Functions (DirectX HLSL)