Files
electron/docs/api/structures/shared-texture-handle.md
trop[bot] 27594e03d7 fix: rgbaf16 shared texture remove keyed mutex. (#49876)
* fix: rgbaf16 shared texture remove keyed mutex.

Co-authored-by: reito <reito@chromium.org>

* fix: rgbaf16 patch.

Co-authored-by: reito <reito@chromium.org>

* 更新 shared-texture-handle.md

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

Co-authored-by: reito <reito@chromium.org>

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: reito <reito@chromium.org>
2026-02-19 20:22:10 +01: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.