Switch to CsWin32 for DXC APIs in D2D1 generator

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-17 18:23:07 +02:00
1 親 e6cd6da5cf
コミット b3a6ba90c3
15ファイル変更
+185 -63

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

+16
ファイルの表示
@@ -59,4 +59,20 @@ internal unsafe struct ComPtr<T> : IDisposable
{
return (T**)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
}
/// <summary>
/// Moves the current <see cref="ComPtr{T}"/> instance and resets it without releasing the reference.
/// </summary>
/// <returns>The moved <see cref="ComPtr{T}"/> instance.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public ComPtr<T> Move()
{
ComPtr<T> other = default;
other.ptr = this.ptr;
this.ptr = null;
return other;
}
}