commit | 4a85e5d207b31f69a537fa28f042fef645d26198 | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Mon Nov 13 08:22:53 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Nov 13 08:22:53 2023 +0000 |
tree | 7bc61bc427c1ae533f225cdcb0c4129548722950 | |
parent | 7d58301c1f0f4492e1f757d6c3d8ff3fd3a2e4d8 [diff] |
Tint/HLSL: Implement AST transform for pixel local variables This patch implements the AST transform "pixel_local" for pixel local variables on Tint HLSL backends. Below are the steps that the transform "pixel_local" do: 1. Translate the var<pixel_local> varaible into a var<private> and a bunch of read-write storage textures with an internal attribute "rasterizer ordered view". 2. Call function "load_from_pixel_local_storage()" before the original main function to load the data from the read-write storage textures added in step 1 into the var<private> variable. 3. Call function "store_into_pixel_local_storage()" after the original main function to store the data from the var<private> variable into the read-write storage textures added in step 1. Bug: tint:2083 Test: tint_unittests Change-Id: I7d98a8c65c0bdfe2febdbbfe4cb075dc34651a37 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/159500 Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Corentin Wallez <cwallez@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.