commit | 9df00a3e9acf79bb12173ff9aab5e738f2f99b04 | [log] [tgz] |
---|---|---|
author | Yunchao He <yunchao.he@intel.com> | Mon Jun 07 17:32:43 2021 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jun 07 17:32:43 2021 +0000 |
tree | 1a30cbbb562e33cf9440567f052633a41fe9f702 | |
parent | 6fb11ffa40cffcbff4559db3024c87ced72b3688 [diff] |
Fix a bug for 3D texture comparison in e2e CopyTests When we are copying data, we need to offset "rowsPerImage" rows for each depth slice, even though this is a partial copy whose copy height is less than rowsPerImage. In addition, when we copy the original data into expected buffer for comparison, we don't pack data for T2B copy and T2T copy. We don't remove paddings during copy. So I renames PackTextureData to CopyTextureData. For B2T copy, we do pack data. Right now we name it CopyXXXX and we pack the data during some copies, it is understandable. But if we name it PackXXXX but don't pack data sometimes, it is weird. In addition, for B2T copy, we pack the data, so I shorten the buffer size we allocated for comparison. This change also renames "slice" to "layer" if it includes multiple depth slices and actually means a layer, but keep slice as slice if it means an array layer or a depth slice for different cases. Bug: dawn:547 Change-Id: I6d82e6c25f50bd4c988b1f65f85b24ad1c191d01 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/53501 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Yunchao He <yunchao.he@intel.com>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.