Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1338,6 +1338,13 @@ public static unsafe bool Invert(Matrix4x4 matrix, out Matrix4x4 result)

static unsafe bool SseImpl(Matrix4x4 matrix, out Matrix4x4 result)
{
// Redundant test so we won't prejit remainder of this method
// on platforms without SSE.
if (!Sse.IsSupported)
{
throw new PlatformNotSupportedException();
}

// This implementation is based on the DirectX Math Library XMMInverse method
// https://github.com/microsoft/DirectXMath/blob/master/Inc/DirectXMathMatrix.inl

Expand Down