commit | 5a6b701b2dbf73868275fb13bdc6073b7b8642d5 | [log] [tgz] |
---|---|---|
author | Stephen White <senorblanco@chromium.org> | Mon Feb 12 16:26:47 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Feb 12 16:26:47 2024 +0000 |
tree | 0c6d33091b55095b077324ff7c0fbc5b5867c91a | |
parent | 1b00745fc9e02ba00ff169c73d8b4bd2340ae6e5 [diff] |
Add ClampFragDepth transform to GLSL writer. Also, make the ClampFragDepth transform play well with existing push constants in the AST. This required implementing a ClampFragDepth::Config containing byte offsets for the min_depth and max_depth push constants, so they can be specified by Dawn. These are std::optional, and leaving them null indicates not to run the transform. Run the transform if any shaders being compiled into a pipeline by Dawn write to frag_depth. In practice, this means to force-run the transform in the vertex shader if the fragment shader is writing to frag_depth. This keeps the PushConstants struct identical at link time. Bug: dawn:2185 Change-Id: Ieb9e282f94b8c74374f11b90324dacf2325183f0 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/172640 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Stephen White <senorblanco@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.