commit | f0a85dc7755e87f83667969d950b8d80c68301c7 | [log] [tgz] |
---|---|---|
author | Colin Blundell <blundell@chromium.org> | Mon Jan 15 15:17:36 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jan 15 15:17:36 2024 +0000 |
tree | 66fbaf566d20b8b5a8131dc4ff78305e373cc347 | |
parent | 842ab015bacf7d32fa978db60b0ff9c4075d79fe [diff] |
[Mac] Pass all usages when creating MTLTextures for SharedTextureMemory This CL makes the following change: When creating MTLTextures from IOSurfaces vended by SharedTextureMemory, we now pass all Metal texture usages. This will facilitate an upcoming change to have SharedTextureMemory cache MTLTextures. See discussion in [1] and its following comments for both (a) why this is necessary and (b) why it is not harmful to performance. Note: As this CL is a functional change, I tested it manually in Chrome with the WebGPU github examples as well as with Graphite enabled (both on the WebGPU github examples and just general rendering for Graphite). Everything renders unproblematically and without any error messages being generated. [1] https://bugs.chromium.org/p/dawn/issues/detail?id=2152#c14 Change-Id: I3c57b13425b3ff3315d453d29e3a24788588a705 Bug: dawn:2152, 1493854 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/169660 Commit-Queue: Colin Blundell <blundell@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: 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.