commit | a8eb33756b228cf587ed065c0144e306def8f902 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Wed Nov 06 01:02:41 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Nov 06 01:02:41 2024 +0000 |
tree | 5c1ad38c4468fc0b2affa2a145a6ebb76f0cf106 | |
parent | df6873d0646714d9ff284848d84958e7412cd809 [diff] |
[dawn] Add apparentSize to ExternalTextureDescriptor (noop) This will be used to support the cases where in JS we have a VideoFrame that has a visibleRect that doesn't have the same size as the displaySize. The WGSL textureLoad and textureSize builtins on external textures currently use the visibleRect size but they should use the displaySize. From the Dawn side, displaySize doesn't have a clear semantic, so call it apparentSize as it's the size that the texture_external appears to be in WGSL. Likewise rename visibleOrigin/Size to cropOrigin/Size as it is more clear what that means in the context of Dawn where we crop plane0. In future CLs the new ExternalTextureDescriptor attributes will be used to compute arguments in the ExternalTexture uniform buffer but first we need Chromium to use them. So this CL only does dawn.json changes. Bug: 377574981 Change-Id: I5ca5c67b37bf1c373fd9d41638db29cd6ede903c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/213975 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: 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.