commit | 8a5325ca9aaa908bec5ef89b33ea7923189b61cb | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Mon Jun 15 09:57:51 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Mon Jun 15 09:57:51 2020 +0000 |
tree | 817dc898db341e8478444374e545972e845cc723 | |
parent | 4234d78201afa98e208fef71250c1efe1ee3ad81 [diff] |
Texture: Change to mArrayLayerCount to mSize.depth This makes the tracking in TextureBase match the shape of wgpu::TextureDescriptor. GetSize() becomes a bit more surprising because the depth can sometimes be the array size, so new getters GetWidth(), GetHeight() and GetDepth() are added. Some simplifications to the backend texture creation code are included that will make it less error prone to add support for 1D / 3D textures. Bug: dawn:22 Change-Id: I33b6ca99af9d58fc88f5f626cfd5e2e62a8b45cb Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/23103 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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 webgpu.h docs)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.