Skip to content

Commit

Permalink
[PixImage] Fix comment of AddLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Mar 21, 2024
1 parent 89e5d12 commit 3b787e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Aardvark.Base.Tensors.CSharp/PixImage/PixImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public static void SetLoader(IPixLoader loader, int priority)
/// <summary>
/// Adds a PixImage loader.
/// Assigns a priority that is greater than the highest priority among existing loaders, resulting in a LIFO order.
/// If the loader already exists, the priority is not modified.
/// If the loader already exists, the priority is modified.
/// </summary>
/// <param name="loader">The loader to add.</param>
public static void AddLoader(IPixLoader loader)
Expand Down
4 changes: 4 additions & 0 deletions src/Tests/Aardvark.Base.Windows.Tests/PixLoaderTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ module PixLoaderTests =
priorities.Count |> should equal count
priorities.Get(PixImageDevil.Loader) |> should equal 1337

PixImage.AddLoader(PixImageDevil.Loader)
let priorities = PixImage.GetLoadersWithPriority()
priorities.Get(PixImageDevil.Loader) |> should equal 1338

PixImage.RemoveLoader(PixImageSharp.Loader)
PixImage.RemoveLoader(PixImageDevil.Loader)
PixImage.GetLoaders() |> Seq.length |> should equal (count - 2)
Expand Down

0 comments on commit 3b787e9

Please sign in to comment.