2025-08-08 16:13:56 +08:00
# SharedTextureHandle Object
2026-02-20 00:28:53 +08:00
* `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.
2025-08-08 16:13:56 +08:00
* `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.