commit | 63f2666ee77c987a56c6be5bfc6bbb10d12a9f63 | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Fri Mar 20 00:01:19 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Fri Mar 20 00:01:19 2020 +0000 |
tree | dbaa45ff072b94c010b047cdc84cd7898e765d63 | |
parent | 27622ce1c54f1782ae00837fa166cce5532d0d8b [diff] |
Check bind group layout with storage texture in pipeline descriptors This patch adds all the validations on the use of bind group layout with read-only storage texture and write-only storage texture in the creation of pipeline objects. 1. GPUBindGroupLayout.bindingType must match the type of the storage texture variable (read-only or write-only) in shader. 2. GPUBindGroupLayout.storageTextureFormat must be a valid texture format that supports STORAGE usage. 3. GPUBindGroupLayout.storageTextureFormat must match the storage texture format declaration in shader. 4. GPUBindGroupLayout.textureDimension must match the storage texture dimension declared in shader. BUG=dawn:267 TEST=dawn_unittests Change-Id: Ifa3c2194dc76de14f790a0a73868e69bbb31c814 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/17167 Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Kai Ninomiya <kainino@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 webgpu.h docs)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.