-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimized bones passed into shaders to only be the ones actually used…
… by vertices.
- Loading branch information
1 parent
29eee19
commit 5b7b24f
Showing
7 changed files
with
79 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
|
||
namespace fin.data.sets { | ||
public class FinSortedSet<T>(Comparer<T> comparer) : IFinSet<T> { | ||
private readonly SortedSet<T> impl_ = new(comparer); | ||
|
||
public FinSortedSet() : this(Comparer<T>.Default) { } | ||
|
||
public FinSortedSet(Comparison<T> comparison) : this( | ||
Comparer<T>.Create(comparison)) { } | ||
|
||
public int Count => this.impl_.Count; | ||
|
||
public bool Contains(T value) => this.impl_.Contains(value); | ||
|
||
public void Clear() => this.impl_.Clear(); | ||
|
||
public bool Add(T value) => this.impl_.Add(value); | ||
public bool Remove(T value) => this.impl_.Remove(value); | ||
|
||
IEnumerator IEnumerable.GetEnumerator() => this.GetEnumerator(); | ||
public IEnumerator<T> GetEnumerator() => this.impl_.GetEnumerator(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters