commit | fbda46da44a040ca00b178d0c74eb695d6364b4b | [log] [tgz] |
---|---|---|
author | Yan, Shaobo <shaobo.yan@intel.com> | Tue Mar 02 03:00:27 2021 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Tue Mar 02 03:00:27 2021 +0000 |
tree | ea22767a83854eff43cf51b561990b9bdfdf235b | |
parent | 642ec1c30ecdf329ed05f718eb71acdd28d774ae [diff] |
Refactor CopyTextureForBrowserTests to use compute shader CopyTextureForBrowserTests will cover incoming color format conversion cases. While it is OK for |unorm| formats to compare their pixel values on the CPU side, we cannot do such comparisons for the |float| formats because we may meet the precision issues when comparing a value generated at the CPU side to the one from the GPU side. Refactor this test suites by using compute shader and do bit-by-bit comparison from source texture and destination texture. BUG=dawn:465 Change-Id: I979fcf1a1d96bbe9f8a4cf2f1a305d488e88b257 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/36140 Commit-Queue: Shaobo Yan <shaobo.yan@intel.com> Reviewed-by: Austin Eng <enga@chromium.org>
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.