Use infinite RECT for default mapping with 0 inputs
このコミットが含まれているのは:
1 親
58cba3f6d1
コミット
4aeb97113a
2ファイル変更
+17
-2
検索条件に一致するファイルはありません
@@ -14,6 +14,19 @@ namespace ComputeSharp.D2D1.Extensions;
|
||||
/// </summary>
|
||||
internal static class RECTExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Modifies a target <see cref="RECT"/> instance to be a D2D1 infinite rectangle.
|
||||
/// </summary>
|
||||
/// <param name="rect">The target <see cref="RECT"/> instance to modify.</param>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void MakeD2D1Infinite(this ref RECT rect)
|
||||
{
|
||||
rect.left = int.MinValue;
|
||||
rect.top = int.MinValue;
|
||||
rect.right = int.MaxValue;
|
||||
rect.bottom = int.MaxValue;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a <see cref="Rectangle"/> from a <see cref="RECT"/> value.
|
||||
/// </summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする