namespace ComputeSharp.SwapChain.Core.Converters;
///
/// A class with some static converters for resolution scale settings.
///
public static class ResolutionScaleConverter
{
///
/// Converts a resolution scale to a formatted string.
///
/// The input resolution scale (in percentage).
/// A formatted percentage string for .
public static string ConvertPercentageToFormattedString(int value)
{
return $"{value}%";
}
///
/// Converts a percentage value to a scaled value in the [0, 1] range.
///
/// The input percentage value to scale.
/// The input percentage scaled to the [0, 1] range.
public static double ConvertPercentageToScale(int value)
{
return value / 100.0;
}
}