Open jzp-oos opened 2 weeks ago
This repo was only ever intended as a quick test case for a bug report. The reason that my code fails to create the texture stream is because the feature didn't get enabled properly.
I needed to add this when creating the WebView2Environment to get it to work.
std::wstring args;
args.append(L"--enable-features=msWebView2TextureStream");
auto options = Microsoft::WRL::Make<CoreWebView2EnvironmentOptions>();
options->put_AdditionalBrowserArguments(args.c_str());
[...]
CreateCoreWebView2EnvironmentWithOptions(nullptr, userDataFolderPath.c_str(), options.Get(), [...]
Your issue might be related, but I have no idea, you didn't provide enough code...
// 开始创建工厂创建 D3D 的逻辑 var dxgiFactory2 = DXGI.DXGI.CreateDXGIFactory1();