mirror of
https://github.com/electron/electron.git
synced 2026-02-26 03:01:17 -05:00
* 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>
1.3 KiB
1.3 KiB
SharedTextureHandle Object
ntHandleBuffer (optional) Windows - NT HANDLE holds the shared texture. Note that this NT HANDLE is local to current process. Output textures ofrgba,bgra,rgbaf16formats don't have a keyed mutex on the texture handle, butnv12format texture handles do have a keyed mutex.ioSurfaceBuffer (optional) macOS - IOSurfaceRef holds the shared texture. Note that this IOSurface is local to current process (not global).nativePixmapObject (optional) Linux - Structure contains planes of shared texture.planesObject[] Linux - Each plane's info of the shared texture.stridenumber - The strides and offsets in bytes to be used when accessing the buffers via a memory mapping. One per plane per entry.offsetnumber - The strides and offsets in bytes to be used when accessing the buffers via a memory mapping. One per plane per entry.sizenumber - Size in bytes of the plane. This is necessary to map the buffers.fdnumber - File descriptor for the underlying memory object (usually dmabuf).
modifierstring Linux - The modifier is retrieved from GBM library and passed to EGL driver.supportsZeroCopyWebGpuImportboolean Linux - Indicates whether supports zero copy import to WebGPU.