Observação
O acesso a essa página exige autorização. Você pode tentar entrar ou alterar diretórios.
O acesso a essa página exige autorização. Você pode tentar alterar os diretórios.
Note
This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.
interface ICoreWebView2ExperimentalTexture
: public IUnknown
The texture that the host writes to so that the Renderer will render on it.
Summary
| Members | Descriptions |
|---|---|
| get_Handle | A handle to OS shared memory containing the texture. |
| get_Resource | D2D texture resource that the host can write to. |
| get_Timestamp | Gets the Timestamp property. |
| put_Timestamp | The timestamp of presenting texture. |
Applies to
| Product | Introduced |
|---|---|
| WebView2 Win32 | N/A |
| WebView2 Win32 Prerelease | 1.0.1724 |
Members
get_Handle
A handle to OS shared memory containing the texture.
public HRESULT get_Handle(HANDLE * value)
You can open it with ID3D11Device1::OpenSharedResource1 and write your texture data to it. Do not close it yourself. The underlying texture will be closed by WebView2. Do not change the texture after calling ICoreWebView2TextureStream::PresentTexture before you can retrieve it again with GetAvailableTexture, or you the frame may not be rendered and the ICoreWebView2TextureStream ErrorReceived event will be raised.
get_Resource
D2D texture resource that the host can write to.
public HRESULT get_Resource(IUnknown ** value)
The IUnknown type that could be query interface to IDXGIResource.
get_Timestamp
Gets the Timestamp property.
public HRESULT get_Timestamp(UINT64 * value)
put_Timestamp
The timestamp of presenting texture.
public HRESULT put_Timestamp(UINT64 value)