CoreWebView2TextureStream Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
Stop() |
Stops presenting texture stream. |
Events
ErrorReceived |
The |
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. |