Add shared code to ComputeSharp.D2D1.WinUI

このコミットが含まれているのは:
Sergio Pedri committed 2023-04-20 20:07:18 +02:00
1 親 1bcf612cea
コミット a7a3073c8f
8ファイル変更
+18 -13

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

+1
ファイルの表示
@@ -469,6 +469,7 @@ Global
src\TerraFX.Interop.Windows.D2D1\TerraFX.Interop.Windows.D2D1.projitems*{9da1da9f-f8b2-4b25-be80-c21f773029e3}*SharedItemsImports = 13
src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{a5997814-d8d2-4541-87ac-c3e53caa67c0}*SharedItemsImports = 13
src\ComputeSharp.UI\ComputeSharp.UI.projitems*{afaafdc9-be42-45d4-8c79-0ee8c8edbf52}*SharedItemsImports = 5
src\ComputeSharp.D2D1.UI\ComputeSharp.D2D1.UI.projitems*{bd9e6556-357e-4c20-bfcd-fb131f9372fa}*SharedItemsImports = 5
src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{bfb003d1-788b-48de-8065-39479c162cb0}*SharedItemsImports = 5
src\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.projitems*{bfb003d1-788b-48de-8065-39479c162cb0}*SharedItemsImports = 5
samples\ComputeSharp.SwapChain.Shaders.Shared\ComputeSharp.SwapChain.Shaders.Shared.projitems*{c12d7ace-98ed-4813-8118-6667c34f484f}*SharedItemsImports = 5
+1
ファイルの表示
@@ -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 -->
+2
ファイルの表示
@@ -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>
+1 -2
ファイルの表示
@@ -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();
@@ -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();
}
+5 -5
ファイルの表示
@@ -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();
}
+2 -1
ファイルの表示
@@ -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>
+1
ファイルの表示
@@ -8,6 +8,7 @@
<ItemGroup>
<InternalsVisibleTo Include="ComputeSharp.D2D1.Uwp, PublicKey=$(AssemblySignPublicKey)" />
<InternalsVisibleTo Include="ComputeSharp.D2D1.WinUI, PublicKey=$(AssemblySignPublicKey)" />
</ItemGroup>
<ItemGroup>