Add necessary ifdefs to 'ComputeSharp.D2D1.Uwp'
このコミットが含まれているのは:
1 親
28c6a0118e
コミット
54c0c73cc8
32ファイル変更
+170
-1
検索条件に一致するファイルはありません
@@ -11,6 +11,7 @@
|
||||
<InternalsVisibleTo Include="ComputeSharp.Uwp, PublicKey=$(AssemblySignPublicKey)" />
|
||||
<InternalsVisibleTo Include="ComputeSharp.WinUI, PublicKey=$(AssemblySignPublicKey)" />
|
||||
<InternalsVisibleTo Include="ComputeSharp.D2D1, PublicKey=$(AssemblySignPublicKey)" />
|
||||
<InternalsVisibleTo Include="ComputeSharp.D2D1.Uwp, PublicKey=$(AssemblySignPublicKey)" />
|
||||
<InternalsVisibleTo Include="ComputeSharp.D2D1.WinUI, PublicKey=$(AssemblySignPublicKey)" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -3,7 +3,11 @@ using Windows.Graphics.Effects;
|
||||
|
||||
#pragma warning disable IDE0051
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp.Buffers;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI.Buffers;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// A fixed buffer type containing 16 <see cref="IGraphicsEffectSource"/> fields.
|
||||
|
||||
@@ -3,7 +3,11 @@ using ComputeSharp.D2D1.Interop;
|
||||
|
||||
#pragma warning disable IDE0044, IDE0051
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp.Buffers;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI.Buffers;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// A fixed buffer type containing 16 <see cref="D2D1ResourceTextureManager"/> fields.
|
||||
|
||||
@@ -1,12 +1,21 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using ABI.Microsoft.Graphics.Canvas;
|
||||
#if WINDOWS_UWP
|
||||
using ComputeSharp.D2D1.Uwp.Extensions;
|
||||
using ComputeSharp.D2D1.Uwp.Helpers;
|
||||
#else
|
||||
using ComputeSharp.D2D1.WinUI.Extensions;
|
||||
using ComputeSharp.D2D1.WinUI.Helpers;
|
||||
#endif
|
||||
using ComputeSharp.Win32;
|
||||
using Windows.Graphics.Effects;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp.Buffers;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI.Buffers;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// A wrapper type for an input <see cref="IGraphicsEffectSource"/> and its underlying native D2D images.
|
||||
|
||||
@@ -3,14 +3,22 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.Numerics;
|
||||
using ABI.Microsoft.Graphics.Canvas;
|
||||
using ComputeSharp.D2D1.Extensions;
|
||||
#if WINDOWS_UWP
|
||||
using ComputeSharp.D2D1.Uwp.Helpers;
|
||||
#else
|
||||
using ComputeSharp.D2D1.WinUI.Helpers;
|
||||
#endif
|
||||
using ComputeSharp.Win32;
|
||||
using Microsoft.Graphics.Canvas;
|
||||
using Windows.Foundation;
|
||||
using ICanvasImageInterop = Microsoft.Graphics.Canvas.ICanvasImageInterop;
|
||||
using ICanvasResourceCreator = Microsoft.Graphics.Canvas.ICanvasResourceCreator;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc/>
|
||||
partial class CanvasEffect
|
||||
|
||||
@@ -3,7 +3,11 @@ using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Microsoft.Graphics.Canvas;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// A base type to implement packaged and easy to use <see cref="ICanvasImage"/>-based effects that can be used with Win2D.
|
||||
|
||||
@@ -2,7 +2,11 @@ using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Microsoft.Graphics.Canvas;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// An object representing an effect graph being built or configured.
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
using ABI.Microsoft.Graphics.Canvas;
|
||||
using Microsoft.Graphics.Canvas;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Indicates the invalidation type to request when invoking <see cref="CanvasEffect.InvalidateEffectGraph"/> and related methods.
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
using Microsoft.Graphics.Canvas;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// A marker type for an effect node that can be registered and retrieved from an <see cref="CanvasEffectGraph"/> value.
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp.Collections;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI.Collections;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Shared helpers for all types implementing <see cref="IFixedCountList{T}"/>.
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp.Collections;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI.Collections;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// An interface for a list with a fixed collection.
|
||||
|
||||
@@ -2,7 +2,11 @@ using ABI.Microsoft.Graphics.Canvas;
|
||||
using ComputeSharp.D2D1.Extensions;
|
||||
using ComputeSharp.Win32;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp.Extensions;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI.Extensions;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> with extensions for the <see cref="ICanvasDevice"/> type.
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
using ComputeSharp.D2D1.Extensions;
|
||||
using ComputeSharp.Win32;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp.Extensions;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI.Extensions;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> with extensions for the <see cref="ID2D1DeviceContext"/> type.
|
||||
|
||||
@@ -9,7 +9,11 @@ using ComputeSharp.D2D1.Shaders.Interop.Effects.ResourceManagers;
|
||||
using ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
|
||||
using ComputeSharp.Win32;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp.Extensions;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI.Extensions;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> with extensions for the <see cref="ID2D1Effect"/> type.
|
||||
|
||||
@@ -2,7 +2,11 @@ using System.Runtime.CompilerServices;
|
||||
using ComputeSharp.D2D1.Extensions;
|
||||
using ComputeSharp.Win32;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp.Extensions;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI.Extensions;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Helper methods for working with the <see cref="IUnknown"/> type.
|
||||
|
||||
@@ -3,7 +3,11 @@ using ComputeSharp.Win32;
|
||||
using WinRT;
|
||||
using IInspectable = ComputeSharp.Win32.IInspectable;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp.Helpers;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI.Helpers;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// A helper type to handle marshalling of RCW instances.
|
||||
|
||||
@@ -5,7 +5,11 @@ using ComputeSharp.Win32;
|
||||
using Windows.Graphics.Effects;
|
||||
using WinRT;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp.Helpers;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI.Helpers;
|
||||
#endif
|
||||
|
||||
using CanvasDevice = Microsoft.Graphics.Canvas.CanvasDevice;
|
||||
using ICanvasEffectFactoryNative = Microsoft.Graphics.Canvas.ICanvasEffectFactoryNative;
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// A marker interface for an effect node that was registered from an <see cref="CanvasEffectGraph"/> value.
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
using Microsoft.Graphics.Canvas;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// A marker interface for a generic effect node that was registered from an <see cref="CanvasEffectGraph"/> value.
|
||||
|
||||
@@ -3,14 +3,22 @@ using System.Buffers;
|
||||
using System.Runtime.InteropServices;
|
||||
using ABI.Microsoft.Graphics.Canvas;
|
||||
using ComputeSharp.D2D1.Extensions;
|
||||
#if WINDOWS_UWP
|
||||
using ComputeSharp.D2D1.Uwp.Helpers;
|
||||
#else
|
||||
using ComputeSharp.D2D1.WinUI.Helpers;
|
||||
#endif
|
||||
using ComputeSharp.Interop;
|
||||
using ComputeSharp.Win32;
|
||||
using Windows.Foundation;
|
||||
using ICanvasEffect = Microsoft.Graphics.Canvas.Effects.ICanvasEffect;
|
||||
using ICanvasResourceCreatorWithDpi = Microsoft.Graphics.Canvas.ICanvasResourceCreatorWithDpi;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc/>
|
||||
unsafe partial class PixelShaderEffect<T>
|
||||
|
||||
@@ -2,12 +2,21 @@ using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using ABI.Microsoft.Graphics.Canvas;
|
||||
using ComputeSharp.D2D1.Extensions;
|
||||
#if WINDOWS_UWP
|
||||
using ComputeSharp.D2D1.Uwp.Extensions;
|
||||
using ComputeSharp.D2D1.Uwp.Helpers;
|
||||
#else
|
||||
using ComputeSharp.D2D1.WinUI.Extensions;
|
||||
using ComputeSharp.D2D1.WinUI.Helpers;
|
||||
#endif
|
||||
using ComputeSharp.Win32;
|
||||
using ICanvasEffectFactoryNative = Microsoft.Graphics.Canvas.ICanvasEffectFactoryNative;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc/>
|
||||
partial class PixelShaderEffect<T>
|
||||
|
||||
@@ -1,13 +1,21 @@
|
||||
using System.Numerics;
|
||||
using ABI.Microsoft.Graphics.Canvas;
|
||||
using ComputeSharp.D2D1.Extensions;
|
||||
#if WINDOWS_UWP
|
||||
using ComputeSharp.D2D1.Uwp.Helpers;
|
||||
#else
|
||||
using ComputeSharp.D2D1.WinUI.Helpers;
|
||||
#endif
|
||||
using ComputeSharp.Interop;
|
||||
using ComputeSharp.Win32;
|
||||
using Windows.Foundation;
|
||||
using ICanvasResourceCreator = Microsoft.Graphics.Canvas.ICanvasResourceCreator;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc/>
|
||||
unsafe partial class PixelShaderEffect<T>
|
||||
|
||||
@@ -4,8 +4,13 @@ using System.Threading;
|
||||
using ABI.Microsoft.Graphics.Canvas;
|
||||
using ComputeSharp.D2D1.Extensions;
|
||||
using ComputeSharp.D2D1.Interop;
|
||||
#if WINDOWS_UWP
|
||||
using ComputeSharp.D2D1.Uwp.Extensions;
|
||||
using ComputeSharp.D2D1.Uwp.Helpers;
|
||||
#else
|
||||
using ComputeSharp.D2D1.WinUI.Extensions;
|
||||
using ComputeSharp.D2D1.WinUI.Helpers;
|
||||
#endif
|
||||
using ComputeSharp.Interop;
|
||||
using ComputeSharp.Win32;
|
||||
using Windows.Graphics.Effects;
|
||||
@@ -13,7 +18,11 @@ using static ABI.Microsoft.Graphics.Canvas.WIN2D_GET_D2D_IMAGE_FLAGS;
|
||||
using static ABI.Microsoft.Graphics.Canvas.WIN2D_GET_DEVICE_ASSOCIATION_TYPE;
|
||||
using ICanvasImageInterop = Microsoft.Graphics.Canvas.ICanvasImageInterop;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc/>
|
||||
unsafe partial class PixelShaderEffect<T>
|
||||
|
||||
@@ -3,9 +3,15 @@ using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using ABI.Microsoft.Graphics.Canvas;
|
||||
using ComputeSharp.D2D1.Extensions;
|
||||
#if WINDOWS_UWP
|
||||
using ComputeSharp.D2D1.Uwp.Buffers;
|
||||
using ComputeSharp.D2D1.Uwp.Extensions;
|
||||
using ComputeSharp.D2D1.Uwp.Helpers;
|
||||
#else
|
||||
using ComputeSharp.D2D1.WinUI.Buffers;
|
||||
using ComputeSharp.D2D1.WinUI.Extensions;
|
||||
using ComputeSharp.D2D1.WinUI.Helpers;
|
||||
#endif
|
||||
using ComputeSharp.Interop;
|
||||
using ComputeSharp.Win32;
|
||||
using Windows.Graphics.Effects;
|
||||
@@ -16,7 +22,11 @@ using static ComputeSharp.Win32.D2D1_DPICOMPENSATION_INTERPOLATION_MODE;
|
||||
using static ComputeSharp.Win32.D2D1_DPICOMPENSATION_PROP;
|
||||
using static ComputeSharp.Win32.D2D1_PROPERTY_TYPE;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc/>
|
||||
unsafe partial class PixelShaderEffect<T>
|
||||
|
||||
@@ -1,11 +1,19 @@
|
||||
using System;
|
||||
using ComputeSharp.D2D1.Interop;
|
||||
#if WINDOWS_UWP
|
||||
using ComputeSharp.D2D1.Uwp.Extensions;
|
||||
#else
|
||||
using ComputeSharp.D2D1.WinUI.Extensions;
|
||||
#endif
|
||||
using ComputeSharp.Interop;
|
||||
using ComputeSharp.Win32;
|
||||
using Microsoft.Graphics.Canvas;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc/>
|
||||
unsafe partial class PixelShaderEffect<T>
|
||||
|
||||
+9
@@ -5,12 +5,21 @@ using System.Collections.Immutable;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.D2D1.Interop;
|
||||
#if WINDOWS_UWP
|
||||
using ComputeSharp.D2D1.Uwp.Buffers;
|
||||
using ComputeSharp.D2D1.Uwp.Collections;
|
||||
#else
|
||||
using ComputeSharp.D2D1.WinUI.Buffers;
|
||||
using ComputeSharp.D2D1.WinUI.Collections;
|
||||
#endif
|
||||
|
||||
#pragma warning disable CS8767
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc/>
|
||||
partial class PixelShaderEffect<T>
|
||||
|
||||
@@ -4,11 +4,20 @@ using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
#if WINDOWS_UWP
|
||||
using ComputeSharp.D2D1.Uwp.Buffers;
|
||||
using ComputeSharp.D2D1.Uwp.Collections;
|
||||
#else
|
||||
using ComputeSharp.D2D1.WinUI.Buffers;
|
||||
using ComputeSharp.D2D1.WinUI.Collections;
|
||||
#endif
|
||||
using Windows.Graphics.Effects;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc/>
|
||||
partial class PixelShaderEffect<T>
|
||||
|
||||
@@ -3,7 +3,11 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using ComputeSharp.D2D1.Interop;
|
||||
using Microsoft.Graphics.Canvas;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc/>
|
||||
partial class PixelShaderEffect<T>
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
using System;
|
||||
using ComputeSharp.Interop;
|
||||
using System.Runtime.CompilerServices;
|
||||
#if WINDOWS_UWP
|
||||
using ComputeSharp.D2D1.Uwp.Helpers;
|
||||
#else
|
||||
using ComputeSharp.D2D1.WinUI.Helpers;
|
||||
#endif
|
||||
using ComputeSharp.Win32;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc/>
|
||||
partial class PixelShaderEffect<T>
|
||||
|
||||
@@ -7,7 +7,11 @@ using Microsoft.Graphics.Canvas;
|
||||
using Microsoft.Graphics.Canvas.Effects;
|
||||
using ICanvasImageInterop = Microsoft.Graphics.Canvas.ICanvasImageInterop;
|
||||
|
||||
#if WINDOWS_UWP
|
||||
namespace ComputeSharp.D2D1.Uwp;
|
||||
#else
|
||||
namespace ComputeSharp.D2D1.WinUI;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// A custom <see cref="ICanvasEffect"/> implementation powered by a supplied shader type.
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.2.1-experimental1" />
|
||||
<PackageReference Include="Win2D.uwp" Version="1.28.0-preview1-local" />
|
||||
|
||||
<!--
|
||||
We need the CsWinRT reference for the generator to kick in and generate all necessary supporting code
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<InternalsVisibleTo Include="ComputeSharp.D2D1.Uwp, PublicKey=$(AssemblySignPublicKey)" />
|
||||
<InternalsVisibleTo Include="ComputeSharp.D2D1.WinUI, PublicKey=$(AssemblySignPublicKey)" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする