commit | d37c4e55ce65e6cd34f00c24ebba13b20110d9de | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Mon Feb 10 16:30:00 2025 -0800 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Feb 10 16:30:00 2025 -0800 |
tree | b24d7a6f1533cfa77771508af3ad02f722e8ab3f | |
parent | 7d6f6e1ddea796353d9a12e5a50a30b7fc444087 [diff] |
[spirv-reader][ir] Support `OpBitFieldInsert`. Adds support to translate `OpBitFieldInsert` into the WGSL `insertBits` method. In SPIR-V the `count` and `offset` parameters maybe an `i32` which is treated as unsigned. In WGSL they must be `u32` so bitcast as needed. Bug: 394878128 Change-Id: I2500614523354be51efcffbf189e1f11ecf4a6ac Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/225734 Reviewed-by: James Price <jrprice@google.com> Commit-Queue: dan sinclair <dsinclair@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.