using System; #if SOURCE_GENERATOR using static Windows.Win32.Graphics.Direct2D.D2D1_PIXEL_OPTIONS; #else using static ComputeSharp.Win32.D2D1_PIXEL_OPTIONS; #endif namespace ComputeSharp.D2D1; /// /// Indicates how the sampling of a D2D1 pixel shader will be restricted. /// /// /// This type exposes the available values in . /// [Flags] public enum D2D1PixelOptions { /// /// The pixel shader is not restricted in its sampling. /// None = (int)D2D1_PIXEL_OPTIONS_NONE, /// /// The pixel shader samples inputs only at the same scene coordinate as the output pixel /// and returns transparent black whenever the input pixels are also transparent black. /// TrivialSampling = (int)D2D1_PIXEL_OPTIONS_TRIVIAL_SAMPLING }