interface ICoreWebView2ExperimentalEnvironment12

Note

This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.

Note

This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.

interface ICoreWebView2ExperimentalEnvironment12
  : public IUnknown

This is ICoreWebView2ExperimentalEnvironment12 that returns the texture stream interface.

Summary

Members Descriptions
add_RenderAdapterLUIDChanged Listens for change of graphics adapter LUID of the browser.
CreateTextureStream Registers the stream id that the host can handle, providing a texture stream when requested from the WebView2's JavaScript code.
get_RenderAdapterLUID Get the graphics adapter LUID of the renderer.
remove_RenderAdapterLUIDChanged Remove listener for RenderAdapterLUIDChange event.

Applies to

Product Introduced
WebView2 Win32 N/A
WebView2 Win32 Prerelease 1.0.1724

Members

add_RenderAdapterLUIDChanged

Listens for change of graphics adapter LUID of the browser.

public HRESULT add_RenderAdapterLUIDChanged(ICoreWebView2ExperimentalRenderAdapterLUIDChangedEventHandler * eventHandler, EventRegistrationToken * token)

The host can get the updated LUID by RenderAdapterLUID. It is expected that the host updates texture's d3d Device with SetD3DDevice, removes existing textures and creates new texture.

CreateTextureStream

Registers the stream id that the host can handle, providing a texture stream when requested from the WebView2's JavaScript code.

public HRESULT CreateTextureStream(LPCWSTR streamId, IUnknown * d3dDevice, ICoreWebView2ExperimentalTextureStream ** value)

The host can register multiple unique stream instances, each with a unique stream ID, enabling the host to stream from different sources concurrently. The host should call this only once for unique streamId. The second call of already created streamId without destroying ICoreWebView2ExperimentalTextureStream object will return an error. 'd3dDevice' is used for creating shared IDXGI resource and NT shared of it. The host should use Adapter of the LUID from the GetRenderAdapterLUID for creating the D3D Device.

get_RenderAdapterLUID

Get the graphics adapter LUID of the renderer.

public HRESULT get_RenderAdapterLUID(UINT64 * value)

The host should use this LUID adapter when creating D3D device to use with CreateTextureStream().

remove_RenderAdapterLUIDChanged

Remove listener for RenderAdapterLUIDChange event.

public HRESULT remove_RenderAdapterLUIDChanged(EventRegistrationToken token)