[YUV AHB] Add a ColorSpaceDawn structure for input YUV color space. This will be useful to marshall data between Kotlin and Dawn for the color space conversion of imported YUV AHBs. The source color space is very flexible because it can represent any variety of data produced. In particular it contains YCbCr range and matrices, and decouples the transfer function from the primaries. Destination color spaces are less flexible and must use one of the PredefineColorSpaces (to which linear variants are added). Also update the Kotlin build file and tests. Finally allow enum value conflicts with "is_proxy" as the transfer function for sRGB and Rec709 are the same (by design) but we want developers to be able to use either of the names. Bug: 468988322 Change-Id: I7bb46a4918af4f874fa84a0e808b70514b2d863b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/300216 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Tarun Saini <sainitarun@google.com> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
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.