| commit | 9be037cf1bcbd4a37d083d079f4e457e2b7f5182 | [log] [tgz] |
|---|---|---|
| author | Ben Clayton <bclayton@google.com> | Fri Jan 19 20:58:56 2024 +0000 |
| committer | Ben Clayton <bclayton@google.com> | Fri Jan 19 20:58:56 2024 +0000 |
| tree | 753485281eff339e88c50346c36146100c9431fa | |
| parent | f478bb5506f3f03c2844fabfb10fa1ce4f1c2616 [diff] |
[tint][msl]: Use a volatile bool to control loop preservation
To preserve loops, compare the condition with the contents
of a volatile boolean variable that is always set to 'true'.
Do this instead of using __asm__(""); that has proved faulty
in certain macOS environments.
Bug: tint:2125
Change-Id: Ia700db8d8612006eb614c30e6c647ca30032d120
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/170720
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: David Neto <dneto@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.