Add more PixelShaderEffect<T> unit tests, missing null check

このコミットが含まれているのは:
Sergio Pedri committed 2023-04-26 01:10:00 +02:00
1 親 452294cf84
コミット 3c2ec371eb
2ファイル変更
+126

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

+4
ファイルの表示
@@ -1,3 +1,4 @@
using System;
using ComputeSharp.D2D1.Interop;
#if WINDOWS_UWP
using ComputeSharp.D2D1.Uwp.Extensions;
@@ -92,6 +93,9 @@ unsafe partial class PixelShaderEffect<T>
}
else
{
// If the effect is not realized, manually ensure the transform isn't null
default(ArgumentNullException).ThrowIfNull(value);
this.transformMapper = value;
}
}