commit | 3aea52329800f6f08a2c89576cbcfb524fd9205a | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Sat Aug 26 01:11:01 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Aug 26 01:11:01 2023 +0000 |
tree | fa6a6a06868b7a44337c675f2dbf58e97b928961 | |
parent | ecadd41b4806b1b56893144ad62d468a6bc38168 [diff] |
[glsl-writer] Fix several bugs about storage image This patch fixes several bugs about storage image on GLSL writer. - Correctly translate storage texture access - Translate textureLoad() to imageLoad() for storage images - Add support of TextureBarrier() Note that in this patch we translate ReadWrite storage textures with the formats other than r32f, r32i and r32ui into "writeonly" because using such image format without memory qualifier is illegal in ESSL SPEC according to ESSL 3.1 SPEC (chapter 4.9, Memory Access Qualifiers): Except for image variables qualified with the format qualifiers r32f, r32i, and r32ui, image variables must specify either memory qualifier readonly or the memory qualifier writeonly. Bug: dawn:595, dawn:1972, tint:2007 Change-Id: Iebae00f7f97d28364e922087db60b395f567e1ec Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/147460 Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
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.