using Microsoft.UI.Xaml.Controls; namespace ComputeSharp.SwapChain.WinUI.Converters { /// /// A class with some static converters for rendering state. /// public static class RenderingPauseConverter { /// /// Gets a symbol for an input rendering state. /// /// Whether or not the rendering is currently paaused. /// A symbol representing the next action for the rendering. public static Symbol ConvertPausedToSymbol(bool value) { return value ? Symbol.Play : Symbol.Pause; } } }