commit | 144ebed4c7ee7c6ecddeedfa81d607bbf256e8f2 | [log] [tgz] |
---|---|---|
author | Antonio Maiorano <amaiorano@google.com> | Tue Jan 30 16:30:15 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 30 16:30:15 2024 +0000 |
tree | 49a7e00c2498c573956bd66ce7891fb307f360ee | |
parent | 0880e0643379ff2535187662cb21a803ce974cfa [diff] |
tint/hlsl: widen scope of workaround of DXC bug with const structs/arrays Initial fix was not good enough: https://dawn-review.googlesource.com/c/dawn/+/156900 In HLSL, composite types are all treated the same: arrays, structs, vectors, and matrices. The bug happens when intializing a const variable of composite type with another composite type. Any dynamic writes to the rhs beforehand are ignored. To fix this, we simply will not emit 'const' for any lets. I've updated the upstream issue with these findings: https://github.com/microsoft/DirectXShaderCompiler/issues/5883 Bug: tint:2059 Bug: tint:2150 Change-Id: I1df1017ee130514b3f6564791d1679145d8b1e7e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/171880 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: 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.