mirror of
https://github.com/electron/electron.git
synced 2026-01-13 09:27:59 -05:00
feat: add `sharedTexture` module. Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: reito <reito@chromium.org>
758 B
758 B
SharedTextureImported Object
textureIdstring - The unique identifier of the imported shared texture.getVideoFrameFunction<VideoFrame> - Create aVideoFramethat uses the imported shared texture in the current process. You can callVideoFrame.close()once you've finished using the object. The underlying resources will wait for GPU finish internally.releaseFunction - Release this object's reference of the imported shared texture. The underlying resource will be alive until every reference is released.subtleSharedTextureImportedSubtle - Provides subtle APIs to interact with the imported shared texture for advanced users.