Remove WINDOWS_UWP leftover code paths

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-10 20:56:24 +02:00
1 親 33ec9f7570
コミット c1c196c7ce
13ファイル変更
-97

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

-8
ファイルの表示
@@ -1,16 +1,8 @@
using System;
#if WINDOWS_UWP
using Windows.UI.Xaml;
#else
using Microsoft.UI.Xaml;
#endif
using Windows.Foundation;
#if WINDOWS_UWP
namespace ComputeSharp.Uwp;
#else
namespace ComputeSharp.WinUI;
#endif
/// <inheritdoc cref="AnimatedComputeShaderPanel"/>
partial class AnimatedComputeShaderPanel
-10
ファイルの表示
@@ -1,19 +1,9 @@
using System;
#if WINDOWS_UWP
using ComputeSharp.Uwp.Helpers;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
#else
using ComputeSharp.WinUI.Helpers;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
#endif
#if WINDOWS_UWP
namespace ComputeSharp.Uwp;
#else
namespace ComputeSharp.WinUI;
#endif
/// <summary>
/// <para>
-8
ファイルの表示
@@ -1,16 +1,8 @@
using System;
#if WINDOWS_UWP
using Windows.UI.Xaml;
#else
using Microsoft.UI.Xaml;
#endif
using Windows.Foundation;
#if WINDOWS_UWP
namespace ComputeSharp.Uwp;
#else
namespace ComputeSharp.WinUI;
#endif
/// <inheritdoc cref="ComputeShaderPanel"/>
partial class ComputeShaderPanel
-10
ファイルの表示
@@ -1,19 +1,9 @@
using System;
#if WINDOWS_UWP
using ComputeSharp.Uwp.Helpers;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
#else
using ComputeSharp.WinUI.Helpers;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
#endif
#if WINDOWS_UWP
namespace ComputeSharp.Uwp;
#else
namespace ComputeSharp.WinUI;
#endif
/// <summary>
/// <para>
-4
ファイルの表示
@@ -1,10 +1,6 @@
using System;
#if WINDOWS_UWP
namespace ComputeSharp.Uwp;
#else
namespace ComputeSharp.WinUI;
#endif
/// <summary>
/// The arguments for the <see cref="AnimatedComputeShaderPanel.RenderingFailed"/> and <see cref="ComputeShaderPanel.RenderingFailed"/> events.
-4
ファイルの表示
@@ -5,11 +5,7 @@ using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using Win32 = TerraFX.Interop.Windows.Windows;
#if WINDOWS_UWP
namespace ComputeSharp.Uwp.Extensions;
#else
namespace ComputeSharp.WinUI.Extensions;
#endif
/// <summary>
/// A <see langword="class"/> with extensions for the <see cref="IDXGIAdapter"/> type.
-4
ファイルの表示
@@ -5,11 +5,7 @@ using System.Threading.Tasks;
#pragma warning disable CS0618
#if WINDOWS_UWP
namespace ComputeSharp.Uwp.Extensions;
#else
namespace ComputeSharp.WinUI.Extensions;
#endif
/// <summary>
/// A helper type for <see cref="SemaphoreSlim"/>.
-4
ファイルの表示
@@ -2,11 +2,7 @@ using System;
using System.Runtime.CompilerServices;
using System.Threading;
#if WINDOWS_UWP
namespace ComputeSharp.Uwp.Helpers;
#else
namespace ComputeSharp.WinUI.Helpers;
#endif
/// <summary>
/// A helper type that is responsible for applying dynamic resolution changes.
-8
ファイルの表示
@@ -3,17 +3,9 @@ using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Threading;
using ComputeSharp.Interop;
#if WINDOWS_UWP
using ComputeSharp.Uwp.Extensions;
#else
using ComputeSharp.WinUI.Extensions;
#endif
#if WINDOWS_UWP
namespace ComputeSharp.Uwp.Helpers;
#else
namespace ComputeSharp.WinUI.Helpers;
#endif
#pragma warning disable CS0420
-25
ファイルの表示
@@ -1,40 +1,21 @@
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
#if WINDOWS_UWP
using System.Runtime.InteropServices;
#endif
using System.Threading;
using ComputeSharp.Core.Extensions;
using ComputeSharp.Graphics.Helpers;
using ComputeSharp.Interop;
#if WINDOWS_UWP
using ComputeSharp.Uwp.Extensions;
#else
using ComputeSharp.WinUI.Extensions;
#endif
#if !WINDOWS_UWP
using Microsoft.UI.Dispatching;
using Microsoft.UI.Xaml.Controls;
#endif
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using TerraFX.Interop.WinRT;
#if WINDOWS_UWP
using Windows.Foundation;
using Windows.UI.Xaml.Controls;
using Windows.System;
#else
using Windows.Foundation;
using WinRT;
#endif
using Win32 = TerraFX.Interop.Windows.Windows;
#if WINDOWS_UWP
namespace ComputeSharp.Uwp.Helpers;
#else
namespace ComputeSharp.WinUI.Helpers;
#endif
/// <summary>
/// A type managing rendering on a target swap chain object.
@@ -243,17 +224,11 @@ internal sealed unsafe partial class SwapChainManager<TOwner> : ReferenceTracked
{
using ComPtr<IUnknown> swapChainPanel = default;
#if WINDOWS_UWP
swapChainPanel.Attach((IUnknown*)Marshal.GetIUnknownForObject(owner));
swapChainPanel.CopyTo(swapChainPanelNative).Assert();
#else
swapChainPanel.Attach((IUnknown*)((IWinRTObject)owner).NativeObject.GetRef());
swapChainPanel.CopyTo(
(Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(new Guid(0x63AAD0B8, 0x7C24, 0x40FF, 0x85, 0xA8, 0x64, 0x0D, 0x94, 0x4C, 0xC3, 0x25))),
(void**)swapChainPanelNative).Assert();
#endif
}
// Get the underlying ID3D12Device in use
-4
ファイルの表示
@@ -1,10 +1,6 @@
using System.Threading;
#if WINDOWS_UWP
namespace ComputeSharp.Uwp;
#else
namespace ComputeSharp.WinUI;
#endif
/// <summary>
/// An interface for a shader runner to be used with <see cref="ComputeShaderPanel"/>.
-4
ファイルの表示
@@ -1,10 +1,6 @@
using System;
#if WINDOWS_UWP
namespace ComputeSharp.Uwp;
#else
namespace ComputeSharp.WinUI;
#endif
/// <summary>
/// An interface for a shader runner to be used with <see cref="ComputeShaderPanel"/> or <see cref="AnimatedComputeShaderPanel"/>.
-4
ファイルの表示
@@ -1,10 +1,6 @@
using System;
#if WINDOWS_UWP
namespace ComputeSharp.Uwp;
#else
namespace ComputeSharp.WinUI;
#endif
/// <summary>
/// A simple <see cref="IShaderRunner"/> implementation powered by a supplied shader type.