Files
electron/docs/api/structures/shared-texture-transfer.md
trop[bot] c229e274a0 feat: add sharedTexture module to import shared texture (#48831)
feat: add `sharedTexture` module.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: reito <reito@chromium.org>
2025-11-11 11:55:54 -05:00

815 B

SharedTextureTransfer Object

  • transfer string Readonly - The opaque transfer data of the shared texture. This can be transferred across Electron processes.
  • syncToken string Readonly - The opaque sync token data for frame creation.
  • pixelFormat string Readonly - The pixel format of the transferring texture.
  • codedSize Size Readonly - The full dimensions of the shared texture.
  • visibleRect Rectangle Readonly - A subsection of [0, 0, codedSize.width(), codedSize.height()]. In common cases, it is the full section area.
  • timestamp number Readonly - A timestamp in microseconds that will be reflected to VideoFrame.

Use sharedTexture.subtle.finishTransferSharedTexture to get SharedTextureImportedSubtle back.