Files
electron/docs/api/structures/shared-texture-imported.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

758 B

SharedTextureImported Object

  • textureId string - The unique identifier of the imported shared texture.
  • getVideoFrame Function<VideoFrame> - Create a VideoFrame that uses the imported shared texture in the current process. You can call VideoFrame.close() once you've finished using the object. The underlying resources will wait for GPU finish internally.
  • release Function - Release this object's reference of the imported shared texture. The underlying resource will be alive until every reference is released.
  • subtle SharedTextureImportedSubtle - Provides subtle APIs to interact with the imported shared texture for advanced users.