| commit | 7056f50fdefc6bc46aa442e720d0336e2855b570 | [log] [tgz] |
|---|---|---|
| author | Sunny Sachanandani <sunnyps@chromium.org> | Fri Feb 14 13:40:51 2025 -0800 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Feb 14 13:40:51 2025 -0800 |
| tree | 09517393e7c7cefc8b8cf73af2a8e7af146d6585 | |
| parent | 5109cfb3ba273ce4ee99906fcf72a4a35038427c [diff] |
[m134] metal: Specify storage binding usage for IOSurface textures explicitly Add a allowStorageBinding flag on SharedTextureMemoryIOSurfaceDescriptor which specifies whether TextureUsage::StorageBinding is allowed and if MTLTextureUsageShaderWrite is set on the IOSurface wrapping MTLTexture. The flag defaults to true to match current behavior, but we will change it to false once Chromium migrates to using the flag. Chromium will set the flag based on whether SHARED_IMAGE_USAGE_WEBGPU_STORAGE_TEXTURE usage is set on the IOSurfaceImageBacking. Bug: 388872587, 395975428 Change-Id: I8cd78711cf8600b77a3d14b58eaa6d026afe83d1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/223216 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org> (cherry picked from commit dc74be4e7640c603c35f333d488f32c153f807c5) Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/226296 Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com> Commit-Queue: Loko Kung <lokokung@google.com>
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.