commit | 3d8b48e023f44645d8463868be8ba0ff539ebe81 | [log] [tgz] |
---|---|---|
author | Saifuddin Hitawala <hitawala@chromium.org> | Tue Oct 03 18:10:22 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Oct 03 18:10:22 2023 +0000 |
tree | 1ddeaed446fbd4155c0d961a0641ef32ce1392ae | |
parent | 445640feb1ab7fb883498b93df051835ec20bcd2 [diff] |
Graphite: Add RenderableAttachment usage support for metal This change adds TextureUsage::RenderAttachment support for multiplanar formats. As part of this change it loosens some validation around RenderAttachment TextureUsage. This also adds a new feature called MultiPlanarRenderTargets enabled for metal backend (will add support for other backends as a follow-up). This feature is added separately from ExtendedUsages feature as that allows creating a multiplanar wgpu::Texture directly which is not supported with metal easily. This also adds VideoViewsRenderTargetTests that can allow creating an multiplanar video texture to be rendered into and then creates R8/RG8 source textures with data which are then read into luma and chroma texture views. Since the multiplanar textures don't support copy operations yet, the test renders from the luma/chroma texture views into another R/RG textures which are then compared with. NOTE: Need to support uninitialized video textures as well which will be handled in follow-ups. Bug: dawn:1337 Change-Id: Ifc5808c8c94da3734f366ba570ffe990a612d48f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/146420 Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org> Commit-Queue: Saifuddin Hitawala <hitawala@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Austin Eng <enga@chromium.org>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.