| commit | c1f534c12c058f15eb8c330d584ee4801994be2e | [log] [tgz] |
|---|---|---|
| author | dan sinclair <dsinclair@chromium.org> | Mon Jun 24 21:42:29 2024 +0000 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jun 24 21:42:29 2024 +0000 |
| tree | 75e28c4bb722c7c8d95d665b0f4a6c4ad5bcf285 | |
| parent | 78df8369a125b627576f5ccdd2b8cb22312e3975 [diff] |
[hlsl] Convert bitcast to a transform. This CL pulls the code out of the printer which supports bitcast and moves it into a transform to generate the needed IR. This adds custom intrinsics into the HLSL back to support the `asuint`, `asint` and `asfloat` HLSL methods along with `f16tof32` and `f32tof16`. Bug: 42251045, 348590924 Change-Id: I89465de1fd4171c89cbe4e5029ed9dedb0f803a0 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/195354 Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: James Price <jrprice@google.com> Auto-Submit: 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.