Disable resolution scale options when dynamic resolution is enabled
このコミットが含まれているのは:
1 親
aa655ce8c1
コミット
5f3d78bb82
7ファイル変更
+38
-9
検索条件に一致するファイルはありません
@@ -11,6 +11,7 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Constants\Error.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Constants\Event.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Converters\BoolConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Converters\RenderingPauseConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Converters\ResolutionScaleConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Services\DebugAnalyticsService.cs" />
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace ComputeSharp.SwapChain.Core.Converters;
|
||||
|
||||
/// <summary>
|
||||
/// A class with some static converters for <see cref="bool"/> values.
|
||||
/// </summary>
|
||||
public static class BoolConverter
|
||||
{
|
||||
/// <summary>
|
||||
/// Negates an input <see cref="bool"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="bool"/> value to negate.</param>
|
||||
/// <returns>The negated value of <paramref name="value"/>.</returns>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static bool Not(bool value)
|
||||
{
|
||||
return !value;
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ public static class RenderingPauseConverter
|
||||
/// <summary>
|
||||
/// Gets a symbol for an input rendering state.
|
||||
/// </summary>
|
||||
/// <param name="value">Whether or not the rendering is currently paaused.</param>
|
||||
/// <param name="value">Whether or not the rendering is currently paused.</param>
|
||||
/// <returns>A symbol representing the next action for the rendering.</returns>
|
||||
public static Symbol ConvertPausedToSymbol(bool value)
|
||||
{
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする