Add IInspectable interop type, update bindings
このコミットが含まれているのは:
1 親
ab068a98f0
コミット
f2406ea1da
4ファイル変更
+57
-5
検索条件に一致するファイルはありません
@@ -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());
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする