Skip to content

Commit

Permalink
Merge pull request #1 from mrange/vectorized-minmax-superfix
Browse files Browse the repository at this point in the history
Vectorized minmax superfix
  • Loading branch information
mbjarland authored Nov 26, 2024
2 parents 1020115 + 3d19b51 commit d6b9256
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

# Apple
.DS_Store

# User-specific files
*.suo
*.user
Expand Down Expand Up @@ -221,7 +224,7 @@ ClientBin/
*.publishsettings
orleans.codegen.cs

# Including strong name files can present a security risk
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk

Expand Down Expand Up @@ -317,7 +320,7 @@ __pycache__/
# OpenCover UI analysis results
OpenCover/

# Azure Stream Analytics local run output
# Azure Stream Analytics local run output
ASALocalRun/

# MSBuild Binary and Structured Log
Expand All @@ -326,6 +329,6 @@ ASALocalRun/
# NVidia Nsight GPU debugger configuration file
*.nvuser

# MFractors (Xamarin productivity tool) working folder
# MFractors (Xamarin productivity tool) working folder
.mfractor/
/tests/TestFiles
4 changes: 3 additions & 1 deletion src/SharpGLTF.Core/Schema2/VectorMinMax.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if NET6_0_OR_GREATER
using System;
using System.Numerics;
using System.Runtime.Intrinsics;
Expand Down Expand Up @@ -307,4 +308,5 @@ private static unsafe void ProcessRemainingElements(float* ptr, int start, int l
}
}
}
}
}
#endif
6 changes: 4 additions & 2 deletions src/SharpGLTF.Core/Schema2/gltf.Accessors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ protected override IEnumerable<ExtraProperties> GetLogicalChildren()
return base.GetLogicalChildren().ConcatElements(_sparse);
}

#if NET6_0_OR_GREATER
public void UpdateBounds()
{
this._min.Clear();
Expand All @@ -173,8 +174,8 @@ public void UpdateBounds()
_max.Add(max[i]);
}
}

public void UpdateBoundsOld()
#else
public void UpdateBounds()
{
this._min.Clear();
this._max.Clear();
Expand Down Expand Up @@ -209,6 +210,7 @@ public void UpdateBoundsOld()
}
}
}
#endif

#endregion

Expand Down
4 changes: 0 additions & 4 deletions src/SharpGLTF.Core/SharpGLTF.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,4 @@
</None>
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Numerics.Tensors" Version="8.0.0" />
</ItemGroup>

</Project>
Binary file removed src/SharpGLTF.Toolkit/.DS_Store
Binary file not shown.
Binary file removed src/SharpGLTF.Toolkit/Geometry/.DS_Store
Binary file not shown.

0 comments on commit d6b9256

Please sign in to comment.