Update 'determinant' intrinsic to use $square(H)Mat.

This is slightly simpler than having three separate overloads, and
provides the same results.

Change-Id: Icc7a749fd642f6d6a9e69b769494c566569ea8f4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/346262
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
John Stiles 2020-12-22 15:20:58 -05:00 committed by Skia Commit-Bot
parent 265064450f
commit f202babd6a
2 changed files with 1928 additions and 1978 deletions

File diff suppressed because it is too large Load Diff

View File

@ -180,12 +180,8 @@ half2x4 transpose(half4x2 m);
half4x2 transpose(half2x4 m); half4x2 transpose(half2x4 m);
half3x4 transpose(half4x3 m); half3x4 transpose(half4x3 m);
half4x3 transpose(half3x4 m); half4x3 transpose(half3x4 m);
float determinant(float2x2 m); float determinant($squareMat m);
float determinant(float3x3 m); half determinant($squareHMat m);
float determinant(float4x4 m);
half determinant(half2x2 m);
half determinant(half3x3 m);
half determinant(half4x4 m);
$squareMat inverse($squareMat m); $squareMat inverse($squareMat m);
$squareHMat inverse($squareHMat m); $squareHMat inverse($squareHMat m);
$bvec lessThan($vec x, $vec y); $bvec lessThan($vec x, $vec y);