This file contains hidden or 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
/// <summary> | |
/// Gets a shared semaphore to avoid loading multiple Win2D resources at the same time | |
/// </summary> | |
private static readonly SemaphoreSlim Win2DSemaphore = new SemaphoreSlim(1); | |
/// <summary> | |
/// Creates an effect brush that's similar to the official Acrylic brush in the Fall Creator's Update. | |
/// The pipeline uses the following effects: HostBackdropBrush > <see cref="LuminanceToAlphaEffect"/> > | |
/// <see cref="OpacityEffect"/> > <see cref="BlendEffect"/> > <see cref="ArithmeticCompositeEffect"/> > | |
/// <see cref="ColorSourceEffect"/> > <see cref="BorderEffect"/> with customizable blend factors for each couple of layers |
NewerOlder