Add shared code to ComputeSharp.D2D1.WinUI
このコミットが含まれているのは:
1 親
1bcf612cea
コミット
a7a3073c8f
8ファイル変更
+18
-13
検索条件に一致するファイルはありません
@@ -14,6 +14,7 @@
|
||||
<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>
|
||||
|
||||
<!-- .NET Standard 2.0 polyfill packages -->
|
||||
|
||||
@@ -8,6 +8,8 @@ using Windows.Graphics.Effects;
|
||||
|
||||
namespace ComputeSharp.D2D1.Uwp.Helpers;
|
||||
|
||||
using WinRT = TerraFX.Interop.WinRT.WinRT;
|
||||
|
||||
/// <summary>
|
||||
/// A helper type to replicate Win2D's <c>ResourceManager</c> type.
|
||||
/// </summary>
|
||||
|
||||
@@ -3,7 +3,6 @@ using System.Runtime.InteropServices;
|
||||
using ABI.Microsoft.Graphics.Canvas;
|
||||
using ComputeSharp.D2D1.Extensions;
|
||||
using ComputeSharp.Interop;
|
||||
using Microsoft.Graphics.Canvas;
|
||||
using TerraFX.Interop.Windows;
|
||||
using Windows.Foundation;
|
||||
using ICanvasResourceCreator = Microsoft.Graphics.Canvas.ICanvasResourceCreator;
|
||||
@@ -25,7 +24,7 @@ unsafe partial class PixelShaderEffect<T>
|
||||
return GetBounds(resourceCreator, &transform);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ICanvasImage.GetBounds(ICanvasResourceCreator, Matrix3x2)"/>
|
||||
/// <inheritdoc cref="Microsoft.Graphics.Canvas.ICanvasImage.GetBounds(ICanvasResourceCreator, Matrix3x2)"/>
|
||||
private Rect GetBounds(ICanvasResourceCreator resourceCreator, Matrix3x2* transform)
|
||||
{
|
||||
using ReferenceTracker.Lease _0 = GetReferenceTracker().GetLease();
|
||||
|
||||
+5
-5
@@ -117,7 +117,7 @@ partial class PixelShaderEffect<T>
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
int IList.Add(object value)
|
||||
int IList.Add(object? value)
|
||||
{
|
||||
return default(NotSupportedException).Throw<int>();
|
||||
}
|
||||
@@ -141,7 +141,7 @@ partial class PixelShaderEffect<T>
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
bool IList.Contains(object value)
|
||||
bool IList.Contains(object? value)
|
||||
{
|
||||
return FixedCountList<D2D1ResourceTextureManager?>.IndexOf(this, (D2D1ResourceTextureManager?)value) != -1;
|
||||
}
|
||||
@@ -177,7 +177,7 @@ partial class PixelShaderEffect<T>
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
int IList.IndexOf(object value)
|
||||
int IList.IndexOf(object? value)
|
||||
{
|
||||
return FixedCountList<D2D1ResourceTextureManager?>.IndexOf(this, (D2D1ResourceTextureManager?)value);
|
||||
}
|
||||
@@ -189,7 +189,7 @@ partial class PixelShaderEffect<T>
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
void IList.Insert(int index, object value)
|
||||
void IList.Insert(int index, object? value)
|
||||
{
|
||||
default(NotSupportedException).Throw();
|
||||
}
|
||||
@@ -201,7 +201,7 @@ partial class PixelShaderEffect<T>
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
void IList.Remove(object value)
|
||||
void IList.Remove(object? value)
|
||||
{
|
||||
default(NotSupportedException).Throw();
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ partial class PixelShaderEffect<T>
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
int IList.Add(object value)
|
||||
int IList.Add(object? value)
|
||||
{
|
||||
return default(NotSupportedException).Throw<int>();
|
||||
}
|
||||
@@ -127,7 +127,7 @@ partial class PixelShaderEffect<T>
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
bool IList.Contains(object value)
|
||||
bool IList.Contains(object? value)
|
||||
{
|
||||
return FixedCountList<IGraphicsEffectSource?>.IndexOf(this, (IGraphicsEffectSource?)value) != -1;
|
||||
}
|
||||
@@ -163,7 +163,7 @@ partial class PixelShaderEffect<T>
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
int IList.IndexOf(object value)
|
||||
int IList.IndexOf(object? value)
|
||||
{
|
||||
return FixedCountList<IGraphicsEffectSource?>.IndexOf(this, (IGraphicsEffectSource?)value);
|
||||
}
|
||||
@@ -175,7 +175,7 @@ partial class PixelShaderEffect<T>
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
void IList.Insert(int index, object value)
|
||||
void IList.Insert(int index, object? value)
|
||||
{
|
||||
default(NotSupportedException).Throw();
|
||||
}
|
||||
@@ -187,7 +187,7 @@ partial class PixelShaderEffect<T>
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
void IList.Remove(object value)
|
||||
void IList.Remove(object? value)
|
||||
{
|
||||
default(NotSupportedException).Throw();
|
||||
}
|
||||
|
||||
@@ -20,11 +20,12 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.2.230118.102" />
|
||||
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.4" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ComputeSharp.D2D1\ComputeSharp.D2D1.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="..\ComputeSharp.D2D1.UI\ComputeSharp.D2D1.UI.projitems" Label="Shared" />
|
||||
</Project>
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<InternalsVisibleTo Include="ComputeSharp.D2D1.Uwp, PublicKey=$(AssemblySignPublicKey)" />
|
||||
<InternalsVisibleTo Include="ComputeSharp.D2D1.WinUI, PublicKey=$(AssemblySignPublicKey)" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする