Header menu logo fable-electron-docs-api

OffscreenSharedTexture Type

Constructors

Constructor Description

OffscreenSharedTexture(textureInfo, release)

Full Usage: OffscreenSharedTexture(textureInfo, release)

Parameters:
    textureInfo : TextureInfo - The shared texture info.
    release : unit -> unit - Release the resources. The texture cannot be directly passed to another process, users need to maintain texture lifecycles in main process, but it is safe to pass the textureInfo to another process. Only a limited number of textures can exist at the same time, so it's important that you call texture.release() as soon as you're done with the texture.

Returns: OffscreenSharedTexture
textureInfo : TextureInfo

The shared texture info.

release : unit -> unit

Release the resources. The texture cannot be directly passed to another process, users need to maintain texture lifecycles in main process, but it is safe to pass the textureInfo to another process. Only a limited number of textures can exist at the same time, so it's important that you call texture.release() as soon as you're done with the texture.

Returns: OffscreenSharedTexture

Instance members

Instance member Description

this.release

Full Usage: this.release

Release the resources. The texture cannot be directly passed to another process, users need to maintain texture lifecycles in main process, but it is safe to pass the textureInfo to another process. Only a limited number of textures can exist at the same time, so it's important that you call texture.release() as soon as you're done with the texture.

this.textureInfo

Full Usage: this.textureInfo

The shared texture info.

Type something to start searching.