using System; using System.Diagnostics.CodeAnalysis; using ComputeSharp.D2D1.Interop; using Microsoft.Graphics.Canvas; #if WINDOWS_UWP namespace ComputeSharp.D2D1.Uwp; #else namespace ComputeSharp.D2D1.WinUI; #endif /// partial class PixelShaderEffect { /// /// Gets or sets the current value in use. /// public T ConstantBuffer { get => GetConstantBuffer(); set => SetConstantBuffer(in value); } /// /// Gets or sets the instance to use for the effect, if any. /// /// Thrown if the value is set to . [DisallowNull] public D2D1TransformMapper? TransformMapper { get => GetTransformMapper(); set => SetTransformMapper(value); } /// public bool CacheOutput { get => GetCacheOutput(); set => SetCacheOutput(value); } /// public CanvasBufferPrecision? BufferPrecision { get => GetBufferPrecision(); set => SetBufferPrecision(value); } /// public string? Name { get; set; } /// /// Gets the object associated with the current instance. /// public SourceCollection Sources { get; } /// /// Gets the object associated with the current instance. /// public ResourceTextureManagerCollection ResourceTextureManagers { get; } }