commit | 8e68a89cfb753cae7d1f156a714127d3c8a1de08 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Thu Jan 05 12:24:52 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jan 05 12:24:52 2023 +0000 |
tree | fc80a492f9ea2f608c89f25e0512b0319e6e8634 | |
parent | 452d6e3cc35351bd70fbe2f8b2be11f352eed4f3 [diff] |
Vulkan: Clamp @builtin(frag_depth) with push constant values Start using Tint's ClampFragDepth transform in the Vulkan backend when needed in order to correctly clamp @builtin(frag_depth) on Vulkan. Do this by always reserving 8 bytes of push constant space to contain the f32 min and max values from the last viewport command. Reenables relevant CTS tests that were suppressed on Vulkan. Bug: dawn:1125, dawn:1576, dawn:1616 Change-Id: I38f4f6c3c51c99b5e591a780fea9859537529534 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/105642 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Corentin Wallez <cwallez@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.