OffscreenSharedTexture

external interface OffscreenSharedTexture(source)

Properties

Link copied to clipboard
abstract var release: () -> 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.

Link copied to clipboard
abstract var textureInfo: TextureInfo

The shared texture info.