Add ComPtr<T>.Release to simplify native objects

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-07 12:56:44 +02:00
1 親 3b31b9abe2
コミット 4ec0b1e43e
6ファイル変更
+22 -40

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

@@ -305,10 +305,7 @@ partial struct PixelShaderEffect
@this = (PixelShaderEffect*)&((void**)@this)[-1];
// Free the previous ID2D1DrawInfo object, if present
if (@this->d2D1DrawInfo is not null)
{
_ = @this->d2D1DrawInfo->Release();
}
ComPtr<ID2D1DrawInfo>.Release(@this->d2D1DrawInfo);
// Store the new ID2D1DrawInfo object
_ = drawInfo->AddRef();