[native] Implement ResourceTable::SetResourceUsage(None|ReadOnly) Implement SetResourceUsage on ResourceTable, CommandEncoder, and ComputePassEncoder for SamplingResourceTable, supporting ResourceTableUsage::None and ResourceTableUsage::ReadOnly for textures. When a texture's usage in a ResourceTable is set to None, its slots in the table are hidden (hasResource returns false and getResource returns the default resource) and the texture is not transitioned when the table is used. Resources and tables referenced by SetResourceUsage on CommandEncoder and ComputePassEncoder are also tracked for submit-time validation so Queue::Submit errors if they are destroyed beforehand. Bug: 579994653 Change-Id: I57cd519a17b5fd7d0915599151b0c973ba5be316 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/356596 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@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.