Add IInspectable interop type, update bindings

このコミットが含まれているのは:
Sergio Pedri committed 2023-04-21 00:07:35 +02:00
1 親 ab068a98f0
コミット f2406ea1da
4ファイル変更
+57 -5

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

+3 -3
ファイルの表示
@@ -56,16 +56,16 @@ internal static class ResourceManager
factory: canvasFactoryNative.GetVoidAddressOf()).Assert();
}
using ComPtr<IUnknown> wrapperUnknown = default;
using ComPtr<IInspectable> wrapperInspectable = default;
// Get or create a WinRT wrapper for the resource
canvasFactoryNative.Get()->GetOrCreate(
device: device,
resource: resource,
dpi: dpi,
wrapper: wrapperUnknown.GetVoidAddressOf()).Assert();
wrapper: wrapperInspectable.GetAddressOf()).Assert();
// Get the runtime-provided RCW for the resulting WinRT wrapper
return RcwMarshaller.GetOrCreateManagedObject<IGraphicsEffectSource>(wrapperUnknown.Get());
return RcwMarshaller.GetOrCreateManagedObject<IGraphicsEffectSource>((IUnknown*)wrapperInspectable.Get());
}
}