Partilhar via


CoreWebView2TextureStream Class

Definition

CoreWebView2 Texture Stream.

public class CoreWebView2TextureStream
type CoreWebView2TextureStream = class
Public Class CoreWebView2TextureStream
Inheritance
CoreWebView2TextureStream

Properties

Id

Retrieves texture stream id.

Methods

AddAllowedOrigin(String, Int32)

Adds allowed origin for texture stream and web texture stream.

CloseTexture(CoreWebView2Texture)

Closes created texture.

CreateTexture(UInt32, UInt32)

Creates texture buffer that the host can write to for the browser rendering.

GetAvailableTexture()

Gets reusable texture.

PresentTexture(CoreWebView2Texture)

Present texture to the browser's renderer.

RemoveAllowedOrigin(String)

Removes allowed origin for texture stream and web texture stream.

SetD3DDevice(Object)

Set the D3D device this texture stream should use for creating shared texture resources. When the RenderAdapterLUIDChanged event is raised you should create a new D3D device using the RenderAdapterLUID property and call SetD3DDevice with the new D3D device. See the CreateTextureStream d3dDevice parameter for more details.

Stop()

Stops presenting texture stream.

Events

ErrorReceived

The ErrorReceived event is raised when an error with this texture stream occurs asynchronously.

StartRequested

Registers texture stream request from the Javascript.

Stopped

Registers texture stream stopped event.

WebTextureReceived

Registers web texture receiving event.

WebTextureStreamStopped

Registers web texture stopped event.

Applies to