commit | bc99356b1de0296043aebab79b9451d025c273c5 | [log] [tgz] |
---|---|---|
author | Shrek Shao <shrekshao@google.com> | Mon Apr 22 23:39:10 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Apr 22 23:39:10 2024 +0000 |
tree | 435d54d90a27a459cf74160247d46cea5d8742b2 | |
parent | 349dfcae2e0863051a90c6ce0f79fe2500537cbe [diff] |
[Compat] Fix a bug when textureDimension with 1 arg is first called When textureDimension with 1 arg is first called, it accidentally returns TextureQueryType::kTextureNumSamples. Add tests and asserts to add some robustness. Also fixes same bug for TextureLoad. Bug: dawn:2442 Change-Id: Ida753f7ae99417c683e20704e89c379837ccdf70 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/184640 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: Shrek Shao <shrekshao@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.