commit | f9bf4bcfc6112f41ac15c64ab5da09855b74f189 | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Mon Feb 10 10:05:34 2025 -0800 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Feb 10 10:05:34 2025 -0800 |
tree | 5dc7513e63fd9af9bb22e5157c414c7b82b2757a | |
parent | 5af3dc8d2b2e3ebd434fb282ea2151429146b064 [diff] |
[spirv-reader][ir] Support `OpBitCount`. Adds support to translate `OpBitCount` into the WGSL `countOneBits` method. In SPIR-V the result and base values do not have to have the same type, so `bitcast` if needed. Bug: 394878128 Change-Id: I04f971f1a4682fed2ba0f4ef6cc7a2dfb09b4006 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/225174 Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: James Price <jrprice@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.