Add necessary ifdefs to 'ComputeSharp'Uwp'
このコミットが含まれているのは:
1 親
4f389d3e93
コミット
59cdb512ac
15ファイル変更
+91
-1
検索条件に一致するファイルはありません
@@ -8,6 +8,7 @@
|
||||
<InternalsVisibleTo Include="ComputeSharp.D3D12MemoryAllocator, PublicKey=$(AssemblySignPublicKey)" />
|
||||
<InternalsVisibleTo Include="ComputeSharp.Dxc, PublicKey=$(AssemblySignPublicKey)" />
|
||||
<InternalsVisibleTo Include="ComputeSharp.Pix, PublicKey=$(AssemblySignPublicKey)" />
|
||||
<InternalsVisibleTo Include="ComputeSharp.Uwp, PublicKey=$(AssemblySignPublicKey)" />
|
||||
<InternalsVisibleTo Include="ComputeSharp.WinUI, PublicKey=$(AssemblySignPublicKey)" />
|
||||
<InternalsVisibleTo Include="ComputeSharp.D2D1, PublicKey=$(AssemblySignPublicKey)" />
|
||||
<InternalsVisibleTo Include="ComputeSharp.D2D1.WinUI, PublicKey=$(AssemblySignPublicKey)" />
|
||||
|
||||
@@ -1,8 +1,17 @@
|
||||
using System;
|
||||
#if !WINDOWS_UWP
|
||||
using Microsoft.UI.Xaml;
|
||||
#endif
|
||||
using Windows.Foundation;
|
||||
#if WINDOWS_UWP
|
||||
using Windows.UI.Xaml;
|
||||
#endif
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.WinUI;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc cref="AnimatedComputeShaderPanel"/>
|
||||
partial class AnimatedComputeShaderPanel
|
||||
|
||||
@@ -1,9 +1,19 @@
|
||||
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>
|
||||
|
||||
@@ -1,8 +1,17 @@
|
||||
using System;
|
||||
#if !WINDOWS_UWP
|
||||
using Microsoft.UI.Xaml;
|
||||
#endif
|
||||
using Windows.Foundation;
|
||||
#if WINDOWS_UWP
|
||||
using Windows.UI.Xaml;
|
||||
#endif
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.WinUI;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc cref="ComputeShaderPanel"/>
|
||||
partial class ComputeShaderPanel
|
||||
|
||||
@@ -1,9 +1,19 @@
|
||||
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>
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
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.
|
||||
|
||||
@@ -3,7 +3,11 @@ using ComputeSharp.Core.Extensions;
|
||||
using ComputeSharp.Graphics.Helpers;
|
||||
using ComputeSharp.Win32;
|
||||
|
||||
#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.
|
||||
|
||||
@@ -5,7 +5,11 @@ using System.Threading.Tasks;
|
||||
|
||||
#pragma warning disable CS0618, IDE0290
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.Uwp.Extensions;
|
||||
#else
|
||||
namespace ComputeSharp.WinUI.Extensions;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// A helper type for <see cref="SemaphoreSlim"/>.
|
||||
|
||||
@@ -2,7 +2,11 @@ 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.
|
||||
|
||||
@@ -3,9 +3,17 @@ 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
|
||||
|
||||
|
||||
@@ -5,14 +5,28 @@ 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
|
||||
using ComputeSharp.Win32;
|
||||
#if !WINDOWS_UWP
|
||||
using Microsoft.UI.Dispatching;
|
||||
using Microsoft.UI.Xaml.Controls;
|
||||
#endif
|
||||
using Windows.Foundation;
|
||||
#if WINDOWS_UWP
|
||||
using Windows.System;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
#endif
|
||||
using WinRT;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.Uwp.Helpers;
|
||||
#else
|
||||
namespace ComputeSharp.WinUI.Helpers;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// A type managing rendering on a target swap chain object.
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
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"/>.
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
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"/>.
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
using System;
|
||||
using ComputeSharp.Descriptors;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.WinUI;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// A simple <see cref="IShaderRunner"/> implementation powered by a supplied shader type.
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
|
||||
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
|
||||
<TargetPlatformMinVersion>10.0.18362.0</TargetPlatformMinVersion>
|
||||
<WindowsSdkPackageVersion>10.0.22621.37-preview</WindowsSdkPackageVersion>
|
||||
<UseUwp>true</UseUwp>
|
||||
<UseUwpTools>true</UseUwpTools>
|
||||
<Platforms>x64;ARM64</Platforms>
|
||||
<RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers>
|
||||
<DefineConstants>$(DefineConstants);WINDOWS_UWP</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする