commit | dc74be4e7640c603c35f333d488f32c153f807c5 | [log] [tgz] |
---|---|---|
author | Sunny Sachanandani <sunnyps@chromium.org> | Tue Feb 04 13:38:40 2025 -0800 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Feb 04 13:38:40 2025 -0800 |
tree | 4d31f51caadee2828a056009b7f315e76aedb24e | |
parent | 153ff2780e28a03ce6bb6be0eaf5fb7ef8529428 [diff] |
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 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>
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.