Add a 1 MiB texture allocation limit toggle for testing Estimate allocation size from the base mip's largest plane, including all layers and samples and combining depth/stencil. Apply the same limit to the 3D PoT workaround and keep basic end-to-end coverage. Move the GL footprint check to Texture::Create: with gl_defer, the initialization callback can run after the caller pops its error scope. Checking synchronously reports OOM within that scope and returns an error texture before queuing its GL allocation. Bug: 573237633 Change-Id: Ie9802f69893dda6fae453b456e3f63a216de8924 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/352455 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Commit-Queue: Aaron Teo <hocheung@chromium.org>
Dawn is an open-source and cross-platform implementation of the 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)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.