Use explicit types everywhere

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-15 09:10:18 -07:00
1 親 27c629f3b4
コミット 16c0fc9aab
74ファイル変更
+455 -446

検索条件に一致するファイルはありません

+8 -8
ファイルの表示
@@ -72,7 +72,7 @@ partial class AnimatedComputeShaderPanel
/// <inheritdoc cref="DependencyPropertyChangedCallback"/>
private static void OnShaderRunnerPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var @this = (AnimatedComputeShaderPanel)d;
AnimatedComputeShaderPanel @this = (AnimatedComputeShaderPanel)d;
if (@this.IsLoaded &&
!@this.IsPaused &&
@@ -109,8 +109,8 @@ partial class AnimatedComputeShaderPanel
/// <inheritdoc cref="DependencyPropertyChangedCallback"/>
private static void OnResolutionScalePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var @this = (AnimatedComputeShaderPanel)d;
var resolutionScale = (double)e.NewValue;
AnimatedComputeShaderPanel @this = (AnimatedComputeShaderPanel)d;
double resolutionScale = (double)e.NewValue;
@this.swapChainManager.QueueResolutionScaleChange(resolutionScale);
}
@@ -138,8 +138,8 @@ partial class AnimatedComputeShaderPanel
/// <inheritdoc cref="DependencyPropertyChangedCallback"/>
private static void OnIsDynamicResolutionEnabledPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var @this = (AnimatedComputeShaderPanel)d;
var isDynamicResolutionEnabled = (bool)e.NewValue;
AnimatedComputeShaderPanel @this = (AnimatedComputeShaderPanel)d;
bool isDynamicResolutionEnabled = (bool)e.NewValue;
@this.swapChainManager.QueueDynamicResolutionModeChange(isDynamicResolutionEnabled);
}
@@ -166,8 +166,8 @@ partial class AnimatedComputeShaderPanel
/// <inheritdoc cref="DependencyPropertyChangedCallback"/>
private static void OnIsVerticalSyncEnabledPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var @this = (AnimatedComputeShaderPanel)d;
var isVerticalSyncEnabled = (bool)e.NewValue;
AnimatedComputeShaderPanel @this = (AnimatedComputeShaderPanel)d;
bool isVerticalSyncEnabled = (bool)e.NewValue;
@this.swapChainManager.QueueVerticalSyncModeChange(isVerticalSyncEnabled);
}
@@ -193,7 +193,7 @@ partial class AnimatedComputeShaderPanel
/// <inheritdoc cref="DependencyPropertyChangedCallback"/>
private static void OnIsPausedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var @this = (AnimatedComputeShaderPanel)d;
AnimatedComputeShaderPanel @this = (AnimatedComputeShaderPanel)d;
if (@this.IsLoaded &&
(bool)e.NewValue is false &&
+8 -8
ファイルの表示
@@ -72,7 +72,7 @@ partial class ComputeShaderPanel
/// <inheritdoc cref="DependencyPropertyChangedCallback"/>
private static void OnFrameRequestQueueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var @this = (ComputeShaderPanel)d;
ComputeShaderPanel @this = (ComputeShaderPanel)d;
if (@this.IsLoaded &&
e.NewValue is IFrameRequestQueue frameRequestQueue &&
@@ -107,7 +107,7 @@ partial class ComputeShaderPanel
/// <inheritdoc cref="DependencyPropertyChangedCallback"/>
private static void OnShaderRunnerPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var @this = (ComputeShaderPanel)d;
ComputeShaderPanel @this = (ComputeShaderPanel)d;
if (@this.IsLoaded &&
@this.FrameRequestQueue is IFrameRequestQueue frameRequestQueue &&
@@ -144,8 +144,8 @@ partial class ComputeShaderPanel
/// <inheritdoc cref="DependencyPropertyChangedCallback"/>
private static void OnResolutionScalePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var @this = (ComputeShaderPanel)d;
var resolutionScale = (double)e.NewValue;
ComputeShaderPanel @this = (ComputeShaderPanel)d;
double resolutionScale = (double)e.NewValue;
@this.swapChainManager.QueueResolutionScaleChange(resolutionScale);
}
@@ -173,8 +173,8 @@ partial class ComputeShaderPanel
/// <inheritdoc cref="DependencyPropertyChangedCallback"/>
private static void OnIsDynamicResolutionEnabledPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var @this = (ComputeShaderPanel)d;
var isDynamicResolutionEnabled = (bool)e.NewValue;
ComputeShaderPanel @this = (ComputeShaderPanel)d;
bool isDynamicResolutionEnabled = (bool)e.NewValue;
@this.swapChainManager.QueueDynamicResolutionModeChange(isDynamicResolutionEnabled);
}
@@ -201,8 +201,8 @@ partial class ComputeShaderPanel
/// <inheritdoc cref="DependencyPropertyChangedCallback"/>
private static void OnIsVerticalSyncEnabledPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var @this = (ComputeShaderPanel)d;
var isVerticalSyncEnabled = (bool)e.NewValue;
ComputeShaderPanel @this = (ComputeShaderPanel)d;
bool isVerticalSyncEnabled = (bool)e.NewValue;
@this.swapChainManager.QueueVerticalSyncModeChange(isVerticalSyncEnabled);
}