commit | ba72944d3d9373655fc24e472be41e30afb61799 | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@chromium.org> | Wed Apr 15 17:58:25 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Wed Apr 15 17:58:25 2020 +0000 |
tree | 8033b903b1d101bc89910a107811787b9100c4f5 | |
parent | 0ff7ed41ecc5ad70b0c16844fdfced62b0b324b8 [diff] |
dawn_wire: Validate all objects are from the same device in the client This is a temporary fix until dawn_wire can support multiple devices. When using objects from different devices, the wire will inject an error into the receiver object's device. Methods that return objects will return a dummy object. Using the dummy object will cause a fatal error on the server. Without this fix, the server would blindly lookup an ObjectId which could point to some other object. This would bypass same-device validation and have incorrect results. Bug: dawn:383 Change-Id: I898f07d4b26f2a97ef952b82af488e7f807c36f0 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19261 Commit-Queue: Austin Eng <enga@chromium.org> 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.