commit | 81da61165530deb3049ad38a54309278c3565413 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Thu May 23 14:57:09 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 23 14:57:09 2024 +0000 |
tree | 28c62776e89e1fd567d0e5ab4a15a369a5b4ef89 | |
parent | 4e043e9741d726a213b588a369d0c5623370c910 [diff] |
Make textureDimensions(texture_external) use the visible size. Previously it was using the size of plane0, which was incorrect when the plane was cropped or for some rotations. Adds a test that checks that the correct size is returned. Also fixes the computation of the visibleSize in ExternalTexture to account for the rotation. Fixed: 341216488 Change-Id: If81ebb83f044795b641e888491f2f8603b38be0a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/188802 Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: 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.