commit | 47652564e629aae72c975256b7a5fb36d1e36b89 | [log] [tgz] |
---|---|---|
author | Yan <shaobo.yan@intel.com> | Fri May 07 01:48:14 2021 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Fri May 07 01:48:14 2021 +0000 |
tree | 55d5873deebfc99a99ee4ad7dbd15283d3c73938 | |
parent | 09a458f94e1d514a64048cd698e8485809885230 [diff] |
Add validation rules for CopyTextureForBrowser This CL complete the validation rules for CopyTextureForBrowser by: - Restrict source texture must have |CopySrc| and |Sampled| usage. - Restrict destinaton texture must have |CopyDst| and |RenderAttachment| usage. - Restrict sample counts of source texture and destination texture must be 1. - Restrict source copy origin.z must be 0. - Restrict CopyTextureForBrowser() can only copy to single slice. A validation unittest is added to check. BUG=dawn:465 Change-Id: I5e645a4b69edeaf97ce1231bd7c8036027524ba8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/49306 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@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.