Refactor shared state for built-in pixel shader effect

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-05 10:50:15 +02:00
1 親 3b5eb66d74
コミット 73c492ba2b
8ファイル変更
+213 -380

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

+2 -2
ファイルの表示
@@ -2,7 +2,7 @@ using System;
using System.Runtime.CompilerServices;
using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.Interop.Effects;
using ComputeSharp.D2D1.Interop;
#if WINDOWS_UWP
using ComputeSharp.D2D1.Uwp.Extensions;
using ComputeSharp.D2D1.Uwp.Helpers;
@@ -74,7 +74,7 @@ unsafe partial class PixelShaderEffect<T>
if (!this.isEffectFactoryRegistered)
{
ResourceManager.RegisterEffectFactory(
effectId: PixelShaderEffect.For<T>.Instance.Id,
effectId: D2D1PixelShaderEffect.GetEffectId<T>(),
factory: new EffectFactory());
this.isEffectFactoryRegistered = true;
+1 -2
ファイルの表示
@@ -4,7 +4,6 @@ using System.Threading;
using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.Interop;
using ComputeSharp.D2D1.Interop.Effects;
#if WINDOWS_UWP
using ComputeSharp.D2D1.Uwp.Extensions;
using ComputeSharp.D2D1.Uwp.Helpers;
@@ -262,7 +261,7 @@ unsafe partial class PixelShaderEffect<T>
{
fixed (ID2D1Effect** d2D1Effect = this.d2D1Effect)
{
Guid effectId = PixelShaderEffect.For<T>.Instance.Id;
Guid effectId = D2D1PixelShaderEffect.GetEffectId<T>();
using ComPtr<ID2D1DeviceContext> d2D1DeviceContextEffective = default;
using ComPtr<ID2D1DeviceContextLease> d2D1DeviceContextLease = default;