Files
electron/docs/api/structures/shared-texture-handle.md
reito 491fa0442b fix: rgbaf16 shared texture remove keyed mutex. (#49798)
* fix: rgbaf16 shared texture remove keyed mutex.

* fix: rgbaf16 patch.

* 更新 shared-texture-handle.md

Co-authored-by: John Kleinschmidt <kleinschmidtorama@gmail.com>

---------

Co-authored-by: John Kleinschmidt <kleinschmidtorama@gmail.com>
2026-02-19 11:28:53 -05:00

1.3 KiB

SharedTextureHandle Object

  • ntHandle Buffer (optional) Windows - NT HANDLE holds the shared texture. Note that this NT HANDLE is local to current process. Output textures of rgba, bgra, rgbaf16 formats don't have a keyed mutex on the texture handle, but nv12 format texture handles do have a keyed mutex.
  • ioSurface Buffer (optional) macOS - IOSurfaceRef holds the shared texture. Note that this IOSurface is local to current process (not global).
  • nativePixmap Object (optional) Linux - Structure contains planes of shared texture.
    • planes Object[] Linux - Each plane's info of the shared texture.
      • stride number - The strides and offsets in bytes to be used when accessing the buffers via a memory mapping. One per plane per entry.
      • offset number - The strides and offsets in bytes to be used when accessing the buffers via a memory mapping. One per plane per entry.
      • size number - Size in bytes of the plane. This is necessary to map the buffers.
      • fd number - File descriptor for the underlying memory object (usually dmabuf).
    • modifier string Linux - The modifier is retrieved from GBM library and passed to EGL driver.
    • supportsZeroCopyWebGpuImport boolean Linux - Indicates whether supports zero copy import to WebGPU.