commit | 845fec6a1962a6d89ce03ce488356ea8d6cf0245 | [log] [tgz] |
---|---|---|
author | Colin Blundell <blundell@chromium.org> | Wed May 29 11:24:18 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed May 29 11:24:18 2024 +0000 |
tree | 62c5d115836e0fdee9a729b9b0d78a8c0cdfc185 | |
parent | bc0f9d611b440eec30fe9c904daefc8dcf5eaa35 [diff] |
[Android] Add Device::GetAHardwareBufferProperties() This CL adds Device::GetAHardwareBufferProperties(), which will allow getting the properties of an AHardwareBuffer (notably the YCbCr info) without having to first create a SharedTextureMemory instance. This is useful because it turns out that when using external sampling, it will be necessary to configure the SharedTextureMemory at the time of its creation so that it correctly creates its VkImage. Having this API on Device allows clients to determine whether they want to use external sampling with a given AHB before creating the STM for that AHB. Note: * I didn't bother deduping the implementation with that of SharedTextureMemory as once this new API is in place Chromium will transition to using it entirely and we can remove obtaining the AHB properties from SharedTextureMemory Change-Id: Iaa0b6ad166bb6b7c668acce2336863dd021fe8a1 Bug: dawn:2476 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/190140 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Colin Blundell <blundell@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.