|author||Bryan Bernhart <email@example.com>||Thu Jun 11 18:58:26 2020 +0000|
|committer||Commit Bot service account <firstname.lastname@example.org>||Thu Jun 11 18:58:26 2020 +0000|
Prevent size overflow for sub-allocation. D3D/VK driver may return a size larger than requested and could cause PowerOfTwo() to overflow. This change adds a check to ensure the size is within the limit before attempting sub-allocation. BUG=dawn:27 Change-Id: I2b2ce727abff953642a69b65c8f30be8e53e562d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/23060 Reviewed-by: Austin Eng <email@example.com> Reviewed-by: Corentin Wallez <firstname.lastname@example.org> Commit-Queue: Bryan Bernhart <email@example.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.hversion that Dawn implements.
User documentation: (TODO, figure out what overlaps with webgpu.h docs)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.