metal: Map iOS depth/disparity IOSurface formats in SharedTextureMemory Add CVPixelFormatType mappings for DepthFloat16, DepthFloat32, DisparityFloat16, and DisparityFloat32 to R16Float/R32Float in GetFormatEquivalentToIOSurfaceFormat(). These formats are produced by AVCaptureDepthDataOutput on iOS devices with LiDAR (iPhone 12 Pro and later). The IOSurface memory layout is identical to the already-mapped OneComponent16Half and OneComponent32Float formats — only the FourCC pixel format tag differs. This enables zero-copy GPU access to LiDAR depth/disparity data via SharedTextureMemory IOSurface import without CPU readback. Bug: 493339350 Change-Id: I44babe5b2d62a9baeb4a5314d0654c0d096863bc Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/297995 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Shrek Shao <shrekshao@google.com> Reviewed-by: Shrek Shao <shrekshao@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.