commit | 997bc0177da9925a64c328f15839dd3c4e9599ef | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Thu Feb 22 02:08:41 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Feb 22 02:08:41 2024 +0000 |
tree | af7b0f4066621a36234b2b91560ea28b903b0fd1 | |
parent | 6d155a5680a969b0e6820c3f983d940365546a0e [diff] |
[msl][glsl] Fix incorrect code gen for continuing inside switch. In the GLSL and MSL backends when generating a continue inside a switch block, the continuing statement would sink up into the switch label. This means that a `break` for the continuing would break the switch instead of the loop. This CL moves the RemoveContinuingInSwitch transform from the HLSL backend up to being a generic AST transform and calls it from the MSL and GLSL backends to write the AST to no longer continue from switches. Bug: tint:2039 Change-Id: Ica4a8d2de6bf97a179dac9e9216d8ddce99b5976 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/175820 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
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.