commit | bd8de5d2a4855b6d0c7e9f8383ccc14024bfd91b | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Thu Apr 28 19:00:53 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Apr 28 19:00:53 2022 +0000 |
tree | 194463e07c8baa0bec7e97f390f901d2f6957fe5 | |
parent | 01004b7732abf4e2587a7d560828e49156ca6633 [diff] |
Add MetalRenderR8RG8UnormSmallMipToTempTexture workaround This workaround replaces the toggle that forbids creating mipmapped R8Unorm and RG8Unorm textures on Metal. Instead it adds a Metal render pass workaround that renders to a temporary texture under certain conditions, then copies back to the correct mip level. The texture lazy-clearing code is also changed to use the helper that does workarounds for Metal render passes. A test is added that triggers the issue with a small amount of code, but more extensive coverage is left to the CTS. For example texture_zero tests caught multiple issues during the creation of this CL. Bug: dawn:1071 Change-Id: I7ef1151524e71e5a9a8e8f5205d9b554bee438b3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/87864 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
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.